Browse Source

编辑完善

beijing
陈鹏飞 3 years ago
parent
commit
67316f3f8a
  1. 4
      src/app/pages/license/file-category/file-category.component.ts
  2. 4
      src/app/pages/license/update-category/update-category.component.ts

4
src/app/pages/license/file-category/file-category.component.ts

@ -95,6 +95,10 @@ export class FileCategoryComponent implements OnInit {
} }
edit(item) { edit(item) {
if (item.auditStatus === 1) {
this.message.create('warning', '审核中不允许编辑!');
return
}
const modal = this.modal.create({ const modal = this.modal.create({
nzContent: EditFileCategoryComponent, nzContent: EditFileCategoryComponent,
nzViewContainerRef: this.viewContainerRef, nzViewContainerRef: this.viewContainerRef,

4
src/app/pages/license/update-category/update-category.component.ts

@ -112,6 +112,10 @@ export class UpdateCategoryComponent implements OnInit {
} }
edit(item) { edit(item) {
if (item.auditStatus === 1) {
this.message.create('warning', '审核中不允许编辑!');
return
}
const modal = this.modal.create({ const modal = this.modal.create({
nzContent: EditUpdateCategoryComponent, nzContent: EditUpdateCategoryComponent,
nzViewContainerRef: this.viewContainerRef, nzViewContainerRef: this.viewContainerRef,

Loading…
Cancel
Save