Geen omschrijving

local.ts 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. import type { RouteRecordStringComponent } from '@vben/types';
  2. /**
  3. * 该文件放非后台返回的路由 比如个人中心 等需要跳转显示的页面
  4. */
  5. const localRoutes: RouteRecordStringComponent[] = [
  6. {
  7. component: '/tool/gen/edit-gen/index',
  8. meta: {
  9. activePath: '/tool/gen',
  10. icon: 'tabler:code',
  11. title: '生成配置',
  12. hideInMenu: true,
  13. },
  14. name: 'GenConfig',
  15. path: '/tool/gen/edit-gen/:tableId',
  16. },
  17. {
  18. component: '/system/role-assign/index',
  19. meta: {
  20. activePath: '/system/role',
  21. icon: 'eos-icons:role-binding-outlined',
  22. title: '分配角色',
  23. hideInMenu: true,
  24. },
  25. name: 'RoleAssign',
  26. path: '/system/role-assign/:roleId',
  27. },
  28. {
  29. component: '/examManage/questionBank/cpn/questionEdit/index',
  30. meta: {
  31. activePath: '/examManage/questionBank',
  32. icon: 'carbon:edit',
  33. title: '试题编辑',
  34. hideInMenu: true,
  35. },
  36. name: 'QuestionEdit',
  37. path: '/examManage/questionBank/questionEdit/:id?',
  38. },
  39. {
  40. component: '/examManage/questionBank/cpn/questionPreview/index',
  41. meta: {
  42. activePath: '/examManage/questionBank',
  43. icon: 'carbon:view',
  44. title: '试题预览',
  45. hideInMenu: true,
  46. },
  47. name: 'QuestionPreview',
  48. path: '/examManage/questionBank/questionPreview/:id',
  49. },
  50. {
  51. component: '/examManage/examPaper/cpn/examEdit',
  52. meta: {
  53. activePath: '/examManage/examPaper',
  54. icon: 'carbon:edit',
  55. title: '试卷编辑',
  56. hideInMenu: true,
  57. },
  58. name: 'ExamEdit',
  59. path: '/examManage/examEdit/:id?',
  60. },
  61. {
  62. component: '/examManage/examPaper/cpn/examPreview',
  63. meta: {
  64. activePath: '/examManage/examPaper',
  65. icon: 'carbon:view',
  66. title: '试卷预览',
  67. hideInMenu: true,
  68. },
  69. name: 'ExamPreview',
  70. path: '/examManage/examPaper/examPreview/:id',
  71. },
  72. {
  73. component: '/monitor/job/job-log/index',
  74. meta: {
  75. activePath: '/monitor/job',
  76. icon: 'carbon:data-base',
  77. title: '调度日志',
  78. hideInMenu: true,
  79. },
  80. name: 'JobLog',
  81. path: '/monitor/job-log',
  82. },
  83. {
  84. component: '/system/user/user-center/index',
  85. meta: {
  86. icon: 'la:user-cog',
  87. title: '个人中心',
  88. hideInMenu: true,
  89. },
  90. name: 'UserCenter',
  91. path: '/user/center',
  92. },
  93. {
  94. component: '/oilstation/base/create/index',
  95. meta: {
  96. activePath: '/oilstation/base',
  97. icon: 'carbon:data-base',
  98. title: '添加油站信息',
  99. hideInMenu: true,
  100. },
  101. name: 'OilstationBaseCreate',
  102. path: '/oilstation/base/create',
  103. },
  104. {
  105. component: '/knowledge/detail/index',
  106. meta: {
  107. activePath: '/knowledge/detail',
  108. icon: 'carbon:data-base',
  109. title: '知识库详情',
  110. hideInMenu: true,
  111. },
  112. name: 'KnowledgeDetail',
  113. path: '/knowledge/detail/:classId',
  114. },
  115. {
  116. component: '/knowledge/edit/index',
  117. meta: {
  118. activePath: '/knowledge/edit',
  119. icon: 'carbon:data-base',
  120. title: '知识库编辑',
  121. hideInMenu: true,
  122. },
  123. name: 'KnowledgeDetailEdit',
  124. path: '/knowledge/detail/edit/:classId',
  125. },
  126. {
  127. component: '/system/dict/dict-data/index',
  128. meta: {
  129. icon: 'carbon:data-base',
  130. title: '字典数据',
  131. hideInMenu: true,
  132. },
  133. name: 'DictData',
  134. path: '/system/dict-data/:dictId',
  135. },
  136. {
  137. component: '/schedule/detail/index',
  138. meta: {
  139. icon: 'carbon:data-base',
  140. title: '任务详情',
  141. hideInMenu: true,
  142. },
  143. name: 'ScheduleDetail',
  144. path: '/schedule/detail/:taskId',
  145. },
  146. {
  147. component: 'workflow/processDefinition/design',
  148. meta: {
  149. activePath: '/workflow/processDefinition',
  150. icon: 'carbon:data-base',
  151. title: '流程设计',
  152. hideInMenu: true,
  153. },
  154. name: 'WorkflowDesign',
  155. path: '/workflow/design/index',
  156. },
  157. {
  158. component: '/workflow/order/creatOrder',
  159. meta: {
  160. activePath: '/workflow/order',
  161. icon: 'carbon:add',
  162. title: '创建工单',
  163. hideInMenu: false,
  164. },
  165. name: 'WorkflowCreatOrder',
  166. path: '/workflow/order/create',
  167. },
  168. // 新增路由开始
  169. {
  170. component: '/examManage/questScoring/cpn/examScoring/index',
  171. meta: {
  172. activePath: '/examManage/questScoring',
  173. icon: 'carbon:checkmark',
  174. title: '考试阅卷',
  175. hideInMenu: true,
  176. },
  177. name: 'ExamScoring',
  178. path: '/examManage/questScoring/examScoring/:id?',
  179. },
  180. {
  181. component: '/examManage/questScoring/cpn/examCorrect/index',
  182. meta: {
  183. activePath: '/examManage/questScoring',
  184. icon: 'carbon:edit',
  185. title: '批改页面',
  186. hideInMenu: true,
  187. },
  188. name: 'ExamCorrect',
  189. path: '/examManage/questScoring/examCorrect/:id',
  190. },
  191. {
  192. component: '/examManage/scoreManage/cpn/examApproved/index',
  193. meta: {
  194. activePath: '/examManage/scoreManage',
  195. icon: 'carbon:checkmark',
  196. title: '已批改页面',
  197. hideInMenu: true,
  198. },
  199. name: 'ExamApproved',
  200. path: '/examManage/scoreManage/examApproved/:id',
  201. },
  202. {
  203. component: '/examManage/examAnalysis/cpn/examReport/index',
  204. meta: {
  205. activePath: '/examManage/examAnalysis',
  206. icon: 'carbon:chart',
  207. title: '考试统计',
  208. hideInMenu: true,
  209. },
  210. name: 'ExamReport',
  211. path: '/examManage/examAnalysis/examReport/:id',
  212. },
  213. {
  214. component: '/examManage/myExamPaper/cpn/examInfo/index',
  215. meta: {
  216. activePath: '/examManage/myExamPaper',
  217. icon: 'carbon:information',
  218. title: '考试信息',
  219. hideInMenu: true,
  220. },
  221. name: 'ExamInfo',
  222. path: '/examManage/myExamPaper/examInfo/:id',
  223. },
  224. // 新增路由结束
  225. {
  226. component: '/examManage/myExamPaper/cpn/startexamin/index',
  227. meta: {
  228. activePath: '/examManage/myExamPaper',
  229. icon: 'carbon:information',
  230. title: '开始考试',
  231. hideInMenu: true,
  232. },
  233. name: 'Startexamin',
  234. path: '/examManage/myExamPaper/cpn/startexamin/index',
  235. },
  236. {
  237. component: '/examManage/myExamPaper/cpn/endexamin/examcompleted',
  238. meta: {
  239. activePath: '/examManage/myExamPaper',
  240. icon: 'carbon:information',
  241. title: '考试完成',
  242. hideInMenu: true,
  243. },
  244. name: 'ExamCompleted',
  245. path: '/examManage/myExamPaper/cpn/endexamin/examcompleted',
  246. },
  247. {
  248. component: '/examManage/myExamPaper/cpn/endexamin/viewexamin',
  249. meta: {
  250. activePath: '/examManage/myExamPaper',
  251. icon: 'carbon:information',
  252. title: '查看考试结果',
  253. hideInMenu: true,
  254. },
  255. name: 'Viewexamin',
  256. path: '/examManage/myExamPaper/cpn/endexamin/viewexamin',
  257. },
  258. ];
  259. /**
  260. * 这里放本地路由
  261. */
  262. export const localMenuList: RouteRecordStringComponent[] = [
  263. {
  264. component: 'BasicLayout',
  265. meta: {
  266. order: -1,
  267. title: 'page.dashboard.title',
  268. // 不使用基础布局(仅在顶级生效)
  269. noBasicLayout: true,
  270. },
  271. name: 'Dashboard',
  272. path: '/',
  273. redirect: '/analytics',
  274. children: [
  275. {
  276. name: 'Analytics',
  277. path: '/analytics',
  278. component: '/schedule/view/index',
  279. meta: {
  280. affixTab: true,
  281. title: 'page.dashboard.analytics',
  282. },
  283. },
  284. {
  285. name: 'Workspace',
  286. path: '/workspace',
  287. component: '/dashboard/workspace/index',
  288. meta: {
  289. title: 'page.dashboard.workspace',
  290. },
  291. },
  292. // {
  293. // name: 'VbenDocument',
  294. // path: '/vben-admin/document',
  295. // component: 'IFrameView',
  296. // meta: {
  297. // icon: 'lucide:book-open-text',
  298. // iframeSrc: 'https://dapdap.top',
  299. // keepAlive: true,
  300. // title: $t('demos.vben.document'),
  301. // },
  302. // },
  303. ],
  304. },
  305. // {
  306. // component: '/_core/about/index',
  307. // meta: {
  308. // icon: 'lucide:copyright',
  309. // order: 9999,
  310. // title: $t('demos.vben.about'),
  311. // },
  312. // name: 'About',
  313. // path: '/vben-admin/about',
  314. // },
  315. ...localRoutes,
  316. ];