Browse Source

单位基本信息保存

非煤矿山灾害智能感知和预警系统
jingbowen 2 years ago
parent
commit
1932ab5bb9
  1. 91
      src/app/home/basic-info/unit-details/unit-details.component.html
  2. 9
      src/app/home/basic-info/unit-details/unit-details.component.scss
  3. 413
      src/app/home/basic-info/unit-details/unit-details.component.ts

91
src/app/home/basic-info/unit-details/unit-details.component.html

@ -1,11 +1,19 @@
<div class="detailsbox">
<div class="top"><button nz-button (click)="back()">返回</button></div>
<div class="top">
<div>
<button nz-button (click)="back()">返回</button>
</div>
<div style="text-align: right;">
<button nz-button nzType="primary" (click)="exportClick()">下载文档</button>
<button nz-button [nzType]="'primary'" (click)='edit()'>保存</button>
</div>
</div>
<div class="buttons">
<div class="button-left">
<!-- <button nz-button nzType="primary">新增建筑</button>
<button nz-button nzType="primary">查看消防设施统计</button> -->
</div>
<div class="button-right"><button nz-button nzType="primary" (click)="exportClick()">下载</button></div>
<div class="button-right"></div>
</div>
<div class="title">单位信息</div>
<div class="content" style="display: flex;">
@ -44,21 +52,37 @@
</nz-form-control>
</nz-form-item> -->
<nz-form-item>
<nz-form-label nzRequired [nzSpan]="7" nzFor="所属救援站">所属救援站</nz-form-label>
<nz-form-label [nzSpan]="7" nzFor="所属救援站">所属救援站</nz-form-label>
<nz-form-control [nzSpan]="12">
<nz-select formControlName="organizationId" nzPlaceHolder="请选择所属救援站">
<nz-option *ngFor="let item of jiuyuanzhan" [nzValue]="item.id" [nzLabel]="item.name">
</nz-option>
</nz-select>
<nz-tree-select [nzNodes]="nodes" nzShowSearch nzPlaceHolder="所属机构" formControlName="organizationId"
[nzExpandedIcon]="multiExpandedIconTpl" [nzDropdownClassName]="'maxHeightTreeSelect'" [nzAllowClear]="false">
</nz-tree-select>
<ng-template #multiExpandedIconTpl let-node let-origin="origin">
<ng-container *ngIf="node.children.length == 0; else elseTemplate">
</ng-container>
<ng-template #elseTemplate>
<i nz-icon [nzType]="node.isExpanded ? 'caret-down' : 'caret-right'"
class="ant-tree-switcher-line-icon"></i>
</ng-template>
</ng-template>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="7" nzFor="所属大队">所属大队</nz-form-label>
<nz-form-control [nzSpan]="12">
<nz-select formControlName="relatedOrganizationId" nzPlaceHolder="请选择所属大队">
<nz-option *ngFor="let item of dadui" [nzValue]="item.id" [nzLabel]="item.name">
</nz-option>
</nz-select>
<nz-tree-select [nzNodes]="nodes" nzShowSearch nzPlaceHolder="所属机构" formControlName="relatedOrganizationId"
[nzExpandedIcon]="multiExpandedIconTpl" [nzDropdownClassName]="'maxHeightTreeSelect'" [nzAllowClear]="false">
</nz-tree-select>
<ng-template #multiExpandedIconTpl let-node let-origin="origin">
<ng-container *ngIf="node.children.length == 0; else elseTemplate">
</ng-container>
<ng-template #elseTemplate>
<i nz-icon [nzType]="node.isExpanded ? 'caret-down' : 'caret-right'"
class="ant-tree-switcher-line-icon"></i>
</ng-template>
</ng-template>
</nz-form-control>
</nz-form-item>
<!-- <nz-form-item>
@ -70,10 +94,10 @@
</nz-form-control>
</nz-form-item> -->
<nz-form-item>
<nz-form-label [nzSpan]="7" nzFor="建筑类型">建筑类型</nz-form-label>
<nz-form-control [nzSpan]="12">
<nz-select formControlName="buildingTypeId" nzPlaceHolder="请选择建筑类型">
<nz-option *ngFor="let item of listOfData2" [nzValue]="item.id" [nzLabel]="item.name">
<nz-form-label [nzSpan]="7" nzFor="单位类型">单位类型</nz-form-label>
<nz-form-control [nzSpan]="12">
<nz-select formControlName="buildingTypeId" nzPlaceHolder="请选择单位类型">
<nz-option *ngFor="let item of BuildingTypes" [nzValue]="item.id" [nzLabel]="item.buildingTypeName">
</nz-option>
</nz-select>
</nz-form-control>
@ -369,7 +393,7 @@
style="font-family:宋体; font-size:9pt">)</span><br /><span
style="font-family:宋体; font-size:9pt">无(</span><span style="font-family:宋体; font-size:9pt"></span><span
style="font-family:宋体; font-size:9pt">)</span> -->
<label nz-checkbox [(ngModel)]="datas.facilities.alarm">有无</label>
<label nz-checkbox [(ngModel)]="datas.facilities.system.alarm">有无</label>
</p>
</td>
<td colspan="3"
@ -385,7 +409,7 @@
style="font-family:宋体; font-size:9pt">)</span><br /><span
style="font-family:宋体; font-size:9pt">无(</span><span style="font-family:宋体; font-size:9pt"></span><span
style="font-family:宋体; font-size:9pt">)</span> -->
<label nz-checkbox [(ngModel)]="datas.facilities.spray">有无</label>
<label nz-checkbox [(ngModel)]="datas.facilities.system.spray">有无</label>
</p>
</td>
<td colspan="4"
@ -401,7 +425,7 @@
style="font-family:宋体; font-size:9pt">)</span><br /><span
style="font-family:宋体; font-size:9pt">无(</span><span style="font-family:宋体; font-size:9pt"></span><span
style="font-family:宋体; font-size:9pt">)</span> -->
<label nz-checkbox [(ngModel)]="datas.facilities.broadcast">有无</label>
<label nz-checkbox [(ngModel)]="datas.facilities.system.broadcast">有无</label>
</p>
</td>
<td colspan="2"
@ -417,7 +441,7 @@
style="font-family:宋体; font-size:9pt">)</span><br /><span
style="font-family:宋体; font-size:9pt">无(</span><span style="font-family:宋体; font-size:9pt"></span><span
style="font-family:宋体; font-size:9pt">)</span> -->
<label nz-checkbox [(ngModel)]="datas.facilities.smoke">有无</label>
<label nz-checkbox [(ngModel)]="datas.facilities.system.smoke">有无</label>
</p>
</td>
</tr>
@ -636,7 +660,7 @@
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:42.15pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt"><input
[(ngModel)]="datas.KeyParts[0].keypartsposition" nz-input style="width:120px" type="text"></span></p>
[(ngModel)]="datas.KeyParts[0].keypartsposition" nz-input style="width:50px" type="text"></span></p>
</td>
<td colspan="4"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:34.55pt">
@ -646,7 +670,8 @@
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:43.15pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">钢结构</span></p>
style="font-family:宋体; font-size:9pt"><input
[(ngModel)]="datas.KeyParts[0].buildingstructure" nz-input style="width:50px" type="text"></span></p>
</td>
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:36.55pt">
@ -656,7 +681,8 @@
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:65.6pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">存储漆类,油类</span></p>
style="font-family:宋体; font-size:9pt"><input
[(ngModel)]="datas.KeyParts[0].useNature" nz-input style="width:50px" type="text"></span></p>
</td>
</tr>
<tr style="height:31.75pt">
@ -668,7 +694,8 @@
<td colspan="18"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:377.05pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">油类,漆类易燃,有毒</span></p>
style="font-family:宋体; font-size:9pt"><input
[(ngModel)]="datas.KeyParts[0].danger" nz-input style="width:250px" type="text"></span></p>
</td>
</tr>
<tr style="height:35.1pt">
@ -685,7 +712,8 @@
<td
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:35.45pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">淬火油池</span></p>
style="font-family:宋体; font-size:9pt"><input
[(ngModel)]="datas.KeyParts[1].keyparts" nz-input style="width:50px" type="text"></span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:54.8pt">
@ -695,7 +723,8 @@
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:42.15pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">厂区中部</span></p>
style="font-family:宋体; font-size:9pt"><input
[(ngModel)]="datas.KeyParts[1].keypartsposition" nz-input style="width:50px" type="text"></span></p>
</td>
<td colspan="4"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:34.55pt">
@ -705,7 +734,8 @@
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:43.15pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">钢结构</span></p>
style="font-family:宋体; font-size:9pt"><input
[(ngModel)]="datas.KeyParts[1].buildingstructure" nz-input style="width:50px" type="text"></span></p>
</td>
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:36.55pt">
@ -715,7 +745,8 @@
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:65.6pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">淬火</span></p>
style="font-family:宋体; font-size:9pt"><input
[(ngModel)]="datas.KeyParts[1].useNature" nz-input style="width:50px" type="text"></span></p>
</td>
</tr>
<tr style="height:31.75pt">
@ -727,7 +758,8 @@
<td colspan="18"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:377.05pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">高温</span></p>
style="font-family:宋体; font-size:9pt"><input
[(ngModel)]="datas.KeyParts[1].danger" nz-input style="width:250px" type="text"></span></p>
</td>
</tr>
<tr style="height:56pt">
@ -771,7 +803,8 @@
<p style="margin:0pt; orphans:0; text-align:justify; widows:0"><span style="-aw-bookmark-end:_目录"></span><span
style="font-family:Calibri; font-size:10.5pt">&#xa0;</span></p>
</div>
</div>
<!-- <button nz-button [nzType]="'primary'" (click)='exportClick()'>导出报告</button> -->
</div>

9
src/app/home/basic-info/unit-details/unit-details.component.scss

@ -7,11 +7,14 @@
.top {
text-align: left;
margin: 20px;
display: flex;
// border-bottom: 1px solid #eee;
color: #000;
span {
color: #000D21;
margin-right: 16px;
div{
width: 50%;
}
button{
margin-right: 10px;
}
}
.buttons{

413
src/app/home/basic-info/unit-details/unit-details.component.ts

@ -1,7 +1,9 @@
import { Component, Renderer2, OnDestroy, AfterViewInit, ElementRef, OnInit, ViewChild } from '@angular/core';
import { Component, Input, Renderer2, OnDestroy, AfterViewInit, ElementRef, OnInit, ViewChild } from '@angular/core';
import { CustomReuseStrategy } from 'src/app/CustomReuseStrategy';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NzMessageService } from 'ng-zorro-antd/message';
import { Router } from '@angular/router';
import { TreeService } from 'src/app/service/tree.service';
import { HttpClient } from '@angular/common/http';
import { asBlob } from 'html-docx-js-typescript'
// 要保存这个docx文件推荐引入file-saver哦,你可以用npm i -D file-saver来安装
@ -14,10 +16,11 @@ import { saveAs } from 'file-saver'
export class UnitDetailsComponent implements OnInit {
@ViewChild('box') box: ElementRef;
constructor(private router: Router,private fb: FormBuilder, private http: HttpClient, private renderer: Renderer2, private el: ElementRef) {
constructor(private message:NzMessageService, private router: Router, private toTree: TreeService, private fb: FormBuilder, private http: HttpClient, private renderer: Renderer2, private el: ElementRef) {
}
datas= {
datas = {
basicInfo: {
name: "",
addr: "",
@ -25,116 +28,125 @@ 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:{
controlPosition:"",
poolNumbe:"",
poolPosition:"",
poolCapacity:"",
supplyMode:"",
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:""
facilities: {
controlPosition: "",
poolNumbe: "",
poolPosition: "",
poolCapacity: "",
supplyMode: "",
waterSources: "",
waterSourcesPosition: "",
system:{
alarm: false,
spray: false,
broadcast: false,
smoke: false,
},
hydrantsNumber: "",
hydrantsPosition: "",
pumpNumber: "",
pumpRange: "",
pumpFlow: "",
pumpAdapter: "",
SprayPumpNumber: "",
SprayPumpRange: "",
SprayPumpFlow: "",
SprayPumpAdapter: "",
elevator: "",
stairs: "",
Export: "",
indoorHydrant: "",
standardIndoorHydrant: ""
},
KeyParts:[
KeyParts: [
{
keyparts:"222",
keypartsposition:"333",
keyparts: "",
keypartsposition: "",
buildingstructure: "",
useNature: "",
danger: ""
},
{
keyparts:"222",
keypartsposition:"333",
keyparts: "",
keypartsposition: "",
buildingstructure: "",
useNature: "",
danger: ""
}
],
tips:""
tips: ""
}
aaa = true
list={}
list = {}
validateForm!: FormGroup;
zhidui=[]
dadui=[]
jiuyuanzhan=[]
id=""
zhidui = []
dadui = []
jiuyuanzhan = []
id = ""
item = false
integrity = 0
ngOnInit(): void {
console.log(this.datas.KeyParts);
this.id=this.router['browserUrlTree'].queryParams.id
this.validateForm = this.fb.group({
companyName: [null, [Validators.required]],
directorName: [null],
directorPhone: [null],
address: [null],
organizationId: [null],
relatedOrganizationId: [null],
useNature: [null],
buildingTypeId: [null]
});
this.getAllOrganization()
this.getCompanies()
this.item = true
this.id = this.router['browserUrlTree'].queryParams.id
this.validateForm = this.fb.group({
directorName: [null],
organizationId: [null, [Validators.required]],
relatedOrganizationId: [null],
buildingTypeId: [null]
});
console.log(this.validateForm);
this.getAllOrganization()
this.getCompanies()
this.getBuildingTypes()
}
listOfData: any[] = [];
listOfData2: any[] = [];
exportClick() {
let alarm=""
let spray=""
let broadcast=""
let smoke=""
if(this.datas.facilities.alarm){
alarm="有"
}else{
alarm="无"
let alarm = ""
let spray = ""
let broadcast = ""
let smoke = ""
if (this.datas.facilities.system.alarm) {
alarm = "有"
} else {
alarm = "无"
}
if(this.datas.facilities.spray){
spray="有"
}else{
spray="无"
if (this.datas.facilities.system.spray) {
spray = "有"
} else {
spray = "无"
}
if(this.datas.facilities.broadcast){
broadcast="有"
}else{
broadcast="无"
if (this.datas.facilities.system.broadcast) {
broadcast = "有"
} else {
broadcast = "无"
}
if(this.datas.facilities.smoke){
smoke="有"
}else{
smoke="无"
if (this.datas.facilities.system.smoke) {
smoke = "有"
} else {
smoke = "无"
}
let box=`<table cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin: 0 auto; ">
let box = `<table cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin: 0 auto; ">
<tr style="height:18.4pt">
<td colspan="20"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:1pt; padding-left:5.4pt; padding-right:5.4pt; vertical-align:middle; width:477.65pt">
<p style="margin:0pt; orphans:0; text-align:center; widows:0"><a name="_目录"><span
style="font-family:宋体; font-size:22pt; font-weight:bold; color: #000;">`+this.datas.basicInfo.name+`</span><span
style="font-family:宋体; font-size:22pt; font-weight:bold; color: #000;">`+ this.datas.basicInfo.name + `</span><span
style="font-family:宋体; font-size:22pt; font-weight:bold; color: #000;"></span></a></p>
</td>
</tr>
@ -152,7 +164,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="4"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:1pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:101.05pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.name+` </span></p>
style="font-family:宋体; font-size:9pt">`+ this.datas.basicInfo.name + ` </span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:42.15pt">
@ -162,7 +174,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="7"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:1pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:88.5pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.addr+`</span>
style="font-family:宋体; font-size:9pt">`+ this.datas.basicInfo.addr + `</span>
</td>
<td
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:1pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:36.15pt">
@ -172,7 +184,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:1pt; padding-left:5.03pt; padding-right:4.9pt; vertical-align:middle; width:66pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.basicInfo.phone+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.basicInfo.phone + `</span></p>
</td>
</tr>
<tr style="height:22.3pt">
@ -183,7 +195,7 @@ export class UnitDetailsComponent implements OnInit {
</td>
<td colspan="4"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:101.05pt">
<p style="margin:0pt; text-align:center"><span style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.basicInfo.total+`</span></p>
<p style="margin:0pt; text-align:center"><span style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.basicInfo.total + `</span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:42.15pt">
@ -192,7 +204,7 @@ export class UnitDetailsComponent implements OnInit {
</td>
<td colspan="7"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:88.5pt">
<p style="margin:0pt; text-align:center"><span style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.basicInfo.height+`</span></p>
<p style="margin:0pt; text-align:center"><span style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.basicInfo.height + `</span></p>
</td>
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:36.55pt">
@ -201,7 +213,7 @@ export class UnitDetailsComponent implements OnInit {
</td>
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:65.6pt">
<p style="margin:0pt; text-align:center"><span style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.basicInfo.layer+`</span></p>
<p style="margin:0pt; text-align:center"><span style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.basicInfo.layer + `</span></p>
</td>
</tr>
<tr style="height:4pt">
@ -213,7 +225,7 @@ export class UnitDetailsComponent implements OnInit {
<td
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:35.45pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.structure+`</span></p>
style="font-family:宋体; font-size:9pt">`+ this.datas.basicInfo.structure + `</span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:54.8pt">
@ -223,7 +235,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:42.15pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.basicInfo.coveredArea+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.basicInfo.coveredArea + `</span></p>
</td>
<td colspan="4"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:34.55pt">
@ -233,7 +245,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:43.15pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.basicInfo.builtUpArea+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.basicInfo.builtUpArea + `</span></p>
</td>
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:36.55pt">
@ -243,7 +255,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:65.6pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.nature+`</span></p>
style="font-family:宋体; font-size:9pt">`+ this.datas.basicInfo.nature + `</span></p>
</td>
</tr>
<tr style="height:16.9pt">
@ -255,22 +267,22 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="4"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:101.05pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt"></span><span style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.east+`</span></p>
style="font-family:宋体; font-size:9pt"></span><span style="font-family:宋体; font-size:9pt">`+ this.datas.basicInfo.east + `</span></p>
</td>
<td colspan="7"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:87.5pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt"></span><span style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.south+`</span></p>
style="font-family:宋体; font-size:9pt"></span><span style="font-family:宋体; font-size:9pt">`+ this.datas.basicInfo.south + `</span></p>
</td>
<td colspan="5"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:90.5pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">西</span><span style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.west+`</span></p>
style="font-family:宋体; font-size:9pt">西</span><span style="font-family:宋体; font-size:9pt">`+ this.datas.basicInfo.west + `</span></p>
</td>
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:65.6pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt"></span><span style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.north+`</span></p>
style="font-family:宋体; font-size:9pt"></span><span style="font-family:宋体; font-size:9pt">`+ this.datas.basicInfo.north + `</span></p>
</td>
</tr>
<tr style="height:21.45pt">
@ -282,7 +294,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="18"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:377.05pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.routeAndTime+`</span></p>
style="font-family:宋体; font-size:9pt">`+ this.datas.basicInfo.routeAndTime + `</span></p>
</td>
</tr>
<tr style="height:22.3pt">
@ -303,7 +315,7 @@ export class UnitDetailsComponent implements OnInit {
</td>
<td colspan="17"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:330.8pt">
<p style="margin:0pt; text-align:center"><span style="font-family:宋体; font-size:9pt">`+this.datas.facilities.controlPosition+`</span></p>
<p style="margin:0pt; text-align:center"><span style="font-family:宋体; font-size:9pt">`+ this.datas.facilities.controlPosition + `</span></p>
</td>
</tr>
<tr style="height:22.3pt">
@ -320,7 +332,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:54.8pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.poolNumbe+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.poolNumbe + `</span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:42.15pt">
@ -330,7 +342,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="4"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:34.55pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.poolPosition+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.poolPosition + `</span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:43.15pt">
@ -340,7 +352,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:36.55pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.poolCapacity+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.poolCapacity + `</span></p>
</td>
<td
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:28.65pt">
@ -350,7 +362,7 @@ export class UnitDetailsComponent implements OnInit {
<td
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:26.15pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt"`+this.datas.facilities.supplyMode+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt"`+ this.datas.facilities.supplyMode + `</span></p>
</td>
</tr>
<tr style="height:21.45pt">
@ -362,7 +374,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="10"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:153.1pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.waterSources+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.waterSources + `</span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:43.15pt">
@ -372,7 +384,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="4"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:112.95pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.waterSourcesPosition+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.waterSourcesPosition + `</span></p>
</td>
</tr>
<tr style="height:29.5pt">
@ -385,7 +397,7 @@ export class UnitDetailsComponent implements OnInit {
<td
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:35.45pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0">
`+alarm+`
`+ alarm + `
</p>
</td>
<td colspan="3"
@ -396,7 +408,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:42.15pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0">
`+spray+`
`+ spray + `
</p>
</td>
<td colspan="4"
@ -407,7 +419,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:43.15pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0">
`+broadcast+`
`+ broadcast + `
</p>
</td>
<td colspan="2"
@ -418,7 +430,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:65.6pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0">
`+smoke+`
`+ smoke + `
</p>
</td>
</tr>
@ -431,7 +443,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="5"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:130.4pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.hydrantsNumber+`</span><span
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.hydrantsNumber + `</span><span
style="font-family:宋体; font-size:9pt"></span></p>
</td>
<td colspan="5"
@ -442,7 +454,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="8"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:172.05pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt">`+this.datas.facilities.hydrantsPosition+`</span></p>
style="font-family:宋体; font-size:9pt">`+ this.datas.facilities.hydrantsPosition + `</span></p>
</td>
</tr>
<tr style="height:28.05pt">
@ -460,20 +472,20 @@ export class UnitDetailsComponent implements OnInit {
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:41.5pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt"></span><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.pumpNumber+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.pumpNumber + `</span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:40.9pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt"></span><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.pumpRange+`</span><span
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.pumpRange + `</span><span
style="font-family:'Times New Roman'; font-size:9pt">m</span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:39.2pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt"></span><span style="font-family:宋体; font-size:9pt"></span><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.pumpFlow+`</span><span
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.pumpFlow + `</span><span
style="font-family:'Times New Roman'; font-size:9pt">L/S</span></p>
</td>
<td colspan="4"
@ -490,7 +502,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:65.6pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.pumpAdapter+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.pumpAdapter + `</span></p>
</td>
</tr>
<tr style="height:26.1pt">
@ -503,20 +515,20 @@ export class UnitDetailsComponent implements OnInit {
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:41.5pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt"></span><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.SprayPumpNumber+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.SprayPumpNumber + `</span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:40.9pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt"></span><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.SprayPumpRange+`</span><span
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.SprayPumpRange + `</span><span
style="font-family:'Times New Roman'; font-size:9pt">m</span></p>
</td>
<td colspan="3"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:39.2pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:宋体; font-size:9pt"></span><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.SprayPumpFlow+`</span><span
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.SprayPumpFlow + `</span><span
style="font-family:'Times New Roman'; font-size:9pt">L/S</span></p>
</td>
<td colspan="4"
@ -533,7 +545,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:65.6pt">
<p style="line-height:12pt; margin:0pt; orphans:0; text-align:center; widows:0"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.SprayPumpAdapter+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.SprayPumpAdapter + `</span></p>
</td>
</tr>
<tr style="height:26.1pt">
@ -546,7 +558,7 @@ export class UnitDetailsComponent implements OnInit {
</td>
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:82.25pt">
<p style="margin:0pt; text-align:center"><span style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.elevator+`</span>
<p style="margin:0pt; text-align:center"><span style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.elevator + `</span>
</p>
</td>
<td colspan="4"
@ -559,7 +571,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="6"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:82.05pt">
<p style="margin:0pt; text-align:center"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.stairs+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.stairs + `</span></p>
</td>
<td colspan="4"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:57.55pt">
@ -571,7 +583,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="2"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:65.6pt">
<p style="margin:0pt; text-align:center"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.Export+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.Export + `</span></p>
</td>
</tr>
<tr style="height:26.1pt">
@ -583,7 +595,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="4"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:101.05pt">
<p style="margin:0pt; text-align:center"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.indoorHydrant+`</span><span
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.indoorHydrant + `</span><span
style="font-family:宋体; font-size:9pt"></span></p>
</td>
<td colspan="4"
@ -594,7 +606,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="10"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:1pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:4.9pt; vertical-align:middle; width:191.1pt">
<p style="margin:0pt; text-align:center"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.standardIndoorHydrant+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.facilities.standardIndoorHydrant + `</span></p>
</td>
</tr>
<tr style="height:35.1pt">
@ -726,7 +738,7 @@ export class UnitDetailsComponent implements OnInit {
<td colspan="19"
style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:436.8pt">
<p style="margin:0pt; text-align:center"><span
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.tips+`</span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+ this.datas.tips + `</span></p>
</td>
</tr>
<tr style="height:0pt">
@ -774,51 +786,122 @@ export class UnitDetailsComponent implements OnInit {
back() {
window.history.back()
}
getCompanies(){
edit() {
let num = 0
let num2 = 0
let num3 = 0
console.log(this.validateForm.value);
for (const key in this.validateForm.value) {
if (Object.prototype.hasOwnProperty.call(this.validateForm.value, key)) {
const element = this.validateForm.value[key];
if (element) {
num3 += 1
}
}
}
this.http.get('/api/Companies/'+this.id).subscribe((data: any) => {
for (const key in this.datas) {
if (Object.prototype.hasOwnProperty.call(this.datas, key)) {
const element = this.datas[key];
for (const key in element) {
if (Object.prototype.hasOwnProperty.call(element, key)) {
const element2 = element[key];
if (element2) {
// console.log(element2);
num += 1
}
}
}
}
}
for (const key in this.datas.KeyParts) {
if (Object.prototype.hasOwnProperty.call(this.datas.KeyParts, key)) {
const element = this.datas.KeyParts[key]
for (const key in element) {
if (Object.prototype.hasOwnProperty.call(element, key)) {
const element2 = element[key]
// console.log(element2);
if (element2) {
num2 += 1
}
}
}
}
}
let num4=(num+num2+num3+1)/56
this.integrity = Math.floor(num4*100)/100
let body = {
id: this.id,
companyName: this.datas.basicInfo.name,
directorName: this.validateForm.value.directorName,
directorPhone: this.datas.basicInfo.phone,
address: this.datas.basicInfo.addr,
organizationId: this.validateForm.value.organizationId,
relatedOrganizationId: this.validateForm.value.relatedOrganizationId,
useNature: this.datas.basicInfo.nature,
buildingTypeId: this.validateForm.value.buildingTypeId,
integrity: this.integrity,
data:JSON.stringify(this.datas)
}
this.http.patch('/api/Companies/' + this.id, body).subscribe(data => {
console.log(data);
this.message.create('success', '保存成功!');
this.getCompanies()
})
}
BuildingTypes
getBuildingTypes() {
this.http.get('/api/BuildingTypes').subscribe((data: any) => {
console.log(data);
this.BuildingTypes = data
})
}
getCompanies() {
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
if(data.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.integrity = data.integrity
this.validateForm.patchValue({
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]})
directorName: data.directorName,
organizationId: data.organizationId,
relatedOrganizationId: data.relatedOrganizationId,
buildingTypeId: data.buildingTypeId
})
})
}
nodes: any = []
getAllOrganization(){
getAllOrganization() {
let organizationId = JSON.parse(sessionStorage.getItem('userData')).organizationId
let params = {
// OrganizationUnitId: OrganizationUnitId,
// IsContainsChildren: "true"
ContainsChildren: true,
pageSize: 9999
OrganizationId: organizationId || '',
ContainsChildren: "true",
PageNumber: 1,
PageSize: 9999
}
this.http.get('/api/Organizations', {
params: params
}).subscribe((data: any) => {
console.log(data);
for (let index = 0; index < data.items.length; index++) {
if(data.items[index].level==1){
this.zhidui.push(data.items[index])
}else if(data.items[index].level==2){
this.dadui.push(data.items[index])
}else{
this.jiuyuanzhan.push(data.items[index])
data.items.forEach(element => {
if (element.id == organizationId) {
element.parentId = null
}
}
console.log(this.dadui);
element.key = element.id
element.title = element.name
});
this.nodes = [...this.toTree.toTree(data.items)]
})
}
}

Loading…
Cancel
Save