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