|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Author: sueRimn |
|
|
|
|
* @Date: 2021-05-31 10:40:01 |
|
|
|
|
* @LastEditors: sueRimn |
|
|
|
|
* @LastEditTime: 2021-07-02 14:21:31 |
|
|
|
|
* @LastEditTime: 2021-07-05 15:15:36 |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
import { Component, Inject, OnInit,ViewEncapsulation } from '@angular/core'; |
|
|
|
@ -372,7 +372,7 @@ export class PlanTemplateComponent implements OnInit {
|
|
|
|
|
//array[index].attribute[i].completed=false
|
|
|
|
|
attarr[i].attinf.forEach((attinfValue,attinfi,attinfarr) => { |
|
|
|
|
if(attinfValue.propertyName==propertyName){ |
|
|
|
|
attinfarr[attinfi].splice(attinfi,i) |
|
|
|
|
attinfarr[attinfi].completed=false |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}
|
|
|
|
@ -774,12 +774,12 @@ defineClick(){
|
|
|
|
|
export class addattinf{ |
|
|
|
|
constructor(private http: HttpClient,public dialogRef: MatDialogRef<addattinf>,@Inject(MAT_DIALOG_DATA) public data,public snackBar: MatSnackBar) {} |
|
|
|
|
addAttinf=[ |
|
|
|
|
{propertyName:'统一社会信用代码',completed:false,propertyType:0,value:''}, |
|
|
|
|
{propertyName:'单位类型',completed:false,propertyType:0,value:''}, |
|
|
|
|
{propertyName:'联系人',completed:false,propertyType:0,value:''}, |
|
|
|
|
{propertyName:'联系电话',completed:false,propertyType:0,value:''}, |
|
|
|
|
{propertyName:'辖区中队',completed:false,propertyType:0,value:''}, |
|
|
|
|
{propertyName:'单位地址',completed:false,propertyType:0,value:''}, |
|
|
|
|
{propertyName:'统一社会信用代码',completed:false,propertyType:0,value:'',olddata:''}, |
|
|
|
|
{propertyName:'单位类型',completed:false,propertyType:0,value:'',olddata:''}, |
|
|
|
|
{propertyName:'联系人',completed:false,propertyType:0,value:'',olddata:''}, |
|
|
|
|
{propertyName:'联系电话',completed:false,propertyType:0,value:'',olddata:''}, |
|
|
|
|
{propertyName:'辖区中队',completed:false,propertyType:0,value:'',olddata:''}, |
|
|
|
|
{propertyName:'单位地址',completed:false,propertyType:0,value:'',olddata:''}, |
|
|
|
|
/* {propertyName:'单位照片',completed:false,propertyType:0,value:''} *///,default:'-',must:'是',danwei:'-'
|
|
|
|
|
] |
|
|
|
|
addAttinfBuild |
|
|
|
@ -802,11 +802,17 @@ getattinf(){
|
|
|
|
|
if(dataarr[index].propertyName==arr[i].propertyName){ |
|
|
|
|
if(dataarr[index].completed==true&&arr[i].completed==false){ |
|
|
|
|
arr[i].completed= dataarr[index].completed |
|
|
|
|
arr[i].olddata=dataarr[index].value |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
}else if(value.surveyName=='建筑信息'&&value.attinf==undefined){ |
|
|
|
|
}/* else if(value.surveyName=='单位基本信息'&&value.attinf==undefined){ |
|
|
|
|
this.addAttinf.forEach((data)=>{ |
|
|
|
|
data.olddata=data.value |
|
|
|
|
}) |
|
|
|
|
} */ |
|
|
|
|
else if(value.surveyName=='建筑信息'&&value.attinf==undefined){ |
|
|
|
|
let paramsdata:any ={ |
|
|
|
|
categoryId:this.data.newleftTabledata[this.data.leftclicki].basicCategoryId |
|
|
|
|
} |
|
|
|
@ -814,6 +820,7 @@ getattinf(){
|
|
|
|
|
this.addAttinfBuild=data[0].propertyInfos |
|
|
|
|
this.addAttinfBuild.forEach(element => { |
|
|
|
|
element.completed=false |
|
|
|
|
element.olddata=element.propertyValue |
|
|
|
|
}); |
|
|
|
|
console.log(this.addAttinfBuild) |
|
|
|
|
}) |
|
|
|
|