|
|
@ -2199,8 +2199,8 @@ export class updataHl{ |
|
|
|
} |
|
|
|
} |
|
|
|
level//类型
|
|
|
|
level//类型
|
|
|
|
headName=this.data.headName//表头名称
|
|
|
|
headName=this.data.headName//表头名称
|
|
|
|
lieNumber=this.data.tableth[0].length//最小列数
|
|
|
|
lieNumber=this.data.tableth[0].length//最小列数 this.data.zdy!=undefined?0:
|
|
|
|
hNumber=this.data.tableth.length//行数
|
|
|
|
hNumber=this.data.tableth.length//行数this.data.zdy!=undefined?0:
|
|
|
|
//取消按钮
|
|
|
|
//取消按钮
|
|
|
|
close(){ |
|
|
|
close(){ |
|
|
|
this.dialogRef.close(); |
|
|
|
this.dialogRef.close(); |
|
|
@ -2218,7 +2218,7 @@ export class updataHl{ |
|
|
|
} |
|
|
|
} |
|
|
|
//确定按钮
|
|
|
|
//确定按钮
|
|
|
|
newdisaster(){ |
|
|
|
newdisaster(){ |
|
|
|
console.log(this.data) |
|
|
|
console.log(this.lieNumber,this.hNumber) |
|
|
|
let result={ |
|
|
|
let result={ |
|
|
|
lieNumber:this.level==2? this.lieNumber:this.data.tableth.length, |
|
|
|
lieNumber:this.level==2? this.lieNumber:this.data.tableth.length, |
|
|
|
hNumber:this.hNumber |
|
|
|
hNumber:this.hNumber |
|
|
@ -2234,7 +2234,10 @@ export class updataHl{ |
|
|
|
this.snackBar.open('列数不许为空,并且列数大于0!','确定',config); |
|
|
|
this.snackBar.open('列数不许为空,并且列数大于0!','确定',config); |
|
|
|
}else if(this.level==2&& (this.hNumber==undefined||this.hNumber=='')){ |
|
|
|
}else if(this.level==2&& (this.hNumber==undefined||this.hNumber=='')){ |
|
|
|
this.snackBar.open('行数不许为空,并且行数大于0!!','确定',config); |
|
|
|
this.snackBar.open('行数不许为空,并且行数大于0!!','确定',config); |
|
|
|
}else{ |
|
|
|
}else if(this.level==1&& this.data.tableth.length<=0){ |
|
|
|
|
|
|
|
this.snackBar.open('列数不许为空,并且列数大于0!','确定',config); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else{ |
|
|
|
this.dialogRef.close(result); |
|
|
|
this.dialogRef.close(result); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|