| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323 |
- import type { RouteRecordStringComponent } from '@vben/types';
- /**
- * 该文件放非后台返回的路由 比如个人中心 等需要跳转显示的页面
- */
- const localRoutes: RouteRecordStringComponent[] = [
- {
- component: '/tool/gen/edit-gen/index',
- meta: {
- activePath: '/tool/gen',
- icon: 'tabler:code',
- title: '生成配置',
- hideInMenu: true,
- },
- name: 'GenConfig',
- path: '/tool/gen/edit-gen/:tableId',
- },
- {
- component: '/system/role-assign/index',
- meta: {
- activePath: '/system/role',
- icon: 'eos-icons:role-binding-outlined',
- title: '分配角色',
- hideInMenu: true,
- },
- name: 'RoleAssign',
- path: '/system/role-assign/:roleId',
- },
- {
- component: '/examManage/questionBank/cpn/questionEdit/index',
- meta: {
- activePath: '/examManage/questionBank',
- icon: 'carbon:edit',
- title: '试题编辑',
- hideInMenu: true,
- },
- name: 'QuestionEdit',
- path: '/examManage/questionBank/questionEdit/:id?',
- },
- {
- component: '/examManage/questionBank/cpn/questionPreview/index',
- meta: {
- activePath: '/examManage/questionBank',
- icon: 'carbon:view',
- title: '试题预览',
- hideInMenu: true,
- },
- name: 'QuestionPreview',
- path: '/examManage/questionBank/questionPreview/:id',
- },
- {
- component: '/examManage/examPaper/cpn/examEdit',
- meta: {
- activePath: '/examManage/examPaper',
- icon: 'carbon:edit',
- title: '试卷编辑',
- hideInMenu: true,
- },
- name: 'ExamEdit',
- path: '/examManage/examEdit/:id?',
- },
- {
- component: '/examManage/examPaper/cpn/examPreview',
- meta: {
- activePath: '/examManage/examPaper',
- icon: 'carbon:view',
- title: '试卷预览',
- hideInMenu: true,
- },
- name: 'ExamPreview',
- path: '/examManage/examPaper/examPreview/:id',
- },
- {
- component: '/monitor/job/job-log/index',
- meta: {
- activePath: '/monitor/job',
- icon: 'carbon:data-base',
- title: '调度日志',
- hideInMenu: true,
- },
- name: 'JobLog',
- path: '/monitor/job-log',
- },
- {
- component: '/system/user/user-center/index',
- meta: {
- icon: 'la:user-cog',
- title: '个人中心',
- hideInMenu: true,
- },
- name: 'UserCenter',
- path: '/user/center',
- },
- {
- component: '/oilstation/base/create/index',
- meta: {
- activePath: '/oilstation/base',
- icon: 'carbon:data-base',
- title: '添加油站信息',
- hideInMenu: true,
- },
- name: 'OilstationBaseCreate',
- path: '/oilstation/base/create',
- },
- {
- component: '/knowledge/detail/index',
- meta: {
- activePath: '/knowledge/detail',
- icon: 'carbon:data-base',
- title: '知识库详情',
- hideInMenu: true,
- },
- name: 'KnowledgeDetail',
- path: '/knowledge/detail/:classId',
- },
- {
- component: '/knowledge/edit/index',
- meta: {
- activePath: '/knowledge/edit',
- icon: 'carbon:data-base',
- title: '知识库编辑',
- hideInMenu: true,
- },
- name: 'KnowledgeDetailEdit',
- path: '/knowledge/detail/edit/:classId',
- },
- {
- component: '/system/dict/dict-data/index',
- meta: {
- icon: 'carbon:data-base',
- title: '字典数据',
- hideInMenu: true,
- },
- name: 'DictData',
- path: '/system/dict-data/:dictId',
- },
- {
- component: '/schedule/detail/index',
- meta: {
- icon: 'carbon:data-base',
- title: '任务详情',
- hideInMenu: true,
- },
- name: 'ScheduleDetail',
- path: '/schedule/detail/:taskId',
- },
- {
- component: 'workflow/processDefinition/design',
- meta: {
- activePath: '/workflow/processDefinition',
- icon: 'carbon:data-base',
- title: '流程设计',
- hideInMenu: true,
- },
- name: 'WorkflowDesign',
- path: '/workflow/design/index',
- },
- {
- component: '/workflow/order/creatOrder',
- meta: {
- activePath: '/workflow/order',
- icon: 'carbon:add',
- title: '创建工单',
- hideInMenu: false,
- },
- name: 'WorkflowCreatOrder',
- path: '/workflow/order/create',
- },
- // 新增路由开始
- {
- component: '/examManage/questScoring/cpn/examScoring/index',
- meta: {
- activePath: '/examManage/questScoring',
- icon: 'carbon:checkmark',
- title: '考试阅卷',
- hideInMenu: true,
- },
- name: 'ExamScoring',
- path: '/examManage/questScoring/examScoring/:id?',
- },
- {
- component: '/examManage/questScoring/cpn/examCorrect/index',
- meta: {
- activePath: '/examManage/questScoring',
- icon: 'carbon:edit',
- title: '批改页面',
- hideInMenu: true,
- },
- name: 'ExamCorrect',
- path: '/examManage/questScoring/examCorrect/:id',
- },
- {
- component: '/examManage/scoreManage/cpn/examApproved/index',
- meta: {
- activePath: '/examManage/scoreManage',
- icon: 'carbon:checkmark',
- title: '已批改页面',
- hideInMenu: true,
- },
- name: 'ExamApproved',
- path: '/examManage/scoreManage/examApproved/:id',
- },
- {
- component: '/examManage/examAnalysis/cpn/examReport/index',
- meta: {
- activePath: '/examManage/examAnalysis',
- icon: 'carbon:chart',
- title: '考试统计',
- hideInMenu: true,
- },
- name: 'ExamReport',
- path: '/examManage/examAnalysis/examReport/:id',
- },
- {
- component: '/examManage/myExamPaper/cpn/examInfo/index',
- meta: {
- activePath: '/examManage/myExamPaper',
- icon: 'carbon:information',
- title: '考试信息',
- hideInMenu: true,
- },
- name: 'ExamInfo',
- path: '/examManage/myExamPaper/examInfo/:id',
- },
- // 新增路由结束
- {
- component: '/examManage/myExamPaper/cpn/startexamin/index',
- meta: {
- activePath: '/examManage/myExamPaper',
- icon: 'carbon:information',
- title: '开始考试',
- hideInMenu: true,
- },
- name: 'Startexamin',
- path: '/examManage/myExamPaper/cpn/startexamin/index',
- },
- {
- component: '/examManage/myExamPaper/cpn/endexamin/examcompleted',
- meta: {
- activePath: '/examManage/myExamPaper',
- icon: 'carbon:information',
- title: '考试完成',
- hideInMenu: true,
- },
- name: 'ExamCompleted',
- path: '/examManage/myExamPaper/cpn/endexamin/examcompleted',
- },
- {
- component: '/examManage/myExamPaper/cpn/endexamin/viewexamin',
- meta: {
- activePath: '/examManage/myExamPaper',
- icon: 'carbon:information',
- title: '查看考试结果',
- hideInMenu: true,
- },
- name: 'Viewexamin',
- path: '/examManage/myExamPaper/cpn/endexamin/viewexamin',
- },
- ];
- /**
- * 这里放本地路由
- */
- export const localMenuList: RouteRecordStringComponent[] = [
- {
- component: 'BasicLayout',
- meta: {
- order: -1,
- title: 'page.dashboard.title',
- // 不使用基础布局(仅在顶级生效)
- noBasicLayout: true,
- },
- name: 'Dashboard',
- path: '/',
- redirect: '/analytics',
- children: [
- {
- name: 'Analytics',
- path: '/analytics',
- component: '/schedule/view/index',
- meta: {
- affixTab: true,
- title: 'page.dashboard.analytics',
- },
- },
- {
- name: 'Workspace',
- path: '/workspace',
- component: '/dashboard/workspace/index',
- meta: {
- title: 'page.dashboard.workspace',
- },
- },
- // {
- // name: 'VbenDocument',
- // path: '/vben-admin/document',
- // component: 'IFrameView',
- // meta: {
- // icon: 'lucide:book-open-text',
- // iframeSrc: 'https://dapdap.top',
- // keepAlive: true,
- // title: $t('demos.vben.document'),
- // },
- // },
- ],
- },
- // {
- // component: '/_core/about/index',
- // meta: {
- // icon: 'lucide:copyright',
- // order: 9999,
- // title: $t('demos.vben.about'),
- // },
- // name: 'About',
- // path: '/vben-admin/about',
- // },
- ...localRoutes,
- ];
|