|
@@ -320,14 +320,15 @@ import { getNowDate } from '@/components/tool/Date';
|
|
|
uid:this.$store.state.userInfo.userid,
|
|
|
cid:this.iid,
|
|
|
file:JSON.stringify(this.file),
|
|
|
- num:1
|
|
|
+ ep:1,//管理员的待结项
|
|
|
+ isp:3,//教师看到的待结项
|
|
|
}).then(res=>{
|
|
|
if(res.data==1){
|
|
|
- this.$message.success("结项成功");
|
|
|
+ this.$message.success("待结项成功");
|
|
|
this.endDialog = false;
|
|
|
this.progress.show = false;
|
|
|
}else{
|
|
|
- this.$message.error("结项失败")
|
|
|
+ this.$message.error("待结项失败")
|
|
|
}
|
|
|
this.getData();
|
|
|
},err=>{
|
|
@@ -350,23 +351,16 @@ import { getNowDate } from '@/components/tool/Date';
|
|
|
this.checkActivityFinishData = [];
|
|
|
this.checkFundFinishData=[];
|
|
|
this.checkFundEndData=[];
|
|
|
-
|
|
|
this.ajax.get(this.$store.state.api+"/GetActivityNoReportByPId",{
|
|
|
uid:this.$store.state.userInfo.userid,
|
|
|
pid:val
|
|
|
}).then(res=>{
|
|
|
- // console.log(res.data);
|
|
|
-
|
|
|
if(res.data[0].length>0 || res.data[1].length>0){
|
|
|
this.checkActivityFinishData = res.data[0];
|
|
|
- // console.log(this.checkActivityFinishData.length);
|
|
|
this.checkFundFinishData = res.data[1];
|
|
|
-
|
|
|
this.tit = tit;
|
|
|
this.NoReportActivity = true;
|
|
|
}else{
|
|
|
- console.log(res.data);
|
|
|
- // this.checkFundEndData=res.data[2]
|
|
|
this.checkFundEndData=res.data[2].filter(i=>{
|
|
|
return (i.fund !=i.usedFund)
|
|
|
})
|
|
@@ -414,6 +408,9 @@ import { getNowDate } from '@/components/tool/Date';
|
|
|
a.sort=data[3];
|
|
|
a.person=data[4];
|
|
|
a.yearData = data[6]
|
|
|
+ if(a.yearData.filter(item=>item['time']==new Date().getFullYear().toString()).length==0){
|
|
|
+ a.yearData.push({time:new Date().getFullYear().toString()})
|
|
|
+ }
|
|
|
this.table.total=data[5][0].total
|
|
|
this.loading = false;
|
|
|
},err=>{
|