|
|
|
@ -65,9 +65,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
|
|
|
|
|
this.pattern='edit' |
|
|
|
|
} |
|
|
|
|
this.getUnitData() |
|
|
|
|
//this.getpili()
|
|
|
|
|
this.getOrganizations(); |
|
|
|
|
//this.getAllBuildings()
|
|
|
|
|
this.getOrganizations() |
|
|
|
|
} |
|
|
|
|
zdysearch='' |
|
|
|
|
organizationName: any //当前单位组织机构名称
|
|
|
|
@ -168,6 +166,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
|
|
|
|
|
pilinData=[] |
|
|
|
|
async getpili(){ |
|
|
|
|
let result = await new Promise((resolve) =>{ |
|
|
|
|
console.log(1111,this.planTemplateData) |
|
|
|
|
this.planTemplateData[1].building.forEach(element => { |
|
|
|
|
let id = {buildingId:element.buildingId} |
|
|
|
|
this.http.get('/api/BuildingAdjoins',{params:id}).subscribe(data=>{ |
|
|
|
@ -348,13 +347,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
/* this.planTemplateData[1].building[0].body[0].attinf[0].value=this.planTemplateData[1].attribute[0].attinf[0].olddata = this.unitData.usci |
|
|
|
|
this.planTemplateData[1].attribute[0].attinf[1].value=this.planTemplateData[1].attribute[0].attinf[1].olddata = this.unitData.buildingTypes[0].name |
|
|
|
|
this.planTemplateData[1].attribute[0].attinf[2].value=this.planTemplateData[1].attribute[0].attinf[2].olddata = this.unitData.contacts |
|
|
|
|
this.planTemplateData[1].attribute[0].attinf[3].value=this.planTemplateData[1].attribute[0].attinf[3].olddata = this.unitData.phone |
|
|
|
|
this.planTemplateData[1].attribute[0].attinf[4].value=this.planTemplateData[1].attribute[0].attinf[4].olddata = this.unitData.organizationName |
|
|
|
|
this.planTemplateData[1].attribute[0].attinf[5].value=this.planTemplateData[1].attribute[0].attinf[5].olddata = this.unitData.address */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(this.planTemplateData) |
|
|
|
|
} /* else if (this.selectedItem == '单位概况') { |
|
|
|
@ -366,6 +359,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
drop(event: CdkDragDrop<string[]>) { |
|
|
|
|
moveItemInArray(this.planTemplateData, event.previousIndex, event.currentIndex); |
|
|
|
|
console.log('拖拽标题',this.planTemplateData) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//获取建筑信息
|
|
|
|
|