This commit is contained in:
parent
f90f0152fe
commit
d24d03457a
@ -3,7 +3,6 @@ import { onMounted, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { useBeforeCloseDiff } from '#/utils/popup';
|
||||
import type { TreeProps } from 'ant-design-vue';
|
||||
import { Switch, Transfer, Tree } from 'ant-design-vue';
|
||||
import { queryTree } from '#/api/sis/accessControl';
|
||||
import type { TreeNode } from '#/api/common';
|
||||
@ -51,13 +50,13 @@ async function handleClosed() {
|
||||
const checked = ref(false);
|
||||
const targetKeys = ref<string[]>([]);
|
||||
const dataSource = ref<TreeNode[]>([]);
|
||||
const treeData = ref<TreeNode[]>([]);
|
||||
const treeData = ref<any[]>([]);
|
||||
|
||||
onMounted(() => {
|
||||
queryAcTree();
|
||||
});
|
||||
|
||||
function handleTreeData(treeData: TreeNode[], datasource: TreeNode[]) {
|
||||
function handleTreeData(treeData: TreeNode[] | any[], datasource: TreeNode[]) {
|
||||
treeData.forEach((item) => {
|
||||
item.title = item.label;
|
||||
item.key = item.code;
|
||||
@ -78,7 +77,7 @@ function queryAcTree() {
|
||||
}
|
||||
|
||||
const onChecked = (
|
||||
e: Parameters<TreeProps['onCheck']>[1] | Parameters<TreeProps['onSelect']>[1],
|
||||
e: any,
|
||||
checkedKeys: string[],
|
||||
onItemSelect: (n: any, c: boolean) => void,
|
||||
) => {
|
||||
|
Loading…
Reference in New Issue
Block a user