|
|
|
@ -58,6 +58,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
|
|
|
|
|
blockyl = true |
|
|
|
|
zaixianDr=false |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
console.log(this.route.snapshot.queryParams.wordChange) |
|
|
|
|
this.planLevel = this.route.snapshot.queryParams.planCategory |
|
|
|
|
if (this.route.snapshot.queryParams.pattern == 'false') { |
|
|
|
|
this.pattern = 'look' |
|
|
|
@ -165,7 +166,8 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
|
|
|
|
|
||this.unitData.buildingTypes[0].name=='商市场'||this.unitData.buildingTypes[0].name=='医院'||this.unitData.buildingTypes[0].name=='学校' |
|
|
|
|
||this.unitData.buildingTypes[0].name=='宾馆'||this.unitData.buildingTypes[0].name=='娱乐场所'||this.unitData.buildingTypes[0].name=='餐饮业' |
|
|
|
|
||this.unitData.buildingTypes[0].name=='影剧院'||this.unitData.buildingTypes[0].name=='展览建筑'||this.unitData.buildingTypes[0].name=='养老院' |
|
|
|
|
||this.unitData.buildingTypes[0].name=='会议中心'||this.unitData.buildingTypes[0].name=='储罐类'||this.unitData.buildingTypes[0].name=='化工生产')&&this.planLevel=='5'){ |
|
|
|
|
||this.unitData.buildingTypes[0].name=='会议中心'||this.unitData.buildingTypes[0].name=='储罐类'||this.unitData.buildingTypes[0].name=='化工生产' |
|
|
|
|
||this.unitData.buildingTypes[0].name=='轨道交通'||this.unitData.buildingTypes[0].name=='地下建筑')&&this.planLevel=='5'){ |
|
|
|
|
this.zaixianDr=true |
|
|
|
|
} |
|
|
|
|
//console.log('单位列表信息', this.unitData)
|
|
|
|
@ -549,12 +551,14 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
|
|
|
|
|
planTemplateData: any |
|
|
|
|
//获得模板信息
|
|
|
|
|
getTemplateData() { |
|
|
|
|
//console.log(this.planTemplateData)
|
|
|
|
|
this.http.get(`/api/PlanComponents/${this.route.snapshot.queryParams.planId}/WebText`).subscribe((data: any) => { |
|
|
|
|
//console.log('预案内容', data)
|
|
|
|
|
this.planTemplateData = JSON.parse(data.webTextData).filter(item => |
|
|
|
|
console.log('预案内容', data) |
|
|
|
|
/* this.planTemplateData = JSON.parse(data.webTextData).filter(item => |
|
|
|
|
item.completed == true |
|
|
|
|
) |
|
|
|
|
//console.log(this.planTemplateData)
|
|
|
|
|
) */ |
|
|
|
|
this.planTemplateData=JSON.parse(data.webTextData) |
|
|
|
|
console.log(this.planTemplateData) |
|
|
|
|
if (this.planTemplateData[0].groupName != '封面') { |
|
|
|
|
let obj = { |
|
|
|
|
completed: true, |
|
|
|
@ -1713,7 +1717,8 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
|
|
|
|
|
:(this.unitData.buildingTypes[0].name=='商市场'||this.unitData.buildingTypes[0].name=='医院'||this.unitData.buildingTypes[0].name=='学校' |
|
|
|
|
||this.unitData.buildingTypes[0].name=='宾馆'||this.unitData.buildingTypes[0].name=='娱乐场所'||this.unitData.buildingTypes[0].name=='餐饮业' |
|
|
|
|
||this.unitData.buildingTypes[0].name=='影剧院'||this.unitData.buildingTypes[0].name=='展览建筑'||this.unitData.buildingTypes[0].name=='养老院' |
|
|
|
|
||this.unitData.buildingTypes[0].name=='会议中心')?4:this.unitData.buildingTypes[0].name=='储罐类'?'StorageTankFivePlan':this.unitData.buildingTypes[0].name=='化工生产'?'ChemicalProductionFivePlan':'' |
|
|
|
|
||this.unitData.buildingTypes[0].name=='会议中心')?4:this.unitData.buildingTypes[0].name=='储罐类'?'StorageTankFivePlan': |
|
|
|
|
this.unitData.buildingTypes[0].name=='化工生产'?'ChemicalProductionFivePlan':this.unitData.buildingTypes[0].name=='轨道交通'?'MetroFivePlan':this.unitData.buildingTypes[0].name=='地下建筑'?'UndergroundBuildingFivePlan':'' |
|
|
|
|
|
|
|
|
|
this.http.post(`/api/OfficeExtract/ExtractWordPlan?type=${type}`,formData).subscribe((data:any)=>{ |
|
|
|
|
console.log(data) |
|
|
|
|