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() }