Преглед изворни кода

Merge branch 'dev' of http://39.106.8.246:3003/web/ibms into dev

haojianlong пре 5 година
родитељ
комит
724f16b6d3
1 измењених фајлова са 4 додато и 5 уклоњено
  1. 4 5
      src/views/ready/buildfloor/index.vue

+ 4 - 5
src/views/ready/buildfloor/index.vue

@@ -365,14 +365,13 @@
         this.buildDisabled = true
         if (this.delText == "楼层") {
           let delParam = [{FloorID: this.curFloorId}];
+          this.$message.success("删除成功");
+          this.delDialogVis = false;
           manageDeleteFloor(delParam, res => {
-            this.$message.success("删除成功");
             this.buildDisabled = false
-            this.delDialogVis = false;
             this.init();
           });
         } else {
-          //todo
           // 删除建筑
           if (this.tableData && this.tableData.length) {
             this.$message.error("当前建筑中包含楼层,不可删除");
@@ -380,12 +379,12 @@
             this.buildDisabled = false
           } else {
             let param = [{BuildId: this.curBuildId}];
+            this.$message.success("删除成功");
+            this.delDialogVis = false;
             objectDeleteBuild(param, res => {
               this.handleBuildQuery()
               this.init()
-              this.$message.success("删除成功");
               this.buildDisabled = false
-              this.delDialogVis = false;
             })
           }