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,