Browse Source

word完善

非煤矿山灾害智能感知和预警系统
jingbowen 2 years ago
parent
commit
15652ab221
  1. 18
      src/app/home/basic-info/unit-details/unit-details.component.html
  2. 106
      src/app/home/basic-info/unit-details/unit-details.component.ts
  3. 73
      src/app/home/basic-info/unit-edit/unit-edit.component.html
  4. 0
      src/app/home/basic-info/unit-edit/unit-edit.component.scss
  5. 25
      src/app/home/basic-info/unit-edit/unit-edit.component.spec.ts
  6. 99
      src/app/home/basic-info/unit-edit/unit-edit.component.ts
  7. 8
      src/app/home/basic-info/unit/unit.component.html
  8. 30
      src/app/home/basic-info/unit/unit.component.scss
  9. 6
      src/app/home/basic-info/unit/unit.component.ts
  10. 4
      src/app/home/home.module.ts

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

@ -3,8 +3,8 @@
<div class="top"><button nz-button (click)="back()">返回</button></div>
<div class="buttons">
<div class="button-left">
<button nz-button nzType="primary">新增建筑</button>
<button nz-button nzType="primary">查看消防设施统计</button>
<!-- <button nz-button nzType="primary">新增建筑</button>
<button nz-button nzType="primary">查看消防设施统计</button> -->
</div>
<div class="button-right"><button nz-button nzType="primary">保存</button></div>
</div>
@ -236,7 +236,7 @@
</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"><input style="width: 200px;" nz-input type="text"></span></p>
<p style="margin:0pt; text-align:center"><span style="font-family:宋体; font-size:9pt"><input [(ngModel)]="datas.facilities.controlPosition" style="width: 200px;" nz-input type="text"></span></p>
</td>
</tr>
<tr style="height:22.3pt">
@ -253,7 +253,7 @@
<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"><input nz-input style="width:50px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt"><input [(ngModel)]="datas.facilities.poolNumbe" 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:42.15pt">
@ -263,7 +263,7 @@
<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"><input nz-input style="width:50px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt"><input [(ngModel)]="datas.facilities.poolPosition" 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:43.15pt">
@ -273,7 +273,7 @@
<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"><input nz-input style="width:50px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt"><input [(ngModel)]="datas.facilities.poolCapacity" nz-input style="width:50px" type="text"></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">
@ -283,7 +283,7 @@
<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"><input nz-input style="width:50px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt"><input [(ngModel)]="datas.facilities.supplyMode" nz-input style="width:50px" type="text"></span></p>
</td>
</tr>
<tr style="height:21.45pt">
@ -295,7 +295,7 @@
<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"><input nz-input style="width:120px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt"><input [(ngModel)]="datas.facilities.waterSources" nz-input style="width:120px" 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:43.15pt">
@ -305,7 +305,7 @@
<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"><input nz-input style="width:140px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt"><input [(ngModel)]="datas.facilities.waterSourcesPosition" nz-input style="width:140px" type="text"></span></p>
</td>
</tr>
<tr style="height:29.5pt">

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

@ -95,6 +95,30 @@ export class UnitDetailsComponent implements OnInit {
}
exportClick() {
let alarm=""
let spray=""
let broadcast=""
let smoke=""
if(this.datas.facilities.alarm){
alarm="有"
}else{
alarm="无"
}
if(this.datas.facilities.spray){
spray="有"
}else{
spray="无"
}
if(this.datas.facilities.broadcast){
broadcast="有"
}else{
broadcast="无"
}
if(this.datas.facilities.smoke){
smoke="有"
}else{
smoke="无"
}
let box=`<table cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin: 0 auto; ">
<tr style="height:18.4pt">
<td colspan="20"
@ -167,7 +191,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"><input [(ngModel)]="datas.basicInfo.layer" style="width: 90px;" nz-input type="text"></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">
@ -179,7 +203,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"><input [(ngModel)]="datas.basicInfo.structure" style="width: 50px;" nz-input type="text"></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">
@ -189,7 +213,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"><input [(ngModel)]="datas.basicInfo.coveredArea" style="width: 60px;" nz-input type="text"></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">
@ -199,7 +223,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"><input [(ngModel)]="datas.basicInfo.builtUpArea" style="width: 60px;" nz-input type="text"></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">
@ -209,7 +233,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"><input [(ngModel)]="datas.basicInfo.nature" style="width: 90px;" nz-input type="text"></span></p>
style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.nature+`</span></p>
</td>
</tr>
<tr style="height:16.9pt">
@ -221,22 +245,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"><input [(ngModel)]="datas.basicInfo.east" style="width: 90px;" nz-input type="text"></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"><input [(ngModel)]="datas.basicInfo.south" style="width: 90px;" nz-input type="text"></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"><input [(ngModel)]="datas.basicInfo.west" style="width: 90px;" nz-input type="text"></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"><input [(ngModel)]="datas.basicInfo.north" style="width: 50px;" nz-input type="text"></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">
@ -248,7 +272,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"><textarea [(ngModel)]="datas.basicInfo.routeAndTime" style="width: 400px; height: 100px;" type="text"></textarea></span></p>
style="font-family:宋体; font-size:9pt">`+this.datas.basicInfo.routeAndTime+`</span></p>
</td>
</tr>
<tr style="height:22.3pt">
@ -269,7 +293,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"><input style="width: 200px;" nz-input type="text"></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">
@ -286,7 +310,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"><input nz-input style="width:50px" type="text"></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">
@ -296,7 +320,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"><input nz-input style="width:50px" type="text"></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">
@ -306,7 +330,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"><input nz-input style="width:50px" type="text"></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">
@ -316,7 +340,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"><input nz-input style="width:50px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt"`+this.datas.facilities.supplyMode+`</span></p>
</td>
</tr>
<tr style="height:21.45pt">
@ -328,7 +352,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"><input nz-input style="width:120px" type="text"></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">
@ -338,7 +362,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"><input nz-input style="width:140px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.waterSourcesPosition+`</span></p>
</td>
</tr>
<tr style="height:29.5pt">
@ -351,8 +375,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">
<label nz-checkbox [(ngModel)]="datas.facilities.alarm"></label>
`+alarm+`
</p>
</td>
<td colspan="3"
@ -363,8 +386,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">
<label nz-checkbox [(ngModel)]="datas.facilities.spray"></label>
`+spray+`
</p>
</td>
<td colspan="4"
@ -375,8 +397,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">
<label nz-checkbox [(ngModel)]="datas.facilities.broadcast"></label>
`+broadcast+`
</p>
</td>
<td colspan="2"
@ -387,8 +408,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">
<label nz-checkbox [(ngModel)]="datas.facilities.smoke"></label>
`+smoke+`
</p>
</td>
</tr>
@ -401,7 +421,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"><input [(ngModel)]="datas.facilities.hydrantsNumber" nz-input style="width:50px" type="text"></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"
@ -412,7 +432,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"><input [(ngModel)]="datas.facilities.hydrantsPosition" nz-input style="width:150px" type="text"></span></p>
style="font-family:宋体; font-size:9pt">`+this.datas.facilities.hydrantsPosition+`</span></p>
</td>
</tr>
<tr style="height:28.05pt">
@ -430,20 +450,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"><input [(ngModel)]="datas.facilities.pumpNumber" nz-input style="width:50px" type="text"></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"><input [(ngModel)]="datas.facilities.pumpRange" nz-input style="width:50px" type="text"></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"><input [(ngModel)]="datas.facilities.pumpFlow" nz-input style="width:50px" type="text"></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"
@ -460,7 +480,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"><input [(ngModel)]="datas.facilities.pumpAdapter" nz-input style="width:50px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.pumpAdapter+`</span></p>
</td>
</tr>
<tr style="height:26.1pt">
@ -473,20 +493,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"><input [(ngModel)]="datas.facilities.SprayPumpNumber" nz-input style="width:50px" type="text"></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"><input [(ngModel)]="datas.facilities.SprayPumpRange" nz-input style="width:50px" type="text"></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"><input [(ngModel)]="datas.facilities.SprayPumpFlow" nz-input style="width:50px" type="text"></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"
@ -503,7 +523,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"><input [(ngModel)]="datas.facilities.SprayPumpAdapter" nz-input style="width:50px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.SprayPumpAdapter+`</span></p>
</td>
</tr>
<tr style="height:26.1pt">
@ -516,7 +536,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"><input [(ngModel)]="datas.facilities.elevator" nz-input style="width:100px" type="text"></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"
@ -529,7 +549,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"><input [(ngModel)]="datas.facilities.stairs" nz-input style="width:100px" type="text"></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">
@ -541,7 +561,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"><input [(ngModel)]="datas.facilities.Export" nz-input style="width:50px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.Export+`</span></p>
</td>
</tr>
<tr style="height:26.1pt">
@ -553,7 +573,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"><input [(ngModel)]="datas.facilities.indoorHydrant" nz-input style="width:50px" type="text"></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"
@ -564,7 +584,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"><input [(ngModel)]="datas.facilities.standardIndoorHydrant" nz-input style="width:180px" type="text"></span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.facilities.standardIndoorHydrant+`</span></p>
</td>
</tr>
<tr style="height:56pt">
@ -578,7 +598,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"><textarea [(ngModel)]="datas.tips" style="width: 400px; height: 100px;" type="text"></textarea></span></p>
style="font-family:'Times New Roman'; font-size:9pt">`+this.datas.tips+`</span></p>
</td>
</tr>
<tr style="height:0pt">
@ -606,7 +626,7 @@ export class UnitDetailsComponent implements OnInit {
</table>
<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>`
// return
const htmlString = `<!DOCTYPE html>
<html lang="en">
<head>
@ -614,7 +634,7 @@ export class UnitDetailsComponent implements OnInit {
<title>Document</title>
</head>
<body>
`+ this.box.nativeElement.innerHTML + `
`+ box + `
</body>
</html>`
const fileData = asBlob(htmlString).then((data: any) => {

73
src/app/home/basic-info/unit-edit/unit-edit.component.html

@ -0,0 +1,73 @@
<div class="box">
<form nz-form [formGroup]="validateForm">
<nz-form-item>
<nz-form-label [nzSm]="7" [nzXs]="24" nzRequired nzFor="单位名称">单位名称</nz-form-label>
<nz-form-control>
<nz-input-group>
<input nz-input type="text" formControlName="unit" placeholder="请输入单位名称" />
</nz-input-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSm]="7" [nzXs]="24" nzFor="消防安全责任人">消防安全责任人</nz-form-label>
<nz-form-control>
<nz-input-group>
<input nz-input type="text" formControlName="name" placeholder="请输入消防安全责任人" />
</nz-input-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSm]="7" [nzXs]="24" nzFor="联系方式">联系方式</nz-form-label>
<nz-form-control>
<nz-input-group>
<input nz-input type="text" formControlName="iphone" placeholder="请输入联系方式" />
</nz-input-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSm]="7" [nzXs]="24" nzFor="单位地址">单位地址</nz-form-label>
<nz-form-control>
<nz-form-control>
<nz-input-group>
<input nz-input type="text" formControlName="addr" placeholder="请输入单位地址" />
</nz-input-group>
</nz-form-control>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label nzRequired [nzSm]="7" [nzXs]="24" nzFor="所属救援站">所属救援站</nz-form-label>
<nz-form-control>
<nz-select formControlName="role" nzPlaceHolder="请选择所属救援站">
<nz-option *ngFor="let item of jiuyuanzhan" [nzValue]="item.id" [nzLabel]="item.name">
</nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
<nz-form-item >
<nz-form-label [nzSm]="7" [nzXs]="24" nzFor="所属大队">所属大队</nz-form-label>
<nz-form-control>
<nz-select formControlName="role2" nzPlaceHolder="请选择所属大队" >
<nz-option *ngFor="let item of dadui" [nzValue]="item.id" [nzLabel]="item.name">
</nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label nzRequired [nzSm]="7" [nzXs]="24" nzFor="使用性质">使用性质</nz-form-label>
<nz-form-control>
<nz-input-group>
<input nz-input type="text" formControlName="nature" placeholder="请输入使用性质" />
</nz-input-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSm]="7" [nzXs]="24" nzFor="建筑类型">建筑类型</nz-form-label>
<nz-form-control>
<nz-select formControlName="role4" nzPlaceHolder="请选择建筑类型">
<nz-option *ngFor="let item of listOfData2" [nzValue]="item.id" [nzLabel]="item.name">
</nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
</form>
</div>

0
src/app/home/basic-info/unit-edit/unit-edit.component.scss

25
src/app/home/basic-info/unit-edit/unit-edit.component.spec.ts

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { UnitEditComponent } from './unit-edit.component';
describe('UnitEditComponent', () => {
let component: UnitEditComponent;
let fixture: ComponentFixture<UnitEditComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ UnitEditComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(UnitEditComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

99
src/app/home/basic-info/unit-edit/unit-edit.component.ts

@ -0,0 +1,99 @@
import { Component, OnInit,Input } from '@angular/core';
import { NzModalRef } from 'ng-zorro-antd/modal';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { HttpClient } from '@angular/common/http';
import { TreeService } from 'src/app/service/tree.service';
@Component({
selector: 'app-unit-edit',
templateUrl: './unit-edit.component.html',
styleUrls: ['./unit-edit.component.scss']
})
export class UnitEditComponent implements OnInit {
@Input() title?: string;
@Input() subtitle?: string;
validateForm!: FormGroup;
zhidui=[]
dadui=[]
jiuyuanzhan=[]
constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient, private toTree: TreeService) { }
ngOnInit(): void {
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]
});
this.getAllOrganization()
}
destroyModal(): void {
this.modal.destroy({ data: 'this the result data' });
}
listOfData: any[] = [];
listOfData2: any[] = [];
//获取角色列表
getAllRoles() {
let params = {
SkipCount: '0',
MaxResultCount: '999'
}
this.http.get('/api/services/app/Role/GetAll', {
params: params
}).subscribe((data: any) => {
// console.log('角色列表', data.result.items)
this.listOfData = data.result.items
})
}
//获取角色列表
getAllRoles2() {
let params = {
SkipCount: '0',
MaxResultCount: '999',
IsViolationRoles:'true'
}
this.http.get('/api/services/app/Role/GetAll', {
params: params
}).subscribe((data: any) => {
// console.log('角色列表', data.result.items)
this.listOfData2 = data.result.items
})
}
//获取所有组织机构
nodes: any = []
getAllOrganization(){
let params = {
// OrganizationUnitId: OrganizationUnitId,
// IsContainsChildren: "true"
ContainsChildren: true,
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])
}
}
console.log(this.dadui);
})
}
}

8
src/app/home/basic-info/unit/unit.component.html

@ -82,10 +82,10 @@
<td>{{ data.creationTime }}</td>
<td>{{ data.addr }}</td>
<td>{{ data.state }}</td>
<td>
<a [routerLink]="['/basicInfo/unit/details']" routerLinkActive="router-link-active">查看详情</a>
&nbsp;
<a>关闭</a>
<td class="caozuo">
<span><a [routerLink]="['/basicInfo/unit/details']" routerLinkActive="router-link-active">查看详情</a></span>
<span><a>关闭</a></span>
</td>
</tr>
</tbody>

30
src/app/home/basic-info/unit/unit.component.scss

@ -70,33 +70,9 @@
}
.operation {
position: absolute;
right: 0;
span {
margin-left: 40px;
}
span:nth-child(1),
span:nth-child(2),
span:nth-child(3) {
color: #2399FF;
}
.grey{
color: rgba(0, 13, 33, 0.48)!important;
}
.progress{
width: 100%;
height: 20px;
background: #eee;
border-radius: 2px;
.bg{
width: 32%;
height: 100%;
background: #46B783;
}
.caozuo {
span{
margin: 0 5px;
}
}

6
src/app/home/basic-info/unit/unit.component.ts

@ -1,6 +1,5 @@
import { Router } from '@angular/router';
import { AddUnitComponent } from '../add-unit/add-unit.component';
import { HttpClient } from '@angular/common/http';
import { Component, OnInit, AfterViewInit, ViewChild, ViewContainerRef } from '@angular/core';
import { TreeService } from 'src/app/service/tree.service';
@ -8,7 +7,8 @@ import { NzFormatEmitEvent, NzTreeComponent, NzTreeNodeOptions } from 'ng-zorro-
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NzModalService } from 'ng-zorro-antd/modal';
import { NzMessageService } from 'ng-zorro-antd/message';
import { AddUnitComponent } from '../add-unit/add-unit.component';
import { UnitEditComponent }from '../unit-edit/unit-edit.component'
@Component({
selector: 'app-unit',
templateUrl: './unit.component.html',
@ -58,6 +58,7 @@ export class UnitComponent implements OnInit {
console.log('删除了6666666666666')
// CustomReuseStrategy.deleteRouteSnapshot('/basicInfo/unit');
}
addOr(node?: any) {
const modal = this.modal.create({
@ -106,4 +107,5 @@ export class UnitComponent implements OnInit {
const instance = modal.getContentComponent();
}
}

4
src/app/home/home.module.ts

@ -52,6 +52,7 @@ import { ApplyComponent } from './task/station-task-apply/apply/apply.component'
import { ApplyLookComponent } from './task/station-task-apply/apply-look/apply-look.component';
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
import { LookTaskComponent } from './task/zhi-audit/look-task/look-task.component';
import { UnitEditComponent } from './basic-info/unit-edit/unit-edit.component';
@NgModule({
declarations: [
NavComponent,
@ -81,7 +82,8 @@ import { LookTaskComponent } from './task/zhi-audit/look-task/look-task.componen
AddUnitComponent,
ApplyComponent,
ApplyLookComponent,
LookTaskComponent
LookTaskComponent,
UnitEditComponent
],
imports: [
CommonModule,

Loading…
Cancel
Save