index.ts 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import { createRouter, createWebHistory } from "vue-router";
  2. import Mark from "@/features/mark/Mark.vue";
  3. const routes = [
  4. { path: "/", component: Mark },
  5. { path: "/mark", component: Mark, name: "Mark" },
  6. {
  7. // 整卷批量复核
  8. path: "/admin/exam/inspected/start",
  9. component: () =>
  10. import("@/features/student/studentInspect/StudentInspect.vue"),
  11. },
  12. {
  13. // 批量导入复核
  14. path: "/admin/exam/inspected/import/start",
  15. component: () =>
  16. import("@/features/student/importInspect/ImportInspect.vue"),
  17. },
  18. {
  19. // 任务批量复核
  20. path: "/admin/exam/library/inspected/start",
  21. component: () => import("@/features/library/inspect/LibraryInspect.vue"),
  22. },
  23. {
  24. // 仲裁
  25. path: "/admin/exam/arbitrate/start",
  26. component: () => import("@/features/arbitrate/Arbitrate.vue"),
  27. },
  28. {
  29. // 成绩查询-试卷轨迹
  30. path: "/admin/exam/track/student",
  31. name: "StudentTrack",
  32. component: () => import("@/features/student/studentTrack/StudentTrack.vue"),
  33. },
  34. {
  35. // 质量分析
  36. path: "/admin/exam/quality",
  37. component: () => import("@/features/library/quality/Quality.vue"),
  38. },
  39. {
  40. // 评卷管理-任务管理-轨迹图
  41. path: "/admin/exam/track/library",
  42. component: () => import("@/features/library/libraryTrack/LibraryTrack.vue"),
  43. },
  44. {
  45. // 试评任务轨迹
  46. path: "/admin/exam/track/trialLibrary",
  47. name: "TrialRoute",
  48. component: () => import("@/features/library/libraryTrack/LibraryTrack.vue"),
  49. },
  50. {
  51. // 数据检查
  52. path: "/admin/exam/check/answer/start",
  53. name: "ConfirmPaper",
  54. component: () => import("@/features/admin/confirmPaper/ConfirmPaper.vue"),
  55. },
  56. {
  57. // 人工确认
  58. path: "/admin/exam/check/student/start",
  59. name: "ConfirmPaper",
  60. component: () => import("@/features/admin/confirmPaper/ConfirmPaper.vue"),
  61. },
  62. {
  63. path: "/:pathMatch(.*)*",
  64. name: "NotFound",
  65. component: () => import("@/components/PageError404.vue"),
  66. },
  67. ];
  68. // 3. Create the router instance and pass the `routes` option
  69. // You can pass in additional options here, but let's
  70. // keep it simple for now.
  71. const router = createRouter({
  72. // 4. Provide the history implementation to use. We are using the hash history for simplicity here.
  73. history: createWebHistory("web"),
  74. routes, // short for `routes: routes`
  75. });
  76. export default router;