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