管理员修改用户密码强退用户
parent
b6cde822a0
commit
59b21190b7
|
@ -45,11 +45,7 @@ export function delUser(userId) {
|
|||
}
|
||||
|
||||
// 用户密码重置
|
||||
export function resetUserPwd(userId, password) {
|
||||
const data = {
|
||||
userId,
|
||||
password
|
||||
}
|
||||
export function resetUserPwd(data) {
|
||||
return request({
|
||||
url: '/system/user/resetPwd',
|
||||
method: 'put',
|
||||
|
|
|
@ -622,7 +622,8 @@ export default {
|
|||
inputPattern: /^.{5,20}$/,
|
||||
inputErrorMessage: "用户密码长度必须介于 5 和 20 之间"
|
||||
}).then(({value}) => {
|
||||
resetUserPwd(row.userId, value).then(response => {
|
||||
row.password = value;
|
||||
resetUserPwd(row).then(response => {
|
||||
this.$modal.msgSuccess("修改成功,新密码是:" + value);
|
||||
});
|
||||
}).catch(() => {
|
||||
|
|
Loading…
Reference in New Issue