Browse Source

修复代填时项目过滤报错

QuYueTing 1 week ago
parent
commit
30a9f777e9

+ 2 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

@@ -5060,8 +5060,8 @@
                     this.selectDegreeId(domain, index)
                 }
                 
-                domain.projectName = this.fillProjectList.filter(p=>p.id == domain.projectId)[0].projectName;
-                domain.isPublic = this.fillProjectList.filter(p=>p.id == domain.projectId)[0].isPublic;
+                domain.projectName = this.isSubstitude?this.subFillProjectList.filter(p=>p.id == domain.projectId)[0].projectName:this.fillProjectList.filter(p=>p.id == domain.projectId)[0].projectName;
+                domain.isPublic = this.isSubstitude?this.subFillProjectList.filter(p=>p.id == domain.projectId)[0].isPublic:this.fillProjectList.filter(p=>p.id == domain.projectId)[0].isPublic;
                 this.http.post('/sub-project/list',{
                     projectId: domain.projectId,
                     isReport: true