-
-
-
-
-
- {{info.name}} |
- {{info.value}} |
-
-
+
+
+
+
+ {{info.name}} |
+ {{info.value}} |
+
+
-
-
-
-
-
-
-
- {{info.name}} |
- {{info.value}} |
-
-
+
+
+
+
+
+ {{info.name}} |
+ {{info.value}} |
+
+
@@ -938,121 +948,57 @@
color: #b99a00;" *ngIf="pattern == 'look'">{{parts.heafName}}
-
+
+
+
+
+ {{partsbody.name}}
+
+ |
+
+ {{partsbody.value}}
+
+ |
+
+
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts
index a6147b8..7378932 100644
--- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts
+++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts
@@ -2237,6 +2237,7 @@ export class adddwsurveys{
return item.zdy!=undefined
})//模板传过来自定义数据
this.addAttinfBuild=JSON.parse(JSON.stringify(this.addAttinfBuild))
+ console.log(this.addAttinfBuild)
let paramsdata:any ={
categoryId:this.data.buildingID
}
@@ -2265,7 +2266,7 @@ export class adddwsurveys{
})
if(temp==0){
//模板数据少于接口数据
- console.log(buildval)
+ // console.log(buildval)
this.addAttinfBuild.push(buildval)
}
})
@@ -2311,37 +2312,39 @@ export class adddwsurveys{
}else if(this.data.element.surveyName=='消防设施'&&this.data.element.attinf!=undefined){
this.filenewDate=[]
this.addAttinfFile=this.data.element.attinf.filter(element => {
- return element.zdy==undefined
+ return element.zdy==false
});
this.zdyData=this.data.element.attinf.filter(element => {
return element.zdy!=undefined
});
- this.addAttinfFile=JSON.parse(JSON.stringify(this.addAttinfFile))
- console.log(this.addAttinfFile)
- this.http.get("/api/BuildingTypes").subscribe((buildData:any)=>{
- buildData.forEach(async element => {
- if(element.id==this.data.fid){
- this.facilityCategoryId=element.facilityCategoryId
- let paramsdata:any ={
- categoryId:this.facilityCategoryId
+ //this.addAttinfFile=JSON.parse(JSON.stringify(this.addAttinfFile))
+ console.log(this.addAttinfFile,this.zdyData)
+ let restlt=await new Promise((resolve) => {
+ this.http.get("/api/BuildingTypes").subscribe((buildData:any)=>{
+ buildData.forEach(async element => {
+ if(element.id==this.data.fid){
+ this.facilityCategoryId=element.facilityCategoryId
+ let paramsdata:any ={
+ categoryId:this.facilityCategoryId
+ }
+ this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{
+ data.forEach((buildDate,buildi,buildarr) => {
+ this.filenewDate.push(buildDate)
+ resolve(data)
+ });
+ this.filenewDate.forEach(element => {
+ element.completed=false
+ //element.olddata=element.propertyValue
+ });
+ })
}
- let restlt=await new Promise((resolve) => {
- this.http.get("/api/FacilityGroups",{params:paramsdata}).subscribe((data:any)=>{
- data.forEach((buildDate,buildi,buildarr) => {
- this.filenewDate.push(buildDate)
- resolve(data)
- });
- this.filenewDate.forEach(element => {
- element.completed=false
- //element.olddata=element.propertyValue
- });
- })
- })
- }
+ })
})
})
+
this.filenewDate=JSON.parse(JSON.stringify(this.filenewDate))
+ console.log(this.filenewDate)
let temp=0
this.filenewDate.forEach((buildval,buindi,buildarr)=>{
temp=0
@@ -2351,21 +2354,21 @@ export class adddwsurveys{
}
})
if(temp==0){
- console.log(buildval)
+ //console.log(buildval)
this.addAttinfFile.push(buildval)
}
})
this.addAttinfFile.forEach((addval,addi,addarr)=>{
temp=0
this.filenewDate.forEach((buildval,buindi,buildarr)=>{
- if(buildarr[buindi].id==addarr[addi].id){
+ if(buildval.name==addval.name){
temp++
}
- if(temp==0){
- this.addAttinfFile.splice(addi,1)
- }
+
})
-
+ if(temp==0){
+ this.addAttinfFile.splice(addi,1)
+ }
})
this.addAttinfFile.push(...this.zdyData)
}