diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html index 7ea512f..28a6962 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html @@ -10,7 +10,7 @@ visibility 预览 - + save 提交 @@ -173,8 +173,9 @@ 建筑列表 - - + + {{item.name}} @@ -187,13 +188,13 @@ - + 预案编号: {{item.attribute.planName}} - + 对象名称: @@ -228,9 +229,9 @@ - 火灾 - 抢险救援 - 其他 + 火灾 + 抢险救援 + 其他 @@ -283,16 +284,74 @@ 审核时间: - + - + + 预案编号: {{item.attribute.planNumber}} + + + {{item.attribute.planName}} + + + 对象名称: + {{item.attribute.objName}} + + + 单位性质: + {{item.attribute.unitNature}} + + + *预案级别: + + + Ⅴ级 + + + Ⅲ级 + + + + + *灾害类型: + {{item.attribute.disasterType}} + + + 防火级别: + {{item.attribute.fireproofingLevel}} + + + 防火管辖: + {{item.attribute.fireproofingAdminister}} + + + 灭火责任队站: + {{item.attribute.putOutFireAdminister}} + + + 制作人职务/姓名: + + {{item.attribute.producer.duty}} + {{item.attribute.producer.name}} + + + + 审核人职务/姓名: + + {{item.attribute.verifier.duty}} + {{item.attribute.verifier.name}} + + + + 审核时间: + {{item.attribute.auditTime}} + + + + {{item.groupName}} - + @@ -421,14 +481,16 @@ border: 0; box-sizing: border-box; padding: 0 5px;"> {{ i.name }} - delete + delete - delete + delete - + @@ -512,8 +574,8 @@ padding: 0 5px;"> {{ i.name }} - + @@ -554,9 +616,11 @@ line-height: 40px; color: #ffffff;">{{element.surveyName}} - + - + @@ -571,7 +635,8 @@ color: #b99a00;">{{attack.head}} - @@ -614,12 +679,12 @@ - - + + - + @@ -641,7 +706,7 @@ - + @@ -677,7 +742,7 @@ color: #b99a00;">{{attack.name}} - + @@ -699,9 +764,9 @@ - + - + @@ -858,17 +923,17 @@ - + - - - + + + - + @@ -888,7 +953,6 @@ - diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts index bd5273b..db23456 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts @@ -12,7 +12,7 @@ import { ActivatedRoute } from '@angular/router'; import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar'; import Viewer from 'viewerjs'; -declare var $:any +declare var $: any @Component({ selector: 'app-create-plan-online-five', templateUrl: './create-plan-online-five.component.html', @@ -79,12 +79,12 @@ export class CreatePlanOnlineFiveComponent implements OnInit { } else if (this.selectedItem == '单位概况') { this.getAllBuildings() console.log(this.planTemplateData) - this.planTemplateData[1].attribute[0].attinf[0].value=this.unitData.usci - this.planTemplateData[1].attribute[0].attinf[1].value=this.unitData.buildingTypes[0].name - this.planTemplateData[1].attribute[0].attinf[2].value=this.unitData.contacts - this.planTemplateData[1].attribute[0].attinf[3].value=this.unitData.phone - this.planTemplateData[1].attribute[0].attinf[4].value=this.unitData.organizationName - this.planTemplateData[1].attribute[0].attinf[5].value=this.unitData.address + this.planTemplateData[1].attribute[0].attinf[0].value = this.unitData.usci + this.planTemplateData[1].attribute[0].attinf[1].value = this.unitData.buildingTypes[0].name + this.planTemplateData[1].attribute[0].attinf[2].value = this.unitData.contacts + this.planTemplateData[1].attribute[0].attinf[3].value = this.unitData.phone + this.planTemplateData[1].attribute[0].attinf[4].value = this.unitData.organizationName + this.planTemplateData[1].attribute[0].attinf[5].value = this.unitData.address } /* else if (this.selectedItem == '单位概况') { //this.getAllBuildings() } */ else if (this.selectedItem == '预案附件') { @@ -168,7 +168,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit { objName: this.unitData.name, unitNature: this.unitData.buildingTypes[0].name, planLevel: '', - disasterType: '0', + disasterType: '火灾', fireproofingLevel: '', fireproofingAdminister: this.unitData.organizationName, putOutFireAdminister: '', @@ -304,23 +304,23 @@ export class CreatePlanOnlineFiveComponent implements OnInit { }) }) this.allBuildings = data - if(this.planTemplateData[1].building==undefined){ - this.planTemplateData[1].building=[] - for(var i=0;i { + // console.log('提交成功',data) + const config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('提交成功', '确定', config); + }) + } //返回顶部 goBack() { document.querySelector('#mainbox').scrollIntoView(true) } //生成word generatingDoc() { - console.log(666,$(".mainbox")) + console.log(666, $(".mainbox")) $(".mainbox").wordExport('word文档'); } }
预案编号:
+ 预案编号: {{item.attribute.planNumber}} +