huang_an 2 lat temu
rodzic
commit
c714a81d0d
1 zmienionych plików z 13 dodań i 10 usunięć
  1. 13 10
      src/components/addPatrolPlanDialog/index.vue

+ 13 - 10
src/components/addPatrolPlanDialog/index.vue

@@ -712,16 +712,19 @@
             this.planDeviceList[this.currentEquItemIndex]['workItems'] = [];
           }
           console.log('===', this.currentEquItemIndex);
-          this.planDeviceList[this.currentEquItemIndex]['workItems'] = list.map(
-            (item) => {
-              return {
-                id: item.id,
-                name: item.name,
-                content: item.content,
-                norm: item.norm
-              };
-            }
-          );
+          // this.planDeviceList[this.currentEquItemIndex]['workItems'] = list.map(
+          //   (item) => {
+          //     return {
+          //       id: item.id,
+          //       name: item.name,
+          //       content: item.content,
+          //       norm: item.norm
+          //     };
+          //   }
+          // );
+          this.planDeviceList.map((item) => {
+            item.workItems = list;
+          });
           console.log('submit', this.planDeviceList);
           this.$forceUpdate();
         }