|
@@ -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) {
|