edit
This commit is contained in:
@ -68,20 +68,20 @@ export class StaffManagementComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
text: '冻结',
|
text: '冻结',
|
||||||
iif: item =>
|
iif: item =>
|
||||||
item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone,
|
!item.stateLocked && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone,
|
||||||
click: item => this.action(item, 1),
|
click: item => this.action(item, 1),
|
||||||
acl: { ability: ['SYSTEM-STAFF-lock'] }
|
acl: { ability: ['SYSTEM-STAFF-lock'] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '超管转授',
|
text: '超管转授',
|
||||||
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
|
iif: item => !item.stateLocked && item.roleCode.split(',').indexOf('Administrator') === -1,
|
||||||
click: item => this.transpowerAction(item),
|
click: item => this.transpowerAction(item),
|
||||||
acl: { ability: ['SYSTEM-STAFF-shiftAdmin'] }
|
acl: { ability: ['SYSTEM-STAFF-shiftAdmin'] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '删除',
|
text: '删除',
|
||||||
iif: item =>
|
iif: item =>
|
||||||
item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone,
|
!item.stateLocked && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone,
|
||||||
click: item => this.action(item, 3),
|
click: item => this.action(item, 3),
|
||||||
acl: { ability: ['SYSTEM-STAFF-delete'] }
|
acl: { ability: ['SYSTEM-STAFF-delete'] }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user