qinzhipeng_v 5 anos atrás
pai
commit
134183f759

+ 2 - 6
src/views/reportManagement/daily/components/iconDisplay.vue

@@ -62,15 +62,11 @@ export default {
           }
           if (newV.taskIds) {
             this.taskid_arr = newV.taskIds
-            newV.taskIds.map(item => {
-              this.bugGetReportSumData(item)
-            })
+            this.bugGetReportSumData(newV.taskIds)
           }
         } else if (newV[0]) {
           this.taskid_arr = JSON.parse(JSON.stringify(newV))
-          this.taskid_arr.map(item => {
-            this.bugGetReportSumData(item)
-          })
+          this.bugGetReportSumData(this.taskid_arr)
         }
       },
       immediate: true

+ 1 - 1
src/views/reportManagement/daily/dailyTemplate.vue

@@ -146,7 +146,7 @@ export default {
         return item.id !== val.id
       })
       this.taskid_arr = this.taskid_arr.filter(item => {
-        return item.id !== val.id
+        return item !== val.id
       })
       this.tasksDetailList.length <= 0 ? this.selectTask = true : this.selectTask = false
     },