edit
This commit is contained in:
@ -61,17 +61,17 @@ export class StaffManagementComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
text: '冻结',
|
||||
iif: item => item.stateLocked === 0,
|
||||
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
|
||||
click: item => this.action(item, 1)
|
||||
},
|
||||
{
|
||||
text: '超管转授',
|
||||
iif: item => item.status === 0,
|
||||
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
|
||||
click: item => this.transpowerAction(item)
|
||||
},
|
||||
{
|
||||
text: '删除',
|
||||
iif: item => item.stateLocked === 0,
|
||||
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
|
||||
click: item => this.action(item, 3)
|
||||
}
|
||||
]
|
||||
@ -124,12 +124,15 @@ export class StaffManagementComponent implements OnInit {
|
||||
|
||||
transpowerAction(item: any) {
|
||||
const modal = this.nzModalService.create({
|
||||
nzTitle: '超级管理员转授',
|
||||
nzContent: BuyerTranspowerComponent,
|
||||
nzComponentParams: { i: { ...item } },
|
||||
nzFooter: null
|
||||
});
|
||||
modal.afterClose.subscribe(res => {
|
||||
this.st.load();
|
||||
if (res) {
|
||||
this.st.load();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user