123456789101112131415161718192021222324252627282930313233 |
- <template>
- <CyTreeInput width="220px" :tree-ref="treeRef">
- <template #default="{handelFilter}">
- <el-tree ref="treeRef"
- :data="jc"
- :filter-node-method="handelFilter">
- </el-tree>
- </template>
- </CyTreeInput>
- </template>
- <script setup lang="ts">
- import CyTreeInput from "@/components/cy/tree-input/src/CyTreeInput.vue";
- import {ElTree} from "element-plus";
- import {getJyJcZdTree} from "@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing";
- const treeRef = ref()
- const jc = ref([])
- onMounted(() => {
- getJyJcZdTree().then(res => {
- console.log(res)
- jc.value = res.jc
- })
- })
- </script>
- <style scoped>
- </style>
|