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 @@ 名称 + ip 编号 操作 @@ -88,6 +89,7 @@ {{data.name}} + {{data.ipAdress}} {{data.code}} 编辑 diff --git a/src/app/system-management/organization/organization.component.html b/src/app/system-management/organization/organization.component.html index a4e5b34..8d6f01f 100644 --- a/src/app/system-management/organization/organization.component.html +++ b/src/app/system-management/organization/organization.component.html @@ -29,7 +29,7 @@ + nzBlockNode (nzOnDrop)="nzEvent($event)" [nzBeforeDrop]="beforeDrop" [nzExpandedIcon]="multiExpandedIconTpl">
@@ -41,4 +41,12 @@
+ + + + + + + + \ No newline at end of file From 58181ac2942374d50bf06fb372ac5874b49a7280 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Thu, 16 Dec 2021 10:35:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E8=A1=A8=E6=A0=BC=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organization/organization.component.html | 2 +- .../system-management/organization/organization.component.ts | 2 +- src/app/system-management/user/user.component.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/system-management/organization/organization.component.html b/src/app/system-management/organization/organization.component.html index 8d6f01f..44c77bf 100644 --- a/src/app/system-management/organization/organization.component.html +++ b/src/app/system-management/organization/organization.component.html @@ -35,7 +35,7 @@
{{ node.title }} - 新增 + 新增 编辑 删除 diff --git a/src/app/system-management/organization/organization.component.ts b/src/app/system-management/organization/organization.component.ts index 864c721..6f1c6bb 100644 --- a/src/app/system-management/organization/organization.component.ts +++ b/src/app/system-management/organization/organization.component.ts @@ -70,7 +70,7 @@ export class OrganizationComponent implements OnInit { addOr(node?: any) { - // console.log(node) + console.log(node) const modal = this.modal.create({ nzTitle: node ? '新增组织机构' : '新增一级组织机构', nzContent: AddorComponent, diff --git a/src/app/system-management/user/user.component.html b/src/app/system-management/user/user.component.html index c6f9069..ff7193e 100644 --- a/src/app/system-management/user/user.component.html +++ b/src/app/system-management/user/user.component.html @@ -26,7 +26,7 @@ 账号 姓名 - 角色 + 角色 所属机构 操作 @@ -36,7 +36,7 @@ {{ data.userName }} {{ data.name }} - + {{item}}