From 7e54fe792157e074b306d32a4867a7591271592d Mon Sep 17 00:00:00 2001 From: Lionel <12719401+wisdom_woods@user.noreply.gitee.com> Date: Tue, 8 Aug 2023 11:43:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E9=83=A8=E9=97=A8=E7=AE=A1=E7=90=86?= =?UTF-8?q?=20=E8=B4=9F=E8=B4=A3=E4=BA=BA=E9=80=89=E9=A1=B9=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=8B=E6=8B=89=E6=A1=86=E9=80=89=E6=8B=A9=20?= =?UTF-8?q?=E4=BB=8E=E5=BD=93=E5=89=8D=E9=83=A8=E9=97=A8=E7=9A=84=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=88=97=E8=A1=A8=E9=80=89=E6=8B=A9=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E5=81=9A=E7=BB=91=E5=AE=9A=20=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E6=8E=A5=E6=94=B6=E7=94=A8=E6=88=B7ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user/index.ts | 14 +++++++++++++- src/views/system/dept/index.vue | 21 ++++++++++++++++++--- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 21325c3..fc516e9 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -169,6 +169,17 @@ 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" + }); +}; + /** * 查询部门下拉树结构 */ @@ -193,5 +204,6 @@ export default { uploadAvatar, getAuthRole, updateAuthRole, - deptTreeSelect + deptTreeSelect, + listUserByDeptId }; diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 12f7564..75f2843 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -97,7 +97,9 @@ - + + + @@ -114,7 +116,7 @@ {{ dict.label - }} + }} @@ -133,6 +135,8 @@