This commit is contained in:
Taric Xin
2022-01-04 10:40:54 +08:00
parent 4f51c487cc
commit fb0b0036be
3 changed files with 9 additions and 13 deletions

View File

@ -136,7 +136,7 @@ export class StaffManagementComponent implements OnInit {
staffAction(item?: any) {
const modal = this.nzModalService.create({
nzContent: SystemStaffStaffModalComponent,
nzComponentParams: item ? { i: { ...item, roleId: (item.roleId as string)?.split(',') || [] } } : { i: { userId: 0 } },
nzComponentParams: item ? { i: { ...item, roleId: item.roleId ? (item.roleId as string)?.split(',') : null } } : { i: { userId: 0 } },
nzFooter: null
});
modal.afterClose.subscribe(res => {