|
|
|
@ -1882,6 +1882,8 @@ export class CollectionToolsBuildingComponent implements OnInit {
|
|
|
|
|
deletePlaneData(item) { |
|
|
|
|
const isDelete = confirm('您确定要删除吗'); |
|
|
|
|
if (isDelete) { |
|
|
|
|
//打开遮罩层
|
|
|
|
|
this.maskLayerService.sendMessage(true) |
|
|
|
|
if (this.checkedBuildingIndex == -1) { //总平面图
|
|
|
|
|
let isHave = this.canvasData.allDisposalNode.find(items => { return items.sitePlanId === item.id }) |
|
|
|
|
if (isHave == undefined) { |
|
|
|
@ -1933,9 +1935,11 @@ export class CollectionToolsBuildingComponent implements OnInit {
|
|
|
|
|
if (isCompany === -1) { |
|
|
|
|
this.http.post("/api/CompanyData", newData).subscribe(data => { }) |
|
|
|
|
this.getSitePlanStorey(this.selectingSitePlan) //获取 平面图 楼层数据
|
|
|
|
|
this.maskLayerService.sendMessage(false) |
|
|
|
|
} else { |
|
|
|
|
this.http.post("/api/BuildingData", newData, { params: this.params }).subscribe(data => { }) |
|
|
|
|
this.getBuildingStorey(this.selectingSitePlan) //获取 建筑 楼层数据
|
|
|
|
|
this.maskLayerService.sendMessage(false) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|