|
|
|
@ -463,6 +463,7 @@ export class CollectionToolsExamineeComponent implements OnInit {
|
|
|
|
|
let questions = JSON.parse(this.planData.examDisposalNodesData)
|
|
|
|
|
this.handleHybridTree(questions,'题目') |
|
|
|
|
this.Facilities = JSON.parse(this.planData.examFacilityAssetsData)
|
|
|
|
|
console.log('预案设定',this.Facilities) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -677,19 +678,19 @@ export class CollectionToolsExamineeComponent implements OnInit {
|
|
|
|
|
return true |
|
|
|
|
}else{//如果是想定作业编辑模式
|
|
|
|
|
console.log(SitePlanData) |
|
|
|
|
// const dialogRef = this.dialog.open(saveOneDialogExaminee, {
|
|
|
|
|
// data: {
|
|
|
|
|
// allDisposalNode: this.canvasData.allDisposalNode,
|
|
|
|
|
// selectedBuildingData:this.beforeOneCheckedBuilding,
|
|
|
|
|
// selectedSiteData:this.selectingSitePlan,
|
|
|
|
|
// siteOrbuilding:this.checkedBuildingIndex,
|
|
|
|
|
// disasterId: this.allFirePlan[0].id || ''
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
const dialogRef = this.dialog.open(saveOneDialogExaminee, { |
|
|
|
|
data: { |
|
|
|
|
allDisposalNode: this.canvasData.allDisposalNode, |
|
|
|
|
selectedBuildingData:this.beforeOneCheckedBuilding, |
|
|
|
|
selectedSiteData:this.selectingSitePlan, |
|
|
|
|
siteOrbuilding:this.checkedBuildingIndex, |
|
|
|
|
disasterId: this.allFirePlan[0].id || '' |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// dialogRef.afterClosed().subscribe(result => {
|
|
|
|
|
// console.log('The dialog was closed');
|
|
|
|
|
// });
|
|
|
|
|
dialogRef.afterClosed().subscribe(result => { |
|
|
|
|
console.log('The dialog was closed'); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { //if
|
|
|
|
@ -1006,7 +1007,16 @@ export class CollectionToolsExamineeComponent implements OnInit {
|
|
|
|
|
let fireData = this.getFireElements(sessionStorage.getItem('buildingTypeId')) //获取单位下 消防要素
|
|
|
|
|
let planData = this.getSitePlanCompanyData() //获取 单位 数据
|
|
|
|
|
this.http.get('/api/SitePlans',{params:this.params}).subscribe(data=>{ |
|
|
|
|
|
|
|
|
|
this.sitePlanData = data |
|
|
|
|
console.log('楼层数据',this.sitePlanData) |
|
|
|
|
this.sitePlanData.forEach(item => { |
|
|
|
|
this.Facilities.forEach(i =>{ |
|
|
|
|
if(item.id == i.key){ |
|
|
|
|
item.isLabel = true
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
this.selectingSitePlan = this.sitePlanData[0] || {} |
|
|
|
|
this.canvasData.selectStorey = this.sitePlanData[0] || {} //服务中 存一份数据
|
|
|
|
|
this.selectSitePlanIndex = 0 |
|
|
|
@ -1024,7 +1034,9 @@ export class CollectionToolsExamineeComponent implements OnInit {
|
|
|
|
|
let fireData = this.getFireElements(item.buildingTypes[0].id || '') //获取建筑下 消防要素
|
|
|
|
|
let planData = this.getBuildingData(params) //获取 建筑 数据
|
|
|
|
|
this.http.get('/api/BuildingAreas',{params}).subscribe(data=>{ |
|
|
|
|
|
|
|
|
|
this.sitePlanData = data |
|
|
|
|
console.log('楼层数据',this.sitePlanData) |
|
|
|
|
this.selectingSitePlan = this.sitePlanData[0] || {} |
|
|
|
|
this.canvasData.selectStorey = this.sitePlanData[0] || {} //服务中 存一份数据
|
|
|
|
|
this.selectSitePlanIndex = 0 |
|
|
|
|