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..44c77bf 100644 --- a/src/app/system-management/organization/organization.component.html +++ b/src/app/system-management/organization/organization.component.html @@ -29,16 +29,24 @@ + nzBlockNode (nzOnDrop)="nzEvent($event)" [nzBeforeDrop]="beforeDrop" [nzExpandedIcon]="multiExpandedIconTpl">
{{ node.title }} - 新增 + 新增 编辑 删除
+ + + + + + + + \ No newline at end of file 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}}