mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-05-11 05:02:10 +08:00
feat: 增加岗位管理中部门树接口并调整相关组件
- 在 post api 中添加 postDeptTreeSelect 接口 - 在 post 组件中使用新的 postDeptTreeSelect 接口 - 修改 dept-tree 组件,增加 api 属性以支持不同的数据源
This commit is contained in:
@@ -12,7 +12,12 @@ import { getVxePopupContainer } from '@vben/utils';
|
||||
import { Modal, Popconfirm, Space } from 'ant-design-vue';
|
||||
|
||||
import { useVbenVxeGrid, vxeCheckboxChecked } from '#/adapter/vxe-table';
|
||||
import { postExport, postList, postRemove } from '#/api/system/post';
|
||||
import {
|
||||
postDeptTreeSelect,
|
||||
postExport,
|
||||
postList,
|
||||
postRemove,
|
||||
} from '#/api/system/post';
|
||||
import { commonDownloadExcel } from '#/utils/file/download';
|
||||
import DeptTree from '#/views/system/user/dept-tree.vue';
|
||||
|
||||
@@ -122,6 +127,7 @@ function handleDownloadExcel() {
|
||||
<template>
|
||||
<Page :auto-content-height="true" content-class="flex gap-[8px] w-full">
|
||||
<DeptTree
|
||||
:api="postDeptTreeSelect"
|
||||
v-model:select-dept-id="selectDeptId"
|
||||
class="w-[260px]"
|
||||
@reload="() => tableApi.reload()"
|
||||
|
||||
Reference in New Issue
Block a user