ysy 2 年之前
父节点
当前提交
c444dd56e6
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/views/materialPlan/components/plan-edit-dialog.vue

+ 6 - 4
src/views/materialPlan/components/plan-edit-dialog.vue

@@ -668,24 +668,26 @@ export default {
     },
     chooseTime(current, timeList) {
 
+
       let tableList = []
       tableList = this.$refs.table.getData()
 
       tableList.forEach(e => {
         if (e.id == current.detailId) {
-         
           e.materialList.forEach(m => {
-            if (m.id == current.id) {
-              m.timeList = timeList || null
+            if (m.categoryId == current.categoryId) {
+              m.timeList = timeList || []
             }
           })
 
 
-
         }
       })
 
+      
+
       this.$refs.table.setData([...tableList]);
+      this.$forceUpdate()
     }
   }
 };