|
|
@ -286,13 +286,15 @@ const props = { |
|
|
|
checkStrictly: true, |
|
|
|
checkStrictly: true, |
|
|
|
emitPath: false, |
|
|
|
emitPath: false, |
|
|
|
async lazyLoad(node: any, resolve: any) { |
|
|
|
async lazyLoad(node: any, resolve: any) { |
|
|
|
|
|
|
|
// console.log(node); |
|
|
|
|
|
|
|
|
|
|
|
await getFacultiesList({ |
|
|
|
await getFacultiesList({ |
|
|
|
primaryType: 'key', |
|
|
|
primaryType: node.level + 1, |
|
|
|
pid: node.value, |
|
|
|
pid: node.value, |
|
|
|
}) |
|
|
|
}) |
|
|
|
const nodes = FacultiesList.value.map((item: any) => ({ |
|
|
|
const nodes = FacultiesList.value.map((item: any) => ({ |
|
|
|
value: item.id, |
|
|
|
value: item.id, |
|
|
|
label: item.title, |
|
|
|
label: item.name, |
|
|
|
})) |
|
|
|
})) |
|
|
|
resolve(nodes) |
|
|
|
resolve(nodes) |
|
|
|
}, |
|
|
|
}, |
|
|
|