fix bug
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
</nz-card>
|
||||
|
||||
<nz-card>
|
||||
<button nz-button nzType="primary" style="margin-bottom: 24px" (click)="add()"><i nz-icon nzType="plus"></i>新增</button>
|
||||
<button nz-button nzType="primary" style="margin-bottom: 24px" (click)="add()" acl [acl-ability]="['LevelConfig-add']"><i nz-icon nzType="plus"></i>新增</button>
|
||||
<!-- 数据列表 -->
|
||||
<st
|
||||
#st
|
||||
|
||||
@ -105,15 +105,18 @@ export class ParterLevelConfigListComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '编辑',
|
||||
acl: { ability: ['LevelConfig-edit'] },
|
||||
click: (_record, _modal, _instance) => this.edit(_record)
|
||||
},
|
||||
{
|
||||
text: '禁用',
|
||||
acl: { ability: ['LevelConfig-forbidden'] },
|
||||
click: (_record, _modal, _instance) => this.stop(_record),
|
||||
iif: item => !item.stateLocked
|
||||
},
|
||||
{
|
||||
text: '启用',
|
||||
acl: { ability: ['LevelConfig-startUseing'] },
|
||||
click: (_record, _modal, _instance) => this.restart(_record),
|
||||
iif: item => item.stateLocked
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user