Browse Source

[修改]输入框类型可不填表头名称

tangshan
陈敬瑜 3 years ago
parent
commit
1885a064dd
  1. 2
      src/app/ui/plan-template/plan-template.component.html
  2. 6
      src/app/ui/plan-template/plan-template.component.ts

2
src/app/ui/plan-template/plan-template.component.html

@ -246,7 +246,7 @@
<div class="attackLeft">
<div class="attackleftHead">
<div class="headName">
<input type="text" placeholder="请输入内容" [(ngModel)]="zdy.headName">
<input type="text" [placeholder]="zdy.level!=2?'请输入内容':''" [(ngModel)]="zdy.headName">
</div>
<div class="rightButton">
<img src="../../../assets/images/toppaixu.png" alt="" style="height: 15px;position: relative;top: 3px;" (click)='adyTop(suri,attributei)'>

6
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{

Loading…
Cancel
Save