diff --git a/src/app/pages/home-page/home-page.component.ts b/src/app/pages/home-page/home-page.component.ts
index bd29be3..468a454 100644
--- a/src/app/pages/home-page/home-page.component.ts
+++ b/src/app/pages/home-page/home-page.component.ts
@@ -444,6 +444,11 @@ export class HomePageComponent implements OnInit {
violationType: {
violationTypeAgg: []
},
+ ouViolationType: {
+ ouCorrectCount: '',
+ ouNotCorrectCount: '',
+ ouTotalCount: ''
+ },
dev: {
stationCount: '',
violationCount: '',
diff --git a/src/app/pages/oil-station-info/oil-station-info.component.ts b/src/app/pages/oil-station-info/oil-station-info.component.ts
index 44ab02b..f767cfa 100644
--- a/src/app/pages/oil-station-info/oil-station-info.component.ts
+++ b/src/app/pages/oil-station-info/oil-station-info.component.ts
@@ -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: () => { // 动态加载图片后,更新实例
diff --git a/src/app/system-management/analysis-of-the-host/analysis-of-the-host.component.html b/src/app/system-management/analysis-of-the-host/analysis-of-the-host.component.html
index efab5e4..6f0708f 100644
--- a/src/app/system-management/analysis-of-the-host/analysis-of-the-host.component.html
+++ b/src/app/system-management/analysis-of-the-host/analysis-of-the-host.component.html
@@ -81,6 +81,7 @@
@@ -88,6 +89,7 @@
名称
+ ip
编号
操作