From 772d8df8a3ee02a6fe2dbd6ba7216e3e3ee0ec63 Mon Sep 17 00:00:00 2001 From: qx <2540746708@qq.com> Date: 星期四, 20 六月 2024 22:18:38 +0800 Subject: [PATCH] qxtj --- src/api/system/user.js | 33 +++++++++++++++++++++++++++------ 1 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index dcce167..b149e6f 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -47,12 +47,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 +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