From 7e54fe792157e074b306d32a4867a7591271592d Mon Sep 17 00:00:00 2001 From: Lionel <12719401+wisdom_woods@user.noreply.gitee.com> Date: 星期二, 08 八月 2023 11:43:11 +0800 Subject: [PATCH] 将部门管理 负责人选项改为下拉框选择 从当前部门的用户列表选择一个人做绑定 后端接收用户ID --- src/api/system/user/index.ts | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 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 @@ -170,6 +170,17 @@ }; /** + * 鏌ヨ褰撳墠閮ㄩ棬鐨勬墍鏈夌敤鎴蜂俊鎭� + * @param deptId + */ +export const listUserByDeptId = (deptId: string | number): AxiosPromise<DeptVO[]> => { + return request({ + url: "/system/user/list/dept/" + deptId, + method: "get" + }); +}; + +/** * 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */ export const deptTreeSelect = (): AxiosPromise<DeptVO[]> => { @@ -193,5 +204,6 @@ uploadAvatar, getAuthRole, updateAuthRole, - deptTreeSelect + deptTreeSelect, + listUserByDeptId }; -- Gitblit v1.9.3