优化角色模板
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<!-- <el-table-column label="操作人" prop=""></el-table-column> -->
|
||||
<el-table-column label="操作" width="250">
|
||||
<template v-slot="scope">
|
||||
<el-button link type="primary" @click="showMenusHandle(scope.row)"
|
||||
<el-button link type="primary" @click="handleOpenAssignPermDialog(scope.row)"
|
||||
v-if="scope.row.pid !== null">分配权限</el-button>
|
||||
<el-button link type="primary" @click="addTempateDialogRef.show(2, scope.row)" v-else>添加角色</el-button>
|
||||
<el-button link type="primary" @click="addTempateDialogRef.show(2, scope.row, 2)"
|
||||
@@ -135,12 +135,6 @@ const tableData = reactive({
|
||||
list: []
|
||||
})
|
||||
|
||||
function showMenusHandle(row) {
|
||||
checkedRole.value = { ...row }
|
||||
getMenuIds(row.roleId)
|
||||
assignPermDialogVisible.value = true
|
||||
}
|
||||
|
||||
const assignPermDialogVisible = ref(false)
|
||||
|
||||
// 弹窗
|
||||
@@ -155,8 +149,8 @@ const checkedRole = ref({})
|
||||
const platformType = ref(0);
|
||||
function handlePlatformTypeChange(e) {
|
||||
const value = Number(e); // Ensure the value is cast to a number
|
||||
console.log("handlePlatformTypeChange");
|
||||
platformType.value = value;
|
||||
console.log("handlePlatformTypeChange", platformType.value);
|
||||
handleOpenAssignPermDialog(dialog.row);
|
||||
}
|
||||
|
||||
@@ -403,4 +397,14 @@ onMounted(() => {
|
||||
margin-top: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.cashMenuIdList {
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
padding: var(--el-drawer-padding-primary);
|
||||
inset: 0;
|
||||
background-color: #fff;
|
||||
z-index: 2;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
</style>
|
||||
@@ -75,6 +75,7 @@ const accountList = reactive([
|
||||
{ username: "18199991111", type: 'success', label: '草莓加盟主店可直接管理' },
|
||||
{ username: "18821670757", type: 'primary', label: '强盛集团' },
|
||||
{ username: "19107220837", type: 'warning', label: '万维时光' },
|
||||
{ username: "19112345678", type: 'success', label: '酸橘子·云贵小馆' },
|
||||
]);
|
||||
|
||||
// 快捷模拟登录
|
||||
|
||||
Reference in New Issue
Block a user