修改重置密码

This commit is contained in:
wangchengming 2025-09-28 21:30:45 +08:00
parent 6f2ea8a209
commit cadc21f908
2 changed files with 5 additions and 4 deletions

View File

@ -72,10 +72,11 @@ export function checkRegisterUser(data) {
}
// 用户密码重置
export function resetUserPwd(userId, password) {
export function resetUserPwd(userId, password, deptId) {
const data = {
userId,
password
password,
deptId
}
return request({
url: '/system/user/resetPwd',

View File

@ -591,8 +591,8 @@ function handleResetPwd(row) {
return "不能包含非法字符:< > \" ' \\\ |"
}
},
}).then(({ value }) => {
resetUserPwd(row.userId, value).then(response => {
}).then(({ value }) => {
resetUserPwd(row.userId, value, row.deptId).then(response => {
proxy.$modal.msgSuccess("修改成功,新密码是:" + value)
})
}).catch(() => { })