fix : 修复征集公司回显,所属公司改为征集公司
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
export const matterTree = (array,data, id) => {
|
||||
if (id) {
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
if (data[i].value == id) {
|
||||
array.push(data[i].label);
|
||||
data.forEach(item => {
|
||||
if (item.value == id) {
|
||||
array.push(item.label);
|
||||
}
|
||||
if (data[i].children && data[i].children.length > 0) {
|
||||
matterTree(array,data[i].children,id)
|
||||
if (item.children && item.children.length > 0) {
|
||||
matterTree(array,item.children,id)
|
||||
}
|
||||
}
|
||||
})
|
||||
return array;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user