Sfoglia il codice sorgente

修改集成二测问题

zhangyu 3 anni fa
parent
commit
9d5417324e
1 ha cambiato i file con 27 aggiunte e 21 eliminazioni
  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();
         }
       }
     },