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()">新增轮播图</button>
|
||||
<button nz-button nzType="primary" (click)="add()" acl [acl-ability]="['scrollimg-add']">新增轮播图</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -176,12 +176,14 @@ export class ScrollImgComponentsListComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '修改',
|
||||
acl: { ability: ['scrollimg-change'] },
|
||||
click: (item) => {
|
||||
this.router.navigate(['../detail'], { queryParams: { id: item.id, type: 'edit' }, relativeTo: this.ar });
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '禁用',
|
||||
acl: { ability: ['scrollimg-forbidden'] },
|
||||
pop: {
|
||||
title: `是否确认禁用?`,
|
||||
okType: 'danger',
|
||||
@ -194,6 +196,7 @@ export class ScrollImgComponentsListComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
text: '启用',
|
||||
acl: { ability: ['scrollimg-startUseing'] },
|
||||
pop: {
|
||||
title: `是否确认启用?`,
|
||||
okType: 'danger',
|
||||
@ -206,12 +209,14 @@ export class ScrollImgComponentsListComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
text: '查看',
|
||||
acl: { ability: ['scrollimg-detail'] },
|
||||
click: (item) => {
|
||||
this.router.navigate(['../view'], { queryParams: { id: item.id, type: 'view' }, relativeTo: this.ar });
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '删除',
|
||||
acl: { ability: ['scrollimg-delete'] },
|
||||
pop: {
|
||||
title: `确定删除吗?`,
|
||||
okType: 'danger',
|
||||
|
||||
Reference in New Issue
Block a user