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