This commit is contained in:
Taric Xin
2021-12-30 15:47:33 +08:00
parent 315a684dad
commit 6d173e8aa5
3 changed files with 20 additions and 17 deletions

View File

@ -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 => {