edit
This commit is contained in:
@ -31,7 +31,7 @@ export class StaffManagementComponent implements OnInit {
|
||||
{ title: '', index: 'key', type: 'checkbox' },
|
||||
{ title: '员工姓名', index: 'name' },
|
||||
{ title: '手机号码', index: 'telephone' },
|
||||
{ title: '角色', render: 'description' },
|
||||
{ title: '角色', index: 'roleName' },
|
||||
{
|
||||
title: '最后登录时间',
|
||||
index: 'lastLoginDate',
|
||||
@ -136,7 +136,7 @@ export class StaffManagementComponent implements OnInit {
|
||||
staffAction(item?: any) {
|
||||
const modal = this.nzModalService.create({
|
||||
nzContent: SystemStaffStaffModalComponent,
|
||||
nzComponentParams: item ? { i: { ...item } } : { i: { userId: 0 } },
|
||||
nzComponentParams: item ? { i: { ...item, roleId: (item.roleId as string)?.split(',') || [] } } : { i: { userId: 0 } },
|
||||
nzFooter: null
|
||||
});
|
||||
modal.afterClose.subscribe(res => {
|
||||
|
||||
Reference in New Issue
Block a user