用户配置部门信息删除了多余的空格
parent
c88426f575
commit
8c56ab918e
|
@ -24,10 +24,10 @@ function UserConfig(props: any) {
|
|||
const departmentToString = (staff: Staff) => {
|
||||
if (staff.staffId === 'manager')
|
||||
return '总经理'
|
||||
let result = !staff.managingDepartment ? '' : departmentMap.get(staff.managingDepartment.departmentId) + '主管'
|
||||
let result = !staff.managingDepartment ? '' : departmentMap.get(staff.managingDepartment.departmentId) + '主管\xa0\xa0'
|
||||
if (staff.staffDepartments)
|
||||
for (const department of staff.staffDepartments) {
|
||||
result += '\xa0\xa0' + departmentMap.get(department.departmentId)
|
||||
result += departmentMap.get(department.departmentId)+ '\xa0\xa0'
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue