解决冲突
This commit is contained in:
@ -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'] },
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user