From b4a40c94dca6427429485587d4df812f81a6e6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Wed, 3 Sep 2025 14:14:14 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=B2=97?= =?UTF-8?q?=E4=BD=8D=E9=A1=B5=E9=9D=A2=E6=9F=A5=E8=AF=A2=E6=9D=83=E9=99=90?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/post/index.ts | 11 +++++++++++ src/api/system/user/index.ts | 2 +- src/views/system/post/index.vue | 11 ++++++----- 3 files changed, 18 insertions(+), 6 deletions(-) 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 @@