From 7ee6d1367a6a4047835a1eee17c79195550ade1f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 06 八月 2026 10:34:49 +0800
Subject: [PATCH] 新疆_马铃薯 1.添加重置全员按钮功能

---
 src/api/system/user.js |   42 +++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 41 insertions(+), 1 deletions(-)

diff --git a/src/api/system/user.js b/src/api/system/user.js
index ad227f9..dafe4c5 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -87,6 +87,14 @@
   })
 }
 
+// 鍏ㄥ憳瀵嗙爜閲嶇疆
+export function resetAllPwd() {
+  return request({
+    url: '/system/user/resetAllPwd',
+    method: 'post'
+  })
+}
+
 // 鐢ㄦ埛瀵嗙爜閲嶇疆
 export function updateUserPwd(oldPassword, newPassword) {
   const data = {
@@ -96,7 +104,7 @@
   return request({
     url: '/system/user/profile/updatePwd',
     method: 'put',
-    params: data
+    data: data
   })
 }
 
@@ -105,6 +113,7 @@
   return request({
     url: '/system/user/profile/avatar',
     method: 'post',
+    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
     data: data
   })
 }
@@ -125,3 +134,34 @@
     params: data
   })
 }
+
+// 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋�
+export function deptTreeSelect() {
+  return request({
+    url: '/system/user/deptTree',
+    method: 'get'
+  })
+}
+// 鏌ヨ鐢ㄦ埛鍒楄〃
+export function userListNoPageByTenantId() {
+  return request({
+    url: '/system/user/userListNoPageByTenantId',
+    method: 'get'
+  })
+}
+
+// 鏌ヨ鐢ㄦ埛鍒楄〃
+export function userListNoPage() {
+  return request({
+    url: '/system/user/userListNoPage',
+    method: 'get'
+  })
+}
+// 閮ㄩ棬鍒楄〃
+export function userLoginFacotryList(params) {
+  return request({
+    url: '/userLoginFacotryList',
+    method: 'get',
+    params: params
+  })
+}

--
Gitblit v1.9.3