update by fq

This commit is contained in:
2023-05-10 17:15:08 +08:00
parent 6f3c27dee5
commit eb4f49454f
9 changed files with 164 additions and 139 deletions

View File

@ -389,8 +389,8 @@ function handleSelectionChange(selection) {
/** 角色状态修改 */
function handleStatusChange(row) {
let text = row.status === "0" ? "启用" : "停用";
proxy.$modal.confirm('确认要"' + text + '""' + row.roleName + '"角色吗?').then(function () {
let text = row.status === "1" ? "启用" : "停用";
proxy.$modal.confirm('确认要' + text + '"' + row.roleName + '"角色吗?').then(function () {
return changeRoleStatus(row.roleId, row.status);
}).then(() => {
proxy.$modal.msgSuccess(text + "成功");