From 630a5e82898b50d7a2320afb0724543de0b2979f Mon Sep 17 00:00:00 2001 From: jingbowen <970029315@qq.com> Date: Tue, 9 Aug 2022 10:12:33 +0800 Subject: [PATCH] =?UTF-8?q?word=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unit-details/unit-details.component.ts | 558 +++++++++++++++++- .../or/addor/addor.component.html | 4 +- .../or/addor/addor.component.ts | 2 +- 3 files changed, 544 insertions(+), 20 deletions(-) diff --git a/src/app/home/basic-info/unit-details/unit-details.component.ts b/src/app/home/basic-info/unit-details/unit-details.component.ts index 04d5879..c3e4fa5 100644 --- a/src/app/home/basic-info/unit-details/unit-details.component.ts +++ b/src/app/home/basic-info/unit-details/unit-details.component.ts @@ -21,7 +21,7 @@ export class UnitDetailsComponent implements OnInit { comment: [''] }); } - datas: { + datas= { basicInfo: { name: "", addr: "", @@ -29,15 +29,15 @@ export class UnitDetailsComponent implements OnInit { total: "", height: "", layer: "", - structure: "", - coveredArea: "", - builtUpArea: "", - nature: "", - east: "", - south: "", - west: "", - north: "", - routeAndTime: "", + structure:"", + coveredArea:"", + builtUpArea:"", + nature:"", + east:"", + south:"", + west:"", + north:"", + routeAndTime:"", }, facilities:{ @@ -49,17 +49,31 @@ export class UnitDetailsComponent implements OnInit { waterSources:"", waterSourcesPosition:"", alarm:false, - - } + spray:false, + broadcast:false, + smoke:false, + hydrantsNumber:"", + hydrantsPosition:"", + pumpNumber:"", + pumpRange:"", + pumpFlow:"", + pumpAdapter:"", + SprayPumpNumber:"", + SprayPumpRange:"", + SprayPumpFlow:"", + SprayPumpAdapter:"", + elevator:"", + stairs:"", + Export:"", + indoorHydrant:"", + standardIndoorHydrant:"" + }, + tips:"" } aaa = true validateForm!: FormGroup; ngOnInit(): void { - setTimeout(() => { console.log(666,this.datas); - }, 0); - - } submitForm(value: { userName: string; email: string; password: string; confirm: string; comment: string }): void { for (const key in this.validateForm.controls) { @@ -81,7 +95,517 @@ export class UnitDetailsComponent implements OnInit { } exportClick() { - console.log(this.box); + let box=` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

`+this.datas.basicInfo.name+`基本情况

+
+

单位基本情况

+
+

单位名称

+
+

`+this.datas.basicInfo.name+`

+
+

单位地址

+
+

`+this.datas.basicInfo.addr+` +

+

联系电话

+
+

`+this.datas.basicInfo.phone+`

+
+

人员总数

+
+

`+this.datas.basicInfo.total+`

+
+

建筑高度

+
+

`+this.datas.basicInfo.height+`

+
+

层数

+
+

+
+

建筑结构

+
+

+
+

占地面积

+
+

+
+

总建筑面积

+
+

+
+

主要使用性质

+
+

+
+

毗邻建筑

+
+

东:

+
+

南:

+
+

西:

+
+

北:

+
+

辖区中队行驶路线及时间

+
+

+
+

单位内部主要消防设施

+
+

消防控制室

+
+

位置

+
+

+
+

消防水源

+
+

消防水池数量

+
+

+
+

位置

+
+

+
+

总容量

+
+

+
+

补给方式

+
+

+
+

室外其他水源

+
+

+
+

位置

+
+

+
+

自动报警系统

+ +
+

+ + +

+
+

自动喷水系统

+
+

+ + +

+
+

应急广播系统

+
+

+ + +

+
+

防排烟系统

+
+

+ + +

+
+

室外消火栓数量

+
+

+
+

室外消火栓位置分布

+
+

+
+

消防泵

+
+

消火栓泵

+
+

数量:

+
+

扬程:m

+
+

流量L/S

+
+

水泵接合器

+
+

数量:

+
+

+
+

喷淋泵

+
+

数量:

+
+

扬程:m

+
+

流量:L/S

+
+

水泵接合器

+
+

数量:

+
+

+
+

消防电梯

+

数量及位置

+
+

+

+
+

疏散楼梯

+

数量及位置

+
+

+
+

安全出口

+

数量及位置

+
+

+
+

室内消火栓数量

+
+

+
+

标准层室内消火栓数量及位置

+
+

+
+

重点

+

提示

+
+

+
+

 

` // return const htmlString = ` diff --git a/src/app/home/system-management/or/addor/addor.component.html b/src/app/home/system-management/or/addor/addor.component.html index 027be1f..3e7cedd 100644 --- a/src/app/home/system-management/or/addor/addor.component.html +++ b/src/app/home/system-management/or/addor/addor.component.html @@ -14,10 +14,10 @@ --> - + \ No newline at end of file diff --git a/src/app/home/system-management/or/addor/addor.component.ts b/src/app/home/system-management/or/addor/addor.component.ts index 7fd172c..3e24d8f 100644 --- a/src/app/home/system-management/or/addor/addor.component.ts +++ b/src/app/home/system-management/or/addor/addor.component.ts @@ -16,7 +16,7 @@ export class AddorComponent implements OnInit { this.validateForm = this.fb.group({ name: [null, [Validators.required]], // code: [null, [Validators.required]], - isGasStation: [false] + // isGasStation: [false] }); } destroyModal(): void {