|
|
|
@ -1448,6 +1448,35 @@ export class UnitDetailsComponent implements OnInit {
|
|
|
|
|
this.http.get('/api/Companies/' + this.id).subscribe((data: any) => { |
|
|
|
|
console.log('当前单位信息', data); |
|
|
|
|
this.olddata = data |
|
|
|
|
if (data.data) { |
|
|
|
|
this.datas = JSON.parse(data.data) |
|
|
|
|
} |
|
|
|
|
this.datas.basicInfo.name = data.companyName |
|
|
|
|
this.datas.basicInfo.addr = data.address |
|
|
|
|
// this.datas.basicInfo.phone = data.directorPhone
|
|
|
|
|
this.datas.basicInfo.nature = data.useNature |
|
|
|
|
this.integrity = data.integrity |
|
|
|
|
this.imageUrl = data.imageFile |
|
|
|
|
console.log('当前单位信息2', this.datas); |
|
|
|
|
this.validateForm.patchValue({ |
|
|
|
|
code: data.usci, |
|
|
|
|
organizationId: data.organizationId, |
|
|
|
|
relatedOrganizationId: data.relatedOrganizationId, |
|
|
|
|
buildingTypeId: data.buildingTypeId, |
|
|
|
|
legalPersonName: data.legalPersonName, |
|
|
|
|
legalPersonPhone: data.legalPersonPhone, |
|
|
|
|
principalName: data.directorName, |
|
|
|
|
principalPhone: data.directorPhone, |
|
|
|
|
adminName: data.securityAdministratorName, |
|
|
|
|
adminPhone: data.securityAdministratorPhone, |
|
|
|
|
}) |
|
|
|
|
if (this.datas.basicInfo.positionCoordinates && (this.datas.basicInfo.positionCoordinates.x != 0 && this.datas.basicInfo.positionCoordinates.y != 0)) {//已标注
|
|
|
|
|
this.isMapLabel = true |
|
|
|
|
this.markerPosition = this.datas.basicInfo.positionCoordinates |
|
|
|
|
} else {//未标注
|
|
|
|
|
this.isMapLabel = false |
|
|
|
|
} |
|
|
|
|
this.labelGis() |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
nodes: any = [] |
|
|
|
|