From 1885a064dd302d87d90901f5c1bffadb52d4f649 Mon Sep 17 00:00:00 2001 From: chenjingyu <1148019379@qq.com> Date: Tue, 23 Nov 2021 09:24:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=8F=AF=E4=B8=8D=E5=A1=AB=E8=A1=A8=E5=A4=B4?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/ui/plan-template/plan-template.component.html | 2 +- src/app/ui/plan-template/plan-template.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/ui/plan-template/plan-template.component.html b/src/app/ui/plan-template/plan-template.component.html index 57bef08..ee56759 100644 --- a/src/app/ui/plan-template/plan-template.component.html +++ b/src/app/ui/plan-template/plan-template.component.html @@ -246,7 +246,7 @@
- +
diff --git a/src/app/ui/plan-template/plan-template.component.ts b/src/app/ui/plan-template/plan-template.component.ts index 926f0bc..395befc 100644 --- a/src/app/ui/plan-template/plan-template.component.ts +++ b/src/app/ui/plan-template/plan-template.component.ts @@ -1695,11 +1695,11 @@ export class zdydisaster{ config.duration = 3000 if(this.level==undefined||this.level==''){ this.snackBar.open('请选择类型!','确定',config); - }else if(this.headName==undefined||this.headName==''){ + }else if(this.level!=2&&(this.headName==undefined||this.headName=='')){ this.snackBar.open('请输入表头名称!','确定',config); - }else if(this.lieNumber==0||this.lieNumber==undefined){ + }else if(this.level==2&&(this.lieNumber==0||this.lieNumber==undefined) ){ this.snackBar.open('请输入列数!','确定',config); - }else if(this.hNumber==0||this.hNumber==undefined){ + }else if(this.level==2&&(this.lieNumber==0||this.lieNumber==undefined)){ this.snackBar.open('请输入行数!','确定',config); } else{