diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts index 5f6ab18..aba1ec1 100644 --- a/src/api/system/post/index.ts +++ b/src/api/system/post/index.ts @@ -1,6 +1,7 @@ import request from '@/utils/request'; import { PostForm, PostQuery, PostVO } from './types'; import { AxiosPromise } from 'axios'; +import { DeptTreeVO } from '../dept/types'; // 查询岗位列表 export function listPost(query: PostQuery): AxiosPromise { @@ -56,3 +57,13 @@ export function delPost(postId: string | number | (string | number)[]) { method: 'delete' }); } + +/** + * 查询部门下拉树结构 + */ +export const deptTreeSelect = (): AxiosPromise => { + return request({ + url: '/system/post/deptTree', + method: 'get' + }); +}; diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index a61ad14..caffecc 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -1,4 +1,4 @@ -import { DeptTreeVO, DeptVO } from './../dept/types'; +import { DeptTreeVO } from './../dept/types'; import { RoleVO } from '@/api/system/role/types'; import request from '@/utils/request'; import { AxiosPromise } from 'axios'; diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 289abbd..803cf05 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -170,10 +170,9 @@