From a1faccc5e1e7a155ede10bb59b8b9db45fbceb2e Mon Sep 17 00:00:00 2001 From: David Wei <> Date: Fri, 25 Aug 2023 15:31:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?remove=20=E5=88=A0=E9=99=A4=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=83=A8=E9=97=A8id=E7=AD=9B=E9=80=89=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=9A=84=E7=8B=AC=E7=AB=8B=E6=8E=A5=E5=8F=A3=EF=BC=8C?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E8=B4=9F=E8=B4=A3=E4=BA=BA=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E9=80=89=E6=8B=A9=E6=89=80=E6=9C=89=E7=94=A8?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dept/types.ts | 4 +-- src/api/system/user/index.ts | 14 +--------- src/views/system/dept/index.vue | 49 +++++++++++++++++++++------------ 3 files changed, 35 insertions(+), 32 deletions(-) diff --git a/src/api/system/dept/types.ts b/src/api/system/dept/types.ts index 867dbded..48496313 100644 --- a/src/api/system/dept/types.ts +++ b/src/api/system/dept/types.ts @@ -17,7 +17,7 @@ export interface DeptVO extends BaseEntity { deptId: number | string; deptName: string; orderNum: number; - leader: string; + leaderId: string; phone: string; email: string; status: string; @@ -36,7 +36,7 @@ export interface DeptForm { deptId?: number | string; deptName?: string; orderNum?: number; - leader?: string; + leaderId?: string; phone?: string; email?: string; status?: string; diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index cb448f51..4ebd47fd 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -175,17 +175,6 @@ export const updateAuthRole = (data: { userId: string; roleIds: string }) => { }); }; -/** - * 查询当前部门的所有用户信息 - * @param deptId - */ -export const listUserByDeptId = (deptId: string | number): AxiosPromise => { - return request({ - url: '/system/user/list/dept/' + deptId, - method: 'get' - }); -}; - /** * 查询部门下拉树结构 */ @@ -210,6 +199,5 @@ export default { uploadAvatar, getAuthRole, updateAuthRole, - deptTreeSelect, - listUserByDeptId + deptTreeSelect }; diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index ab7ecbba..6c9cefda 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -96,9 +96,21 @@ - - - + + + @@ -135,14 +147,13 @@