浏览代码

修改集成二测问题

zhangyu 3 年之前
父节点
当前提交
9d5417324e
共有 1 个文件被更改,包括 27 次插入21 次删除
  1. 27 21
      src/components/dialogs/list/batchDialog.vue

+ 27 - 21
src/components/dialogs/list/batchDialog.vue

@@ -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();
         }
       }
     },