|
|
@ -1403,19 +1403,26 @@ export class CollectionToolsComponent implements OnInit { |
|
|
|
//新增平面图 楼层/区域
|
|
|
|
//新增平面图 楼层/区域
|
|
|
|
foundPanel (e) { |
|
|
|
foundPanel (e) { |
|
|
|
e.stopPropagation() |
|
|
|
e.stopPropagation() |
|
|
|
let data = { |
|
|
|
if (this.beforeOneCheckedBuilding.id) { |
|
|
|
isBuilding: this.checkedBuildingIndex==-1? false:true, |
|
|
|
let data = { |
|
|
|
Panel: this.beforeOneCheckedBuilding, |
|
|
|
isBuilding: this.checkedBuildingIndex==-1? false:true, |
|
|
|
order: this.sitePlanData.length? this.sitePlanData[this.sitePlanData.length-1].order+1:0, |
|
|
|
Panel: this.beforeOneCheckedBuilding, |
|
|
|
} |
|
|
|
order: this.sitePlanData.length? this.sitePlanData[this.sitePlanData.length-1].order+1:0, |
|
|
|
let dialogRef = this.dialog.open(leftFunctionalDomainComponent,{data}); |
|
|
|
|
|
|
|
dialogRef.afterClosed().subscribe(data=>{ |
|
|
|
|
|
|
|
if (data =='总平面图') { |
|
|
|
|
|
|
|
this.renovateSitePlan() |
|
|
|
|
|
|
|
} else if (data =='建筑') { |
|
|
|
|
|
|
|
this.renovateBuilding() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
let dialogRef = this.dialog.open(leftFunctionalDomainComponent,{data}); |
|
|
|
|
|
|
|
dialogRef.afterClosed().subscribe(data=>{ |
|
|
|
|
|
|
|
if (data =='总平面图') { |
|
|
|
|
|
|
|
this.renovateSitePlan() |
|
|
|
|
|
|
|
} else if (data =='建筑') { |
|
|
|
|
|
|
|
this.renovateBuilding() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
|
|
|
config.duration = 3000 |
|
|
|
|
|
|
|
this.snackBar.open('请选择建筑','确定',config); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//编辑平面图 楼层/区域
|
|
|
|
//编辑平面图 楼层/区域
|
|
|
|