Merge branch 'lsf-dev'

lsf-dev
李神峰 2024-10-28 10:58:53 +08:00
commit 512b7e428a
1 changed files with 16 additions and 2 deletions

View File

@ -52,7 +52,21 @@ export default function Zzjgck() {
}
});
return tree;
}
}
// 演示用
const nameObj = {
"刘测": "高伟",
"若依": "刘立新",
"张雨齐": "彭双林",
"杜飞": "王忠明",
"李斯": "刘艳华",
"李峰": "吴吉琛",
"刘玉": "赵国栋",
"李星雨": "李星雨",
}
const handleTreeList = (dept, user) => {
const deptArr = dept.map(item => {
return {
@ -63,7 +77,7 @@ export default function Zzjgck() {
children: user.filter(u => u.deptId == item.deptId).map(u => ({
...u,
value: u.userId,
title: u.nickName,
title: nameObj[u.nickName],
}))
}
})