From bc52bdb0cf895ae1928214f2d594161da29475c6 Mon Sep 17 00:00:00 2001
From: SHAOJIAHAO <55341701@qq.com>
Date: Wed, 16 Jun 2021 14:46:46 +0800
Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E5=B0=81=E9=9D=A2=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../create-plan-online-five.component.html | 30 +++++++------
.../create-plan-online-five.component.scss | 3 ++
.../create-plan-online-five.component.ts | 43 +++++++++++++------
3 files changed, 50 insertions(+), 26 deletions(-)
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html
index c59a61f..ab233b8 100644
--- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html
+++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html
@@ -4,7 +4,8 @@
1.封面
-
+
{{key + 2}}.{{item.groupName}}
@@ -23,18 +24,18 @@
-
+
- 高层公共建筑
+ {{unitData.buildingTypes[0].name}}
- *预案级别:
+ *预案级别:
V级
@@ -55,7 +56,7 @@
- *灾害类型:
+ *灾害类型:
- 二级+
+
@@ -78,7 +79,7 @@
防火管辖:
- 上海市某某区某消防大队
+ {{unitData.organizationName}}
@@ -86,7 +87,7 @@
灭火责任队站:
- 上海市某某区某消防救援大队
+
@@ -103,7 +104,7 @@
审核人职务/姓名:
-
+
@@ -111,7 +112,7 @@
审核时间:
-
+
@@ -123,7 +124,8 @@
-
+
11111
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss
index a5fab0a..5c992bc 100644
--- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss
+++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss
@@ -3,6 +3,9 @@
height: 100%;
transform: translate(0, 0);
background: #f2f4f5;
+ .redspan{
+ color: red;
+ }
.titlebox {
width: 100%;
height: 50px;
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts
index f079d4d..240a1fc 100644
--- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts
+++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts
@@ -11,28 +11,36 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
constructor(private http: HttpClient, private route: ActivatedRoute) { }
+
+ planName: string //预案名称
ngOnInit(): void {
+ this.planName = this.route.snapshot.queryParams.planName
this.getTemplateData()
+ this.getUnitData()
}
+
//获得单位信息
- getUnitData(){
- // let paramsdata:any = {
- // Name: this.route.snapshot.queryParams.unitId || '',
- // }
- // this.http.get("/api/Companies",{params:paramsdata}).subscribe((data:any)=>{
- // this.allKeyUnitInfo = data
- // data.items.forEach( (item,index) => {
- // item.integrity = this.wanzhengduArr[index]
- // })
- // })
+ unitData:any
+ getUnitData() {
+ let paramsdata: any = {
+ Name: this.route.snapshot.queryParams.unitName || '',
+ }
+ this.http.get("/api/Companies", { params: paramsdata }).subscribe((data: any) => {
+ data.items.forEach(element => {
+ if (element.id == this.route.snapshot.queryParams.companyId) {
+ this.unitData = element
+ console.log('单位列表信息', this.unitData)
+ }
+ });
+ })
}
- selectedItem:string = '封面'
- clickTitleItem(item){
+ selectedItem: string = '封面'
+ clickTitleItem(item) {
item == '封面' ? this.selectedItem = '封面' : this.selectedItem = item.groupName
}
planTemplateData: any
@@ -47,3 +55,14 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
}
}
+
+
+export interface unitData {
+ name: string,
+ organizationName: number,
+ buildingTypes: buildingTypes[]
+}
+export interface buildingTypes {
+ id: string,
+ name: string,
+}