From 2bd68434a7d2dfd9cee671537306131c8efe4ea8 Mon Sep 17 00:00:00 2001
From: SHAOJIAHAO <55341701@qq.com>
Date: Thu, 16 Dec 2021 09:36:35 +0800
Subject: [PATCH 1/2] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=AE=8C=E5=96=84?=
=?UTF-8?q?=E6=B2=B9=E7=AB=99=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/home-page/home-page.component.ts | 5 +++
.../oil-station-info.component.ts | 44 ++++++++++++-------
.../analysis-of-the-host.component.html | 2 +
.../organization/organization.component.html | 10 ++++-
4 files changed, 45 insertions(+), 16 deletions(-)
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
编号
操作