From f1488d0443bc9aeca47af48bd5ad0e60ec1cda02 Mon Sep 17 00:00:00 2001 From: jingbowen <970029315@qq.com> Date: Wed, 10 Aug 2022 19:04:56 +0800 Subject: [PATCH] =?UTF-8?q?word=E6=B7=BB=E5=8A=A0=E9=87=8D=E7=82=B9?= =?UTF-8?q?=E9=83=A8=E4=BD=8D=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unit-details/unit-details.component.html | 140 +++++++++++++- .../unit-details/unit-details.component.ts | 173 +++++++++++++++--- 2 files changed, 283 insertions(+), 30 deletions(-) diff --git a/src/app/home/basic-info/unit-details/unit-details.component.html b/src/app/home/basic-info/unit-details/unit-details.component.html index 4a349a2..566f2f3 100644 --- a/src/app/home/basic-info/unit-details/unit-details.component.html +++ b/src/app/home/basic-info/unit-details/unit-details.component.html @@ -15,7 +15,7 @@ 单位名称 - + --> @@ -23,7 +23,7 @@ 消防安全责任人 - + @@ -31,7 +31,7 @@ 联系方式 - + --> @@ -39,14 +39,14 @@ 单位地址 - + --> 所属救援站 - + @@ -55,7 +55,7 @@ 所属大队 - + @@ -65,14 +65,14 @@ 使用性质 - + --> 建筑类型 - + @@ -91,7 +91,7 @@

山东小满园餐饮有限公司{{datas.basicInfo.name}}基本情况

@@ -608,6 +608,128 @@

+ + +

重点部位情况(一)

+ + +

重点部位名称

+ + +

+ +

+ + +

重点部位所在位置

+ + +

+ + +

建筑结构

+ + +

钢结构

+ + +

使用性质

+ + +

存储漆类,油类

+ + + + +

主要危险性

+ + +

油类,漆类易燃,有毒

+ + + + +

重点部位情况(二)

+ + +

重点部位名称

+ + +

淬火油池

+ + +

重点部位所在位置

+ + +

厂区中部

+ + +

建筑结构

+ + +

钢结构

+ + +

使用性质

+ + +

淬火

+ + + + +

主要危险性

+ + +

高温

+ + 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 74f5dac..339a99d 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 @@ -64,6 +64,16 @@ export class UnitDetailsComponent implements OnInit { indoorHydrant:"", standardIndoorHydrant:"" }, + KeyParts:[ + { + keyparts:"222", + keypartsposition:"333", + }, + { + keyparts:"222", + keypartsposition:"333", + } + ], tips:"" } aaa = true @@ -72,20 +82,20 @@ export class UnitDetailsComponent implements OnInit { zhidui=[] dadui=[] jiuyuanzhan=[] - id='62f209e9f63e69362ed3239e' + id="" ngOnInit(): void { - console.log(this.router); - + console.log(this.datas.KeyParts); + + this.id=this.router['browserUrlTree'].queryParams.id this.validateForm = this.fb.group({ - unit: [null, [Validators.required]], - name: [null], - iphone: [null], - addr: [null], - role: [null], - role2: [null], - nature: [null], - role4: [null], - phonenum: [null] + companyName: [null, [Validators.required]], + directorName: [null], + directorPhone: [null], + address: [null], + organizationId: [null], + relatedOrganizationId: [null], + useNature: [null], + buildingTypeId: [null] }); this.getAllOrganization() this.getCompanies() @@ -587,6 +597,124 @@ export class UnitDetailsComponent implements OnInit { style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.standardIndoorHydrant+`

+ + +

重点部位情况(一)

+ + +

重点部位名称

+ + +

物质存储仓库

+ + +

重点部位所在位置

+ + +

厂区东侧厂房

+ + +

建筑结构

+ + +

钢结构

+ + +

使用性质

+ + +

存储漆类,油类

+ + + + +

主要危险性

+ + +

油类,漆类易燃,有毒

+ + + + +

重点部位情况(二)

+ + +

重点部位名称

+ + +

淬火油池

+ + +

重点部位所在位置

+ + +

厂区中部

+ + +

建筑结构

+ + +

钢结构

+ + +

使用性质

+ + +

淬火

+ + + + +

主要危险性

+ + +

高温

+ + @@ -651,16 +779,19 @@ export class UnitDetailsComponent implements OnInit { this.http.get('/api/Companies/'+this.id).subscribe((data: any) => { console.log(data); this.datas=JSON.parse(data.data) + this.datas.basicInfo.name=data.companyName + this.datas.basicInfo.addr=data.address + this.datas.basicInfo.phone=data.directorPhone + this.datas.basicInfo.nature=data.useNature this.validateForm.patchValue({ - unit: [data.companyName, [Validators.required]], - name: [data.directorName], - iphone: [data.directorPhone], - addr: [data.address], - role: [data.organizationId], - role2: [null], - nature: [null], - role4: [null], - phonenum: [null]}) + companyName: [data.companyName, [Validators.required]], + directorName: [data.directorName], + directorPhone: [data.directorPhone], + address: [data.address], + organizationId: [data.organizationId], + relatedOrganizationId: [data.relatedOrganizationId], + useNature: [data.useNature], + buildingTypeId: [data.buildingTypeId]}) }) }