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