|
|
|
@ -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: '' |
|
|
|
|