status
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user