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{