This commit is contained in:
ailanyin
2023-05-17 15:28:24 +08:00
parent a6981d95ff
commit 2f9922a2d5

View File

@ -138,8 +138,8 @@
<template #default="scope">
<el-switch
v-model="scope.row.status"
active-value="0"
inactive-value="1"
active-value="1"
inactive-value="0"
@change="handleStatusChange(scope.row)"
></el-switch>
</template>
@ -510,7 +510,7 @@ function handleSelectionChange(selection) {
}
/** 角色状态修改 */
function handleStatusChange(row) {
let text = row.status === "0" ? "用" : "用";
let text = row.status === "0" ? "用" : "用";
proxy.$modal
.confirm('确认要"' + text + '""' + row.roleName + '"角色吗?')
.then(function () {
@ -569,7 +569,7 @@ function reset() {
roleName: undefined,
roleKey: undefined,
roleSort: 0,
status: "0",
status: "1",
menuIds: [],
deptIds: [],
menuCheckStrictly: true,