From 47a7c6d2458ebd3c4722cbd1938d3f28a99e78ad Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期五, 26 四月 2024 15:03:42 +0800
Subject: [PATCH] qxtj

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

diff --git a/src/api/system/user.js b/src/api/system/user.js
index 41d0b06..b149e6f 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -92,6 +92,8 @@
 
 // 鐢ㄦ埛瀵嗙爜閲嶇疆
 export function updateUserPwd(oldPassword, newPassword) {
+   oldPassword = encrypt(oldPassword);
+   newPassword = encrypt(newPassword);
   const data = {
     oldPassword,
     newPassword
@@ -144,3 +146,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