This commit is contained in:
wangshiming
2022-04-29 17:27:57 +08:00
parent b8ac1fcdd7
commit da4d794d96
16 changed files with 46 additions and 20 deletions

View File

@ -27,7 +27,7 @@
<!-- 工具栏 -->
<div nz-row>
<div nz-col nzSpan="24">
<button nz-button nzType="primary" (click)="add()">新增banner</button>
<button nz-button nzType="primary" (click)="add()" acl [acl-ability]="['banner-add']">新增banner</button>
</div>
</div>

View File

@ -156,12 +156,14 @@ export class BannerComponentsListComponent implements OnInit {
buttons: [
{
text: '修改',
acl: { ability: ['banner-change'] },
click: (item) => {
this.router.navigate(['../detail'], { queryParams: { id: item.id, type: 'edit' }, relativeTo: this.ar });
}
},
{
text: '禁用',
acl: { ability: ['banner-forbidden'] },
pop: {
title: `确定禁用此banner图吗`,
okType: 'danger',
@ -174,6 +176,7 @@ export class BannerComponentsListComponent implements OnInit {
},
{
text: '启用',
acl: { ability: ['banner-startUseing'] },
pop: {
title: `确定启用此banner图吗`,
okType: 'danger',