修改重置密码
This commit is contained in:
parent
6f2ea8a209
commit
cadc21f908
|
@ -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',
|
||||
|
|
|
@ -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(() => { })
|
||||
|
|
Loading…
Reference in New Issue
Block a user