Browse Source

[完善]自定义预案看不到素材

guangxi
邵佳豪 1 year ago
parent
commit
5b60b0ed1e
  1. 16
      src/app/ui/collection-tools-examinee/collection-tools.component.ts
  2. 4
      src/app/ui/collection-tools-examinee/save.ts

16
src/app/ui/collection-tools-examinee/collection-tools.component.ts

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

4
src/app/ui/collection-tools-examinee/save.ts

@ -93,6 +93,8 @@ export class saveOneDialogExaminee {
itemChildNum = 0 //点击处置节点子数据节点的数量
clickNode(item){
console.log(item)
this.nodeItem = item
this.allDisposalNodeChild.forEach(item => {
if(item.id == this.nodeItem.id){
@ -104,7 +106,7 @@ export class saveOneDialogExaminee {
selectedBuildingData = this.data.selectedBuildingData
selectedSiteData = this.data.selectedSiteData
onSubmit(value,type){
// console.log(type)
let name = this.selectedBuildingData.name + '-' + this.selectedSiteData.name
//如果保存到已有节点
var postdata = {

Loading…
Cancel
Save