|
|
@@ -289,21 +289,21 @@ export const getDeptTreeData = (list) => {
|
|
|
|
|
|
const arr = []
|
|
|
|
|
|
- list.forEach(one => {
|
|
|
+ list.forEach((one,oneIndex) => {
|
|
|
const { name, id, groupVOS } = one
|
|
|
const objectOne = {
|
|
|
label: name,
|
|
|
- id: id,
|
|
|
+ id: `${id}_${oneIndex}`,
|
|
|
children: []
|
|
|
}
|
|
|
arr.push(objectOne)
|
|
|
|
|
|
if (groupVOS && groupVOS.length) {
|
|
|
- groupVOS.forEach(two => {
|
|
|
+ groupVOS.forEach((two,twoIndex) => {
|
|
|
const { groupId, groupName, groupUserVOS } = two
|
|
|
const objectTwo = {
|
|
|
label: groupName,
|
|
|
- id: groupId,
|
|
|
+ id: `${groupId}_${oneIndex}_${twoIndex}`,
|
|
|
children: []
|
|
|
}
|
|
|
objectOne.children.push(objectTwo)
|