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

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) {
const data = {
userId,
password
}
export function resetUserPwd(data) {
return request({
url: '/system/user/resetPwd',
method: 'put',

View File

@ -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(() => {