feat: 添加用户、角色状态修改

This commit is contained in:
橙子
2023-02-19 22:18:04 +08:00
parent dffdaa8d68
commit 380f728de2
8 changed files with 64 additions and 6 deletions

View File

@@ -375,7 +375,8 @@ function handleExport() {
};
/** 用户状态修改 */
function handleStatusChange(row) {
let text = row.state === false ? "启用" : "停用";
console.log(row.state);
let text = row.state === true ? "启用" : "停用";
proxy.$modal.confirm('确认要"' + text + '""' + row.userName + '"用户吗?').then(function () {
return changeUserStatus(row.id, row.state);
}).then(() => {