From c7b33db117fd2893d7d1c93bf5d46e87d33e44d0 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 16 十二月 2024 16:08:51 +0800
Subject: [PATCH] 初审结果查询

---
 src/api/system/user.js |   40 ++++++++++++++++++++++++++++++++++------
 1 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/src/api/system/user.js b/src/api/system/user.js
index dcce167..6a38491 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -12,6 +12,13 @@
   })
 }
 
+export function getlistUser() {
+  return request({
+    url: '/system/user/getList',
+    method: 'get',
+  })
+}
+
 // 鏌ヨ鐢ㄦ埛璇︾粏
 export function getUser(userId) {
   return request({
@@ -47,12 +54,12 @@
 }
 
 // 鐢ㄦ埛瀵嗙爜閲嶇疆
-export function resetUserPwd(userId, password) {
-  password = encrypt(password);
-  const data = {
-    userId,
-    password
-  }
+export function resetUserPwd(data) {
+  // password = encrypt(password);
+  // const data = {
+  //   userId,
+  //   password
+  // }
   return request({
     url: '/system/user/resetPwd',
     method: 'put',
@@ -92,6 +99,8 @@
 
 // 鐢ㄦ埛瀵嗙爜閲嶇疆
 export function updateUserPwd(oldPassword, newPassword) {
+   oldPassword = encrypt(oldPassword);
+   newPassword = encrypt(newPassword);
   const data = {
     oldPassword,
     newPassword
@@ -144,3 +153,22 @@
     method: 'get'
   })
 }
+
+
+// 鏌ヨ鐢ㄦ埛鍒楄〃
+export function getDeptListByDictHospId(query) {
+  return request({
+    url: '/hosp/hosp/getDeptListByDictHospId',
+    method: 'get',
+    params: query
+  })
+}
+
+// 鏌ヨ鐢ㄦ埛鍒楄〃
+export function list(query) {
+  return request({
+    url: '/hosp/usermid/list',
+    method: 'get',
+    params: query
+  })
+}
\ No newline at end of file

--
Gitblit v1.8.0