From 5e440a7dc434c43eb828fa62cf9c12b0078b8565 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 20 一月 2025 11:36:18 +0800 Subject: [PATCH] !173 发布 5.3.0-BETA 公测版本 Merge pull request !173 from 疯狂的狮子Li/dev --- src/api/system/user/index.ts | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index cb448f5..0867c48 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -1,4 +1,4 @@ -import { DeptVO } from './../dept/types'; +import {DeptTreeVO, DeptVO} from './../dept/types'; import { RoleVO } from '@/api/system/role/types'; import request from '@/utils/request'; import { AxiosPromise } from 'axios'; @@ -14,6 +14,17 @@ url: '/system/user/list', method: 'get', params: query + }); +}; + +/** + * 閫氳繃鐢ㄦ埛ids鏌ヨ鐢ㄦ埛 + * @param userIds + */ +export const optionSelect = (userIds: (number | string)[]): AxiosPromise<UserVO[]> => { + return request({ + url: '/system/user/optionselect?userIds=' + userIds, + method: 'get' }); }; @@ -75,7 +86,8 @@ url: '/system/user/resetPwd', method: 'put', headers: { - isEncrypt: true + isEncrypt: true, + repeatSubmit: false }, data: data }); @@ -134,9 +146,10 @@ url: '/system/user/profile/updatePwd', method: 'put', headers: { - isEncrypt: true + isEncrypt: true, + repeatSubmit: false }, - params: data + data: data }); }; @@ -189,7 +202,7 @@ /** * 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */ -export const deptTreeSelect = (): AxiosPromise<DeptVO[]> => { +export const deptTreeSelect = (): AxiosPromise<DeptTreeVO[]> => { return request({ url: '/system/user/deptTree', method: 'get' @@ -199,6 +212,7 @@ export default { listUser, getUser, + optionSelect, addUser, updateUser, delUser, -- Gitblit v1.9.3