ソースを参照

Merge remote-tracking branch 'origin/master'

shaun-sheep 4 年 前
コミット
1de29dc10f
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/views/maintain/device/index.vue

+ 2 - 2
src/views/maintain/device/index.vue

@@ -442,12 +442,10 @@ export default class extends Vue {
         if (this.curEquip.id) {
             //更新
             this.handleUpdateEquip(this.curEquip);
-            this.handleChangeDevice()
         } else {
             this.curEquip.classCode = this.deviceVal[1]
             // 创建
             this.handleCreateEquip(this.curEquip);
-            this.handleChangeDevice()
         }
     }
     // 更新设备
@@ -462,6 +460,7 @@ export default class extends Vue {
             if (res.result == 'success') {
                 this.$message.success('更新成功');
                 this.dialogVisible = false;
+                this.handleChangeDevice()
             }
         })
     }
@@ -477,6 +476,7 @@ export default class extends Vue {
             if (res.result == 'success') {
                 this.$message.success('创建成功');
                 this.dialogVisible = false;
+                this.handleChangeDevice()
             }
         })
     }