create:钱包开卡完成

This commit is contained in:
dzc committed 2025-01-02 15:48:07 +08:00
1 parent 360602eaf8
commit 1c6e1ff748
10 files changed
+492 -45

No files matched your search

+11 -1
View File
@@ -43,7 +43,7 @@ async function getOptions() {
...queryForm
}
const { data } = await deptApi.deptTree()
state.options = data ?? []
state.options = filterTreeData(data ?? [])
} finally {
setTimeout(() => state.loading = false, 500);
}
@@ -56,6 +56,16 @@ function remoteSearch(params: string) {
}
}
function filterTreeData(treeData: Array<any>) {
return treeData.filter(item => {
if (item.children && item.children.length) {
item.disabled = true;
item.children = filterTreeData(item.children)
}
return item
})
}
function clear() {
state.selectId = null
getOptions()