Переглянути джерело

点位配置 接口调整

haojianlong 5 роки тому
батько
коміт
6e15e4ba38
1 змінених файлів з 9 додано та 8 видалено
  1. 9 8
      src/components/config_point/step3_point/3_temps.vue

+ 9 - 8
src/components/config_point/step3_point/3_temps.vue

@@ -245,18 +245,19 @@ export default {
       // } else {
       //   this.createParam(params)
       // }
+      let pa = []
       this.dealType.forEach((t, i) => {
-        let pa = Object.assign({
+        pa.push(Object.assign({
           DataSourceId: this.queryParam.DataSourceId,
           KeyEquipmentParameter: this.queryParam.EquipmentParameter,
           KeyEquipmentType: this.queryParam.EquipmentType,
-        }, t);
-        groupCreatePointRelation(pa, res => {
-          if (i == this.dealType.length - 1) {
-            this.$message.success("处理成功")
-            this.$emit("changed")
-          }
-        })
+        }, t));
+      })
+      groupCreatePointRelation(pa, res => {
+        // if (i == this.dealType.length - 1) {
+        this.$message.success("处理成功")
+        this.$emit("changed")
+        // }
       })
     },
     confirm(assage, params) {