Jelajahi Sumber

提交移动端创建任务没选执行人在pc端预览会报错的问题

Lijy 2 tahun lalu
induk
melakukan
ca512cbce7

+ 6 - 1
fhKeeper/formulahousekeeper/timesheet/src/components/taskComponent.vue

@@ -1038,8 +1038,13 @@ export default {
                 this.canAddTask = res.data.canAddTask
 
                 this.recentProgressInfo = res.data.progress;
+                
+                if(res.data.executorList.length > 0) {
+                    this.addForm.executorListFront = res.data.executorList;
+                } else {
+                    this.addForm.executorListFront = [{executorId: null, planHours: 8}];
+                }
 
-                this.addForm.executorListFront = res.data.executorList;
 
                 this.gstimday = []
                 this.gstimhour = []