|
|
|
@ -85,26 +85,40 @@ export class OilStationInfoComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
}).subscribe((data: any) => { |
|
|
|
|
console.log('油站信息', data) |
|
|
|
|
|
|
|
|
|
if (this.httpBody.govUnitDetail) { |
|
|
|
|
this.httpBody = data.result |
|
|
|
|
this.httpBody = data.result |
|
|
|
|
if (!data.result.govUnitDetail) { |
|
|
|
|
this.httpBody.govUnitDetail = { |
|
|
|
|
policeStation: {}, |
|
|
|
|
hospital: {}, |
|
|
|
|
fireBrigade: {} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
this.httpBody.govUnitDetail = JSON.parse(data.result.govUnitDetail) |
|
|
|
|
console.log('走这里了',data.result.govUnitDetail) |
|
|
|
|
this.policeStation = data.result.govUnitDetail.policeStation |
|
|
|
|
this.hospital = data.result.govUnitDetail.hospital |
|
|
|
|
this.fireBrigade = data.result.govUnitDetail.fireBrigade |
|
|
|
|
this.httpBody.stationType = String(this.httpBody.stationType) |
|
|
|
|
this.businessLicensevalidityTime[0] = data.result.validityStartTime |
|
|
|
|
this.businessLicensevalidityTime[1] = data.result.validityEndTime |
|
|
|
|
this.businessLicensevalidityTime = [...this.businessLicensevalidityTime] |
|
|
|
|
this.hazardousLicensevalidityTime[0] = data.result.dangerousStartTime |
|
|
|
|
this.hazardousLicensevalidityTime[1] = data.result.dangerousEndTime |
|
|
|
|
this.hazardousLicensevalidityTime = [...this.hazardousLicensevalidityTime] |
|
|
|
|
this.oilLicensevalidityTime[0] = data.result.sellLicenseStartTime |
|
|
|
|
this.oilLicensevalidityTime[1] = data.result.sellLicenseEndTime |
|
|
|
|
this.oilLicensevalidityTime = [...this.oilLicensevalidityTime] |
|
|
|
|
} else { |
|
|
|
|
this.httpBody.id = data.result.id |
|
|
|
|
} |
|
|
|
|
this.httpBody.stationType = String(this.httpBody.stationType) |
|
|
|
|
this.businessLicensevalidityTime[0] = data.result.validityStartTime |
|
|
|
|
this.businessLicensevalidityTime[1] = data.result.validityEndTime |
|
|
|
|
this.businessLicensevalidityTime = [...this.businessLicensevalidityTime] |
|
|
|
|
this.hazardousLicensevalidityTime[0] = data.result.dangerousStartTime |
|
|
|
|
this.hazardousLicensevalidityTime[1] = data.result.dangerousEndTime |
|
|
|
|
this.hazardousLicensevalidityTime = [...this.hazardousLicensevalidityTime] |
|
|
|
|
this.oilLicensevalidityTime[0] = data.result.sellLicenseStartTime |
|
|
|
|
this.oilLicensevalidityTime[1] = data.result.sellLicenseEndTime |
|
|
|
|
this.oilLicensevalidityTime = [...this.oilLicensevalidityTime] |
|
|
|
|
// if (this.httpBody.govUnitDetail) {
|
|
|
|
|
// //
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.gallery = new Viewer(document.getElementById('images'), { |
|
|
|
|
show: () => { // 动态加载图片后,更新实例
|
|
|
|
|