fix bug
This commit is contained in:
@ -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>
|
||||
|
||||
|
||||
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user