qinhouyu 1 рік тому
батько
коміт
36eb5c1398
1 змінених файлів з 6 додано та 2 видалено
  1. 6 2
      src/views/zdsz/engineeringInfrastructure/index.vue

+ 6 - 2
src/views/zdsz/engineeringInfrastructure/index.vue

@@ -830,9 +830,13 @@ export default {
     }
   },
   // 填写节点信息
-  updateNodeOption(zEngineeringInfoBoList){
+  updateNodeOption(value){
     delete this.updateParams.zEngineeringNodeBoList
-    this.updateParams.zEngineeringNodeBo.zEngineeringInfoBoList = zEngineeringInfoBoList
+    // this.updateParams.zEngineeringNodeBo.zEngineeringInfoBoList = zEngineeringInfoBoList
+    try {
+      this.updateParams.zEngineeringNodeBo.zEngineeringInfoBoList = this.updateParams.zEngineeringNodeBo.zEngineeringInfoBoList.filter(obj => value.map(o => o.id).includes(obj.id))
+    } catch (e) {
+    }
     putEngineeringInfrastructure(this.updateParams).then(res => {
       console.log(res)
       if(res.code == 200){