瀏覽代碼

删除业务空间重新加载平面图

zhangyu 5 年之前
父節點
當前提交
25b2d8a786
共有 2 個文件被更改,包括 7 次插入4 次删除
  1. 4 2
      src/components/business_space/dialogs/detailsDialog.vue
  2. 3 2
      src/views/ledger/spacelist/index.vue

+ 4 - 2
src/components/business_space/dialogs/detailsDialog.vue

@@ -156,8 +156,10 @@
                             data: [{RoomID: this.list.id}]
                         }
                         deleteZone(param, res => {
-                            this.$message({ type: "success",  message: "删除成功!" })
-                            this.$emit("del")
+                            if (res.Result == 'success') {
+                                this.$message({ type: "success",  message: "删除成功!" })
+                                this.$emit("del")
+                            }
                         })
                     })
                     .catch(() => {

+ 3 - 2
src/views/ledger/spacelist/index.vue

@@ -323,8 +323,9 @@ export default {
     //成功删除业务空间
     delSuccess() {
       this.floor.details = false;
-      this.$refs["graphy" + this.activeName][0].getHasSpace();
-      this.$refs["graphy" + this.activeName][0].clearDimension();
+      this.$refs["graphy" + this.activeName][0].getData(this.buildMess.map, this.buildMess, this.activeTabType);
+      // this.$refs["graphy" + this.activeName][0].getHasSpace();
+      // this.$refs["graphy" + this.activeName][0].clearDimension();
     },
     close() {
       this.buildMess = this.changeBuildMess(this.buildMess, this.options)