From 69250b2e20030881df7aea385ff2692643aecffe Mon Sep 17 00:00:00 2001
From: chenjingyu <1148019379@qq.com>
Date: Tue, 23 Nov 2021 08:35:21 +0800
Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E9=80=89=E6=8B=A9=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E9=80=89=E6=8B=A9=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ui/plan-template/plan-template.component.html | 2 +-
.../ui/plan-template/plan-template.component.ts | 15 +++++++++++----
src/app/ui/plan-template/updatal.html | 6 +++---
3 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/src/app/ui/plan-template/plan-template.component.html b/src/app/ui/plan-template/plan-template.component.html
index 9ad49ec..57bef08 100644
--- a/src/app/ui/plan-template/plan-template.component.html
+++ b/src/app/ui/plan-template/plan-template.component.html
@@ -92,7 +92,7 @@
+ *ngIf="item.groupName=='单位概况'&&(element.surveyName!='四周毗邻'&&element.surveyName!='重点部位'&&element.surveyName!='功能分区')&&element.zdy==undefined">
编辑
diff --git a/src/app/ui/plan-template/plan-template.component.ts b/src/app/ui/plan-template/plan-template.component.ts
index 19a83ea..926f0bc 100644
--- a/src/app/ui/plan-template/plan-template.component.ts
+++ b/src/app/ui/plan-template/plan-template.component.ts
@@ -1484,10 +1484,11 @@ export class adddwsurvey{
]
ngOnInit(): void{
console.log(this.data)
+ this.data=JSON.parse(JSON.stringify(this.data))
this.data.forEach(element => {
if(element.groupName=='单位概况'&&element.attribute!=undefined){
- //this.addwsurvey=element.attribute
- element.attribute.forEach((datavalue,index,dataarr) => {
+ this.addwsurvey=element.attribute
+ /* element.attribute.forEach((datavalue,index,dataarr) => {
this.addwsurvey.forEach((value,i,arr)=>{
if(dataarr[index].surveyName==arr[i].surveyName){
if(dataarr[index].completed==true&&arr[i].completed==false){
@@ -1495,9 +1496,10 @@ ngOnInit(): void{
}
}
})
- });
+ }); */
}
});
+ console.log(this.addwsurvey)
}
//取消按钮
close(){
@@ -1695,7 +1697,12 @@ export class zdydisaster{
this.snackBar.open('请选择类型!','确定',config);
}else if(this.headName==undefined||this.headName==''){
this.snackBar.open('请输入表头名称!','确定',config);
- }else{
+ }else if(this.lieNumber==0||this.lieNumber==undefined){
+ this.snackBar.open('请输入列数!','确定',config);
+ }else if(this.hNumber==0||this.hNumber==undefined){
+ this.snackBar.open('请输入行数!','确定',config);
+ }
+ else{
let tree={
json:[],
name: ''
diff --git a/src/app/ui/plan-template/updatal.html b/src/app/ui/plan-template/updatal.html
index b3f7e64..5def8db 100644
--- a/src/app/ui/plan-template/updatal.html
+++ b/src/app/ui/plan-template/updatal.html
@@ -12,19 +12,19 @@
-
+
-
+
-
+