管理员修改用户密码强退用户

chao
chao 2024-04-12 16:30:16 +08:00
parent b6cde822a0
commit 59b21190b7
2 changed files with 3 additions and 6 deletions

View File

@ -45,11 +45,7 @@ export function delUser(userId) {
} }
// 用户密码重置 // 用户密码重置
export function resetUserPwd(userId, password) { export function resetUserPwd(data) {
const data = {
userId,
password
}
return request({ return request({
url: '/system/user/resetPwd', url: '/system/user/resetPwd',
method: 'put', method: 'put',

View File

@ -622,7 +622,8 @@ export default {
inputPattern: /^.{5,20}$/, inputPattern: /^.{5,20}$/,
inputErrorMessage: "用户密码长度必须介于 5 和 20 之间" inputErrorMessage: "用户密码长度必须介于 5 和 20 之间"
}).then(({value}) => { }).then(({value}) => {
resetUserPwd(row.userId, value).then(response => { row.password = value;
resetUserPwd(row).then(response => {
this.$modal.msgSuccess("修改成功,新密码是:" + value); this.$modal.msgSuccess("修改成功,新密码是:" + value);
}); });
}).catch(() => { }).catch(() => {