From f6abd4cf5990d3377c9a7f44f5cff7a284d5da50 Mon Sep 17 00:00:00 2001
From: gssong <1742057357@qq.com>
Date: 星期四, 21 三月 2024 21:06:18 +0800
Subject: [PATCH] update 调整状态判断
---
src/api/system/user/index.ts | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts
index fc516e9..61a58f6 100644
--- a/src/api/system/user/index.ts
+++ b/src/api/system/user/index.ts
@@ -18,6 +18,17 @@
};
/**
+ * 閫氳繃鐢ㄦ埛ids鏌ヨ鐢ㄦ埛
+ * @param userIds
+ */
+export const optionSelect = (userIds: (number | string)[]): AxiosPromise<UserVO[]> => {
+ return request({
+ url: '/system/user/optionselect?userIds=' + userIds,
+ method: 'get'
+ });
+};
+
+/**
* 鑾峰彇鐢ㄦ埛璇︽儏
* @param userId
*/
@@ -74,6 +85,9 @@
return request({
url: '/system/user/resetPwd',
method: 'put',
+ headers: {
+ isEncrypt: true
+ },
data: data
});
};
@@ -130,7 +144,10 @@
return request({
url: '/system/user/profile/updatePwd',
method: 'put',
- params: data
+ headers: {
+ isEncrypt: true
+ },
+ data: data
});
};
@@ -173,10 +190,10 @@
* 鏌ヨ褰撳墠閮ㄩ棬鐨勬墍鏈夌敤鎴蜂俊鎭�
* @param deptId
*/
-export const listUserByDeptId = (deptId: string | number): AxiosPromise<DeptVO[]> => {
+export const listUserByDeptId = (deptId: string | number): AxiosPromise<UserVO[]> => {
return request({
- url: "/system/user/list/dept/" + deptId,
- method: "get"
+ url: '/system/user/list/dept/' + deptId,
+ method: 'get'
});
};
@@ -193,6 +210,7 @@
export default {
listUser,
getUser,
+ optionSelect,
addUser,
updateUser,
delUser,
--
Gitblit v1.9.3