From 67316f3f8a93c8132273c24c93300e57e6c07349 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Thu, 19 May 2022 11:39:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/license/file-category/file-category.component.ts | 4 ++++ .../license/update-category/update-category.component.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/app/pages/license/file-category/file-category.component.ts b/src/app/pages/license/file-category/file-category.component.ts index a744e39..b3bcc47 100644 --- a/src/app/pages/license/file-category/file-category.component.ts +++ b/src/app/pages/license/file-category/file-category.component.ts @@ -95,6 +95,10 @@ export class FileCategoryComponent implements OnInit { } edit(item) { + if (item.auditStatus === 1) { + this.message.create('warning', '审核中不允许编辑!'); + return + } const modal = this.modal.create({ nzContent: EditFileCategoryComponent, nzViewContainerRef: this.viewContainerRef, diff --git a/src/app/pages/license/update-category/update-category.component.ts b/src/app/pages/license/update-category/update-category.component.ts index 26c624e..609c0bd 100644 --- a/src/app/pages/license/update-category/update-category.component.ts +++ b/src/app/pages/license/update-category/update-category.component.ts @@ -112,6 +112,10 @@ export class UpdateCategoryComponent implements OnInit { } edit(item) { + if (item.auditStatus === 1) { + this.message.create('warning', '审核中不允许编辑!'); + return + } const modal = this.modal.create({ nzContent: EditUpdateCategoryComponent, nzViewContainerRef: this.viewContainerRef,