期望
将member中的数据当成chilren来遍历,为了适应于element的树结构组件
初始数据结构
list: [
{
children: [
{
children: [],
is_default: 0,
level: 1,
member: [],
org_id: 493,
org_title: '特效',
parent_id: 482,
person_num: 0
},
{
children: [],
is_default: 0,
level: 1,
member: [{ avatar: '', real_name: '调色大师', user_id: 713 }],
org_id: 494,
org_title: '调色',
parent_id: 482,
person_num: 1
},
{
children: [],
is_default: 0,
level: 1,
member: [{ avatar: '', real_name: '声音大师', user_id: 714 }],
org_id: 495,
org_title: '声音',
parent_id: 482,
person_num: 1
},
{
children: [],
is_default: 0,
level: 1,
member: [{ avatar: '', real_name: 'IO大师', user_id: 715 }],
org_id: 496,
org_title: 'IO',
parent_id: 482,
person_num: 1
},
{
children: [],
is_default: 0,
level: 1,
member: [{ avatar: '', real_name: '组长', user_id: 716 }],
org_id: 497,
org_title: '组长家',
parent_id: 482,
person_num: 1
},
{
children: [],
is_default: 0,
level: 1,
member: [{ avatar: '', real_name: '总监', user_id: 717 }],
org_id: 498,
org_title: '总监家',
parent_id: 482,
person_num: 1
}
],
is_default: 1,
level: 0,
member: [],
org_id: 482,
org_title: '17611641003的团队',
parent_id: 0,
person_num: 0
}
]
网友评论