解决冲突

This commit is contained in:
wangshiming
2022-02-23 19:38:18 +08:00
parent c27874bb3f
commit f40c5a53a4
19 changed files with 520 additions and 150 deletions

View File

@ -52,27 +52,32 @@ export class StaffManagementComponent implements OnInit {
buttons: [
{
text: '编辑',
click: item => this.staffAction(item)
click: item => this.staffAction(item),
acl: { ability: ['SYSTEM-STAFF-edit'] },
},
{
text: '恢复',
iif: item => item.stateLocked === 1,
click: item => this.action(item, 2)
click: item => this.action(item, 2),
acl: { ability: ['SYSTEM-STAFF-lock'] },
},
{
text: '冻结',
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
click: item => this.action(item, 1)
click: item => this.action(item, 1),
acl: { ability: ['SYSTEM-STAFF-lock'] },
},
{
text: '超管转授',
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
click: item => this.transpowerAction(item)
click: item => this.transpowerAction(item),
acl: { ability: ['SYSTEM-STAFF-shiftAdmin'] },
},
{
text: '删除',
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
click: item => this.action(item, 3)
click: item => this.action(item, 3),
acl: { ability: ['SYSTEM-STAFF-delete'] },
}
]
}