diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 21325c3bd301183e3778539d2e0b21016be78c9d..fc516e93a6bcb0f2f36fe4b1e5973c36afefff22 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 12f7564de8a129e97f5ab307cc41d7ee407fcde1..75f284357b3227837252c346aace15d4442d3b5b 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 @@