This commit is contained in:
yuping
2023-08-05 14:23:57 +08:00
parent 4785a53997
commit 3cb3f34fcc

View File

@@ -24,7 +24,7 @@
:load-data="onLoadData" :load-data="onLoadData"
:tree-data="options" :tree-data="options"
:fieldNames="{ :fieldNames="{
children: 'treeChildList', children: 'directChildList',
label: 'name', label: 'name',
value: 'id', value: 'id',
}" }"
@@ -68,7 +68,7 @@ watch(props, () => {
function onLoadData(treeNode) { function onLoadData(treeNode) {
return useArrayRequest(ORG_CHILD_LIST, { keyword: "", orgId: treeNode.id }).then( return useArrayRequest(ORG_CHILD_LIST, { keyword: "", orgId: treeNode.id }).then(
(r) => { (r) => {
treeNode.dataRef.treeChildList = r.data; treeNode.dataRef.directChildList = r.data;
options.value = [...options.value]; options.value = [...options.value];
} }
); );