| | |
| | | <template #default="scope"> |
| | | <el-button size="small" text type="primary" @click="onOpenMenuDialog('新增')">新增</el-button> |
| | | <el-button size="small" text type="primary" @click="onOpenMenuDialog('修改', scope.row)">修改</el-button> |
| | | <el-button size="small" text type="primary" @click="deleteMenu(scope.row)">删除</el-button> |
| | | <el-button size="small" style="color: red" text type="primary" @click="deleteMenu(scope.row)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import { storeToRefs } from 'pinia'; |
| | | import { useRoutesList } from '/@/stores/routesList'; |
| | | import menuDialog from '/@/views/system/menu/component/menuDialog.vue'; |
| | | import { useMenuApi } from '/@/api/menu'; |
| | | import { useMenuApi } from '/@/api/systemManage/menu'; |
| | | import { Session } from '/@/utils/storage'; |
| | | import pinia from '/@/stores'; |
| | | import { dynamicRoutes } from '/@/router/route'; |
| | | import { useUserInfo } from '/@/stores/userInfo'; |
| | | import { initBackEndControlRoutes } from '/@/router/backEnd'; |
| | | import { useRoleApi } from '/@/api/role'; |
| | | import { useRoleApi } from '/@/api/systemManage/role'; |
| | | |
| | | export default defineComponent({ |
| | | name: 'systemMenu', |
| | |
| | | roleList: [], |
| | | menuTableData: [], |
| | | projectList: [ |
| | | { id: '1', name: '基础数据权限管理系统', key: 0 }, |
| | | { id: '1', name: '安全基础信息系统', key: 0 }, |
| | | { id: '2', name: '双重预防系统', key: 1 }, |
| | | { id: '3', name: '特殊作业系统', key: 2 }, |
| | | { id: '4', name: '智能巡检系统', key: 3 }, |
| | |
| | | onMounted(() => { |
| | | getMenuList(); |
| | | getRoleList(); |
| | | console.log(1); |
| | | }); |
| | | return { |
| | | parseRole, |