mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-15 12:32:00 +08:00
feat: 增加岗位管理中部门树接口并调整相关组件
- 在 post api 中添加 postDeptTreeSelect 接口 - 在 post 组件中使用新的 postDeptTreeSelect 接口 - 修改 dept-tree 组件,增加 api 属性以支持不同的数据源
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { DeptTree } from '../user/model';
|
||||
import type { Post } from './model';
|
||||
|
||||
import type { ID, IDS, PageQuery } from '#/api/common';
|
||||
@@ -74,3 +75,11 @@ export function postRemove(postIds: IDS) {
|
||||
export function postOptionSelect(deptId: ID) {
|
||||
return requestClient.get<Post[]>(Api.postSelect, { params: { deptId } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 岗位专用 - 获取部门树
|
||||
* @returns 部门树
|
||||
*/
|
||||
export function postDeptTreeSelect() {
|
||||
return requestClient.get<DeptTree[]>('/system/post/deptTree');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user