|
|
|
@ -585,11 +585,14 @@ export class CollectionToolsExamineeComponent implements OnInit {
|
|
|
|
|
this.handleHybridTree(questions, "题目"); |
|
|
|
|
this.Facilities = JSON.parse(this.planData.examFacilityAssetsData); |
|
|
|
|
|
|
|
|
|
this.Facilities.forEach((element) => { |
|
|
|
|
element.children.forEach((item) => { |
|
|
|
|
this.allHiddenIcon.push(item); |
|
|
|
|
if (this.Facilities && this.Facilities.length !== 0) { |
|
|
|
|
this.Facilities.forEach((element) => { |
|
|
|
|
element.children.forEach((item) => { |
|
|
|
|
this.allHiddenIcon.push(item); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log("当前预案设定需要隐藏的基本信息图标", this.allHiddenIcon); |
|
|
|
|
this.weatherData = JSON.parse(this.planData.weather); |
|
|
|
|
resolve(1); |
|
|
|
@ -741,6 +744,8 @@ export class CollectionToolsExamineeComponent implements OnInit {
|
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log("this.allFirePlan", this.allFirePlan); |
|
|
|
|
const dialogRef = this.dialog.open(saveOneDialogExaminee, { |
|
|
|
|
data: { |
|
|
|
|
allDisposalNode: this.canvasData.allDisposalNode, |
|
|
|
@ -1743,6 +1748,7 @@ export class CollectionToolsExamineeComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
//获取所有灾情
|
|
|
|
|
getAllFirePlan() { |
|
|
|
|
console.log("this.examType", this.examType); |
|
|
|
|
let api; |
|
|
|
|
this.examType == 1 |
|
|
|
|
? (api = "/api/Disasters") |
|
|
|
@ -1751,6 +1757,7 @@ export class CollectionToolsExamineeComponent implements OnInit {
|
|
|
|
|
componentId: this.route.snapshot.queryParams.planComponentId, |
|
|
|
|
}; |
|
|
|
|
this.http.get(api, { params: params }).subscribe((data: any) => { |
|
|
|
|
console.log('灾情列表',data) |
|
|
|
|
if (!data.length) { |
|
|
|
|
//该 单位没有灾情时
|
|
|
|
|
let msg = { |
|
|
|
@ -1765,6 +1772,7 @@ export class CollectionToolsExamineeComponent implements OnInit {
|
|
|
|
|
} else { |
|
|
|
|
//单位 有灾情时
|
|
|
|
|
this.allFirePlan = data; |
|
|
|
|
|
|
|
|
|
this.getDisposalNode(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|