From 687f5231d0d332cb1198ffea9e66b57fb560c815 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Fri, 13 May 2022 15:46:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../audit/audit-ing/audit-ing.component.ts | 26 +++---------------- .../gas-base-info.component.html | 4 +-- .../gas-base-info/gas-base-info.component.ts | 8 +++--- 3 files changed, 9 insertions(+), 29 deletions(-) diff --git a/src/app/pages/audit/audit-ing/audit-ing.component.ts b/src/app/pages/audit/audit-ing/audit-ing.component.ts index 5c5d219..aeb9def 100644 --- a/src/app/pages/audit/audit-ing/audit-ing.component.ts +++ b/src/app/pages/audit/audit-ing/audit-ing.component.ts @@ -123,7 +123,8 @@ export class AuditIngComponent implements OnInit { } else if (item.auditType) { component = DetailsFileCategoryComponent } - if (item.getData) { + this.getData(item).then(res=>{ + item.getData = res const modal = this.modal.create({ nzContent: component, nzViewContainerRef: this.viewContainerRef, @@ -144,28 +145,7 @@ export class AuditIngComponent implements OnInit { nzFooter: null, nzClosable: false, }); - } else { - this.getData(item).then(res=>{ - item.getData = res - const modal = this.modal.create({ - nzContent: component, - nzViewContainerRef: this.viewContainerRef, - nzWidth: 450, - nzBodyStyle: { - 'border': '1px solid #91CCFF', - 'border-radius': '0px', - 'padding': '7px', - 'box-shadow': '0 0 8px 0 #fff', - 'background-image': 'linear-gradient(#003665, #000f25)' - }, - nzComponentParams: { - data: item.getData - }, - nzFooter: null, - nzClosable: false, - }); - }) - } + }) } //获取证照类data diff --git a/src/app/pages/audit/gas-base-info/gas-base-info.component.html b/src/app/pages/audit/gas-base-info/gas-base-info.component.html index c9f123e..27b9f18 100644 --- a/src/app/pages/audit/gas-base-info/gas-base-info.component.html +++ b/src/app/pages/audit/gas-base-info/gas-base-info.component.html @@ -75,7 +75,7 @@
-+ diff --git a/src/app/pages/audit/gas-base-info/gas-base-info.component.ts b/src/app/pages/audit/gas-base-info/gas-base-info.component.ts index 2257ac1..187e5e6 100644 --- a/src/app/pages/audit/gas-base-info/gas-base-info.component.ts +++ b/src/app/pages/audit/gas-base-info/gas-base-info.component.ts @@ -15,10 +15,10 @@ export class GasBaseInfoComponent implements OnInit { isDetails: boolean = false; //是否是详情 ngOnInit(): void { - // if (this.data.id === undefined) { //详情 - // this.isDetails = true - // this.getAuditLogging() - // } + if (this.data.id === undefined) { //详情 + this.isDetails = true + //this.getAuditLogging() + } this.getBaseInfo() }