Browse Source

删除楼层添加遮罩层

tangshan
陈鹏飞 3 years ago
parent
commit
d2a3ae2018
  1. 4
      src/app/ui/collection-tools-building/collection-tools.component.ts
  2. 4
      src/app/ui/collection-tools-plan/collection-tools.component.ts
  3. 4
      src/app/ui/collection-tools/collection-tools.component.ts

4
src/app/ui/collection-tools-building/collection-tools.component.ts

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

4
src/app/ui/collection-tools-plan/collection-tools.component.ts

@ -1884,6 +1884,8 @@ export class CollectionToolsPlanComponent 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) {
@ -1935,9 +1937,11 @@ export class CollectionToolsPlanComponent 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)
}
}

4
src/app/ui/collection-tools/collection-tools.component.ts

@ -1929,6 +1929,8 @@ export class CollectionToolsComponent 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) {
@ -1980,9 +1982,11 @@ export class CollectionToolsComponent 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)
}
}

Loading…
Cancel
Save