index.ts 2.6 KB

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