| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { getDictionaryByCode } from '@/api/system/dictbiz' |
| | | import { getDictLabel } from '@ztzf/utils' |
| | | import { Search, RefreshRight, Plus } from '@element-plus/icons-vue' |
| | | import { onMounted, ref, provide, nextTick } from 'vue' |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | |
| | | provide('deptTree', deptTree) |
| | | provide('treeProps', treeProps) |
| | | |
| | | |
| | | // 获取字典 |
| | | function getDictList() { |
| | | return getDictionaryByCode('resultConfig').then(res => { |
| | | dictObj.value = res.data.data |
| | | }) |
| | | } |
| | | |
| | | // 获取部门树数据 |
| | | async function getDeptTree() { |
| | |
| | | } |
| | | |
| | | onMounted(() => { |
| | | getDictList() |
| | | getDeptTree() |
| | | getList() |
| | | }) |