|
@@ -436,13 +436,13 @@ export default {
|
|
let filterParam1 = this.filterCheck(param1, "multiple");
|
|
let filterParam1 = this.filterCheck(param1, "multiple");
|
|
if (filterParam) {
|
|
if (filterParam) {
|
|
updateEquip(param, res => {
|
|
updateEquip(param, res => {
|
|
- if (res.result === "success") {
|
|
|
|
- this.loading = false;
|
|
|
|
- this.$emit('upDataDevice')
|
|
|
|
- } else {
|
|
|
|
- this.$message.error(res.message);
|
|
|
|
- }
|
|
|
|
- this.closeDialog();
|
|
|
|
|
|
+ if (res.result === "success") {
|
|
|
|
+ this.loading = false;
|
|
|
|
+ this.$emit('upDataDevice')
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ this.closeDialog();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
if (filterParam1) {
|
|
if (filterParam1) {
|
|
@@ -453,29 +453,35 @@ export default {
|
|
})
|
|
})
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
queryUpdate(param1, res => {
|
|
queryUpdate(param1, res => {
|
|
- if (res.result === "success") {
|
|
|
|
- this.loading = false;
|
|
|
|
- this.$emit('upDataDevice')
|
|
|
|
- } else {
|
|
|
|
- this.$message.error(res.message);
|
|
|
|
- }
|
|
|
|
- this.closeDialog();
|
|
|
|
|
|
+ if (res.result === "success") {
|
|
|
|
+ this.loading = false;
|
|
|
|
+ this.$emit('upDataDevice')
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ this.closeDialog();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
+ } else {
|
|
|
|
+ this.loading = false;
|
|
|
|
+ this.closeDialog();
|
|
}
|
|
}
|
|
} else if (type === 2) {
|
|
} else if (type === 2) {
|
|
//覆盖
|
|
//覆盖
|
|
let filterParams = this.filterCheck(param, "sole");
|
|
let filterParams = this.filterCheck(param, "sole");
|
|
if (filterParams) {
|
|
if (filterParams) {
|
|
updateEquip(param, res => {
|
|
updateEquip(param, res => {
|
|
- if (res.result === "success") {
|
|
|
|
- this.loading = false;
|
|
|
|
- this.$emit('upDataDevice')
|
|
|
|
- } else {
|
|
|
|
- this.$message.error(res.message);
|
|
|
|
- }
|
|
|
|
- this.closeDialog();
|
|
|
|
|
|
+ if (res.result === "success") {
|
|
|
|
+ this.loading = false;
|
|
|
|
+ this.$emit('upDataDevice')
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ this.closeDialog();
|
|
});
|
|
});
|
|
|
|
+ } else {
|
|
|
|
+ this.loading = false;
|
|
|
|
+ this.closeDialog();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|