From 84ab367a2942c4bb92139e1ea2678a15a0deaffc Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Fri, 20 May 2022 17:07:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/license/histories/histories.component.ts | 2 ++ src/app/pipes/type.pipe.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/pages/license/histories/histories.component.ts b/src/app/pages/license/histories/histories.component.ts index 8600679..9cbd2dd 100644 --- a/src/app/pages/license/histories/histories.component.ts +++ b/src/app/pages/license/histories/histories.component.ts @@ -75,6 +75,8 @@ export class HistoriesComponent implements OnInit { //处置 details(item) { + console.log(item) + item.licenseSnapshot.licenseTypeName = item.licenseSnapshot.validityLicenseType.licenseName const modal = this.modal.create({ nzContent: DetailsUpdateCategoryComponent, nzViewContainerRef: this.viewContainerRef, diff --git a/src/app/pipes/type.pipe.ts b/src/app/pipes/type.pipe.ts index 40610c1..d676090 100644 --- a/src/app/pipes/type.pipe.ts +++ b/src/app/pipes/type.pipe.ts @@ -30,7 +30,7 @@ export class licenseViolationType implements PipeTransform { @Pipe({ name: 'handleState' }) export class handleState implements PipeTransform { transform(value: number): string { - let arr = ['未启动', '已启动', '已关闭', '已延期'] + let arr = ['未启动', '已启动', '已关闭', '已延期', '已忽略'] return arr[value] } } \ No newline at end of file