From ffcb0e1d231e1c23db50a70cd04b250ae71c7ed6 Mon Sep 17 00:00:00 2001
From: chenjingyu <1148019379@qq.com>
Date: Wed, 22 Sep 2021 10:29:39 +0800
Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E4=BA=94=E7=BA=A7=E9=A2=84?=
=?UTF-8?q?=E6=A1=88=E5=9C=A8=E7=BA=BF=E7=BC=96=E5=88=B6=E5=AF=BC=E5=85=A5?=
=?UTF-8?q?=E6=8C=89=E9=92=AE=E5=A2=9E=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../create-plan-online-five.component.html | 139 ++++++++++++++++++
.../create-plan-online-five.component.scss | 5 +
.../create-plan-online-five.component.ts | 13 +-
3 files changed, 156 insertions(+), 1 deletion(-)
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 0722c08..c4b1dad 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
@@ -11,6 +11,10 @@
+
+
@@ -1136,6 +1140,141 @@
+
+
+
+
+
+
+
+
+
+
+
+
{{element.tableth||''}}
+
+
+
+
+
+
+
+
+
+
delete
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
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 9a7c908..9fe0dc3 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
@@ -58,6 +58,11 @@
position: absolute;
right: 24px;
top: 7px;
+ input {
+ width: 100%;
+ height: 22px;
+ line-height: 22px;
+ border-radius: 3px;}
button {
margin-left: 10px;
mat-icon {
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 0abb294..cbf8c99 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
@@ -56,6 +56,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
planLevel: string//预案级别
blockyl = true
+ zaixianDr=false
ngOnInit(): void {
this.planLevel = this.route.snapshot.queryParams.planCategory
if (this.route.snapshot.queryParams.pattern == 'false') {
@@ -157,6 +158,9 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
data.items.forEach(element => {
if (element.id == this.route.snapshot.queryParams.companyId) {
this.unitData = element
+ if(this.unitData.buildingTypes[0].name=='高层建筑'&&this.planLevel=='5'){
+ this.zaixianDr=true
+ }
//console.log('单位列表信息', this.unitData)
this.getTemplateData()
}
@@ -343,7 +347,8 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
//console.log(this.buildZong)
let index = this.getArrayIndex(this.planTemplateData,'单位概况')
this.planTemplateData[index].building.forEach(element => {
- element.body[0].attinf[0].value = element.body[0].attinf[0].olddata = this.unitData.usci
+ if(element.body[0].completed){
+ element.body[0].attinf[0].value = element.body[0].attinf[0].olddata = this.unitData.usci
element.body[0].attinf[1].value = element.body[0].attinf[1].olddata = this.unitData.buildingTypes[0].name
element.body[0].attinf[2].value = element.body[0].attinf[2].olddata = this.unitData.contacts
element.body[0].attinf[3].value = element.body[0].attinf[3].olddata = this.unitData.phone
@@ -360,6 +365,8 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
});
});
}
+ }
+
});
@@ -1480,6 +1487,10 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
showTu(key){
this.planTemplateData[key].new=true
}
+ //上传
+ upload() {
+ document.getElementById('up').click()
+ }
}