| | |
| | | </el-row>
|
| | |
|
| | | <!-- 表格数据 -->
|
| | | <el-table v-loading="loading" :data="roleList" @selection-change="handleSelectionChange">
|
| | | <el-table v-loading="loading" :data="roleList" @selection-change="handleSelectionChange" stripe>
|
| | | <el-table-column type="selection" width="55" align="center" />
|
| | | <el-table-column label="角色编号" prop="roleId" width="120" />
|
| | | <el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true" width="150" />
|
| | |
| | | <script setup name="Role">
|
| | | import { addRole, changeRoleStatus, dataScope, delRole, getRole, listRole, updateRole, deptTreeSelect } from "@/api/system/role"
|
| | | import { roleMenuTreeselect, treeselect as menuTreeselect } from "@/api/system/menu"
|
| | | import {onMounted} from "vue";
|
| | |
|
| | | const router = useRouter()
|
| | | const { proxy } = getCurrentInstance()
|
| | |
| | | reset()
|
| | | }
|
| | |
|
| | | getList()
|
| | | onMounted(() => {
|
| | | getList();
|
| | | });
|
| | | </script>
|