From 31da01bdd1e4fe8fb8eec41f401d73bcf6cc18b7 Mon Sep 17 00:00:00 2001
From: ahao <liuhaoai545@gmail.com>
Date: 星期六, 06 一月 2024 17:27:01 +0800
Subject: [PATCH] fix https://gitee.com/dromara/RuoYi-Vue-Plus/issues/I8TMAI

---
 src/api/system/user/index.ts |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts
index 21325c3..fdcafc2 100644
--- a/src/api/system/user/index.ts
+++ b/src/api/system/user/index.ts
@@ -74,6 +74,9 @@
   return request({
     url: '/system/user/resetPwd',
     method: 'put',
+    headers: {
+      isEncrypt: true
+    },
     data: data
   });
 };
@@ -130,7 +133,10 @@
   return request({
     url: '/system/user/profile/updatePwd',
     method: 'put',
-    params: data
+    headers: {
+      isEncrypt: true
+    },
+    data: data
   });
 };
 
@@ -170,6 +176,17 @@
 };
 
 /**
+ * 鏌ヨ褰撳墠閮ㄩ棬鐨勬墍鏈夌敤鎴蜂俊鎭�
+ * @param deptId
+ */
+export const listUserByDeptId = (deptId: string | number): AxiosPromise<UserVO[]> => {
+  return request({
+    url: '/system/user/list/dept/' + deptId,
+    method: 'get'
+  });
+};
+
+/**
  * 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋�
  */
 export const deptTreeSelect = (): AxiosPromise<DeptVO[]> => {
@@ -193,5 +210,6 @@
   uploadAvatar,
   getAuthRole,
   updateAuthRole,
-  deptTreeSelect
+  deptTreeSelect,
+  listUserByDeptId
 };

--
Gitblit v1.9.3