|
@@ -436,13 +436,13 @@ export default {
|
|
|
let filterParam1 = this.filterCheck(param1, "multiple");
|
|
|
if (filterParam) {
|
|
|
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) {
|
|
@@ -453,29 +453,35 @@ export default {
|
|
|
})
|
|
|
setTimeout(() => {
|
|
|
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) {
|
|
|
//覆盖
|
|
|
let filterParams = this.filterCheck(param, "sole");
|
|
|
if (filterParams) {
|
|
|
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();
|
|
|
}
|
|
|
}
|
|
|
},
|