|
|
@ -228,7 +228,8 @@ export default { |
|
|
|
openNodes: [], |
|
|
|
defaultProps: { |
|
|
|
children: 'children', |
|
|
|
label: 'showName' |
|
|
|
label: 'showName', |
|
|
|
isLeaf: 'isLeaf' |
|
|
|
}, |
|
|
|
orgOptions: [], |
|
|
|
orgOptionProps: { |
|
|
@ -371,6 +372,12 @@ export default { |
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
data.forEach(element => { |
|
|
|
if (element.level === 'building') { |
|
|
|
element.isLeaf = true |
|
|
|
} |
|
|
|
}); |
|
|
|
console.log(data) |
|
|
|
resolve(data) |
|
|
|
|
|
|
|
} else { |
|
|
|