Compare commits
No commits in common. "512b7e428a5d48603dd3abee9ce618e7417e97d6" and "d3b0f6502d95e35a1ccfe4698c52225cdb7555a3" have entirely different histories.
512b7e428a
...
d3b0f6502d
|
|
@ -52,21 +52,7 @@ export default function Zzjgck() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return tree;
|
return tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 演示用
|
|
||||||
|
|
||||||
const nameObj = {
|
|
||||||
"刘测": "高伟",
|
|
||||||
"若依": "刘立新",
|
|
||||||
"张雨齐": "彭双林",
|
|
||||||
"杜飞": "王忠明",
|
|
||||||
"李斯": "刘艳华",
|
|
||||||
"李峰": "吴吉琛",
|
|
||||||
"刘玉": "赵国栋",
|
|
||||||
"李星雨": "李星雨",
|
|
||||||
|
|
||||||
}
|
|
||||||
const handleTreeList = (dept, user) => {
|
const handleTreeList = (dept, user) => {
|
||||||
const deptArr = dept.map(item => {
|
const deptArr = dept.map(item => {
|
||||||
return {
|
return {
|
||||||
|
|
@ -77,7 +63,7 @@ export default function Zzjgck() {
|
||||||
children: user.filter(u => u.deptId == item.deptId).map(u => ({
|
children: user.filter(u => u.deptId == item.deptId).map(u => ({
|
||||||
...u,
|
...u,
|
||||||
value: u.userId,
|
value: u.userId,
|
||||||
title: nameObj[u.nickName],
|
title: u.nickName,
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue