routes.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. import Home from "../../portal/views/home/Home.vue";
  2. import PaperStructure from "../views/PaperStructure.vue";
  3. import InsertPaperStructure from "../views/InsertPaperStructure.vue";
  4. import InsertPaperStructureInfo from "../views/InsertPaperStructureInfo.vue";
  5. import BluePaperStructure from "../views/BluePaperStructure.vue";
  6. import InsertBluePaperStructure from "../views/InsertBluePaperStructure.vue";
  7. import InsertBluePaperStructureInfo from "../views/InsertBluePaperStructureInfo.vue";
  8. import CourseProperty from "../views/CourseProperty.vue";
  9. import PropertyInfo from "../views/PropertyInfo.vue";
  10. import ImportPaper from "../views/ImportPaper.vue";
  11. import GenPaper from "../views/GenPaper.vue";
  12. import ImportPaperInfo from "../views/ImportPaperInfo.vue";
  13. import GenPaperDetail from "../views/GenPaperDetail.vue";
  14. import ExtractPaperRule from "../views/ExtractPaperRule.vue";
  15. import ExtractPaperInfo from "../views/ExtractPaperInfo.vue";
  16. import ExportStructure from "../views/ExportStructure.vue";
  17. import Question from "../views/Question.vue";
  18. import EditSelectQuestion from "../views/EditSelectQuestion.vue";
  19. import EditOtherQuestion from "../views/EditOtherQuestion.vue";
  20. import InsertPaperTitle from "../views/InsertPaperTitle.vue";
  21. import EditPaper from "../views/EditPaper.vue";
  22. import PreviewPaper from "../views/PreviewPaper.vue";
  23. import SelectQuestion from "../views/SelectQuestion.vue";
  24. import Tips from "../../portal/views/tips/Tips.vue";
  25. export default [
  26. {
  27. path: "/questions", //首页
  28. meta: { auth: false },
  29. component: Home,
  30. children: [
  31. {
  32. path: "tips", //模块说明
  33. component: Tips
  34. },
  35. {
  36. path: "paper_structure/:isClear", //精确试卷结构列表
  37. component: PaperStructure
  38. },
  39. {
  40. path: "insert_paper_structure/:id", //精确试卷结构(新增/修改)
  41. component: InsertPaperStructure
  42. },
  43. {
  44. path: "insert_paper_structure_info/:id/:name/:detailId/:courseNo", //精确试卷结构添加题型结构
  45. component: InsertPaperStructureInfo
  46. },
  47. {
  48. path: "blue_paper_structure/:isClear", //蓝图试卷结构列表
  49. component: BluePaperStructure
  50. },
  51. {
  52. path: "insert_blue_paper_structure/:id", //蓝图试卷结构(新增/修改)
  53. component: InsertBluePaperStructure
  54. },
  55. {
  56. path: "insert_blue_paper_structure_info/:id/:paperStructId", //蓝图试卷结构添加题型结构
  57. component: InsertBluePaperStructureInfo
  58. },
  59. {
  60. path: "course_property/:isClear", //课程属性列表
  61. component: CourseProperty
  62. },
  63. {
  64. path: "property_info/:id", //课程属性
  65. component: PropertyInfo
  66. },
  67. {
  68. path: "import_paper/:isClear", //题库试卷列表
  69. component: ImportPaper
  70. },
  71. {
  72. path: "gen_paper/:isClear", //卷库试卷列表
  73. component: GenPaper
  74. },
  75. {
  76. path: "import_paper_info", //导入试卷页面
  77. component: ImportPaperInfo
  78. },
  79. {
  80. path: "gen_paper_detail/:courseNo/:level", //组卷页面
  81. component: GenPaperDetail
  82. },
  83. {
  84. path: "extract_paper_rule/:isClear", //调卷规则列表
  85. component: ExtractPaperRule
  86. },
  87. {
  88. path: "extract_paper_info_add", //调卷规则——新增
  89. name: "extract_paper_info_add",
  90. component: ExtractPaperInfo
  91. },
  92. {
  93. path: "extract_paper_info_edit/:extractConfigId", //调卷规则——修改
  94. name: "extract_paper_info_edit",
  95. component: ExtractPaperInfo
  96. },
  97. {
  98. path: "export_structure", //导出结构列表
  99. component: ExportStructure
  100. },
  101. {
  102. path: "question_list/:isClear", //试题列表
  103. component: Question
  104. },
  105. {
  106. path: "edit_select_question/:id", //编辑选择题(单选、多选)
  107. component: EditSelectQuestion
  108. },
  109. {
  110. path: "edit_other_question/:id", //编辑其他题(填空、问答)
  111. component: EditOtherQuestion
  112. },
  113. {
  114. path: "insert_paper_title", //添加试卷
  115. component: InsertPaperTitle
  116. },
  117. {
  118. path:
  119. "edit_other_question/:paperId/:paperDetailId/:questionType/:courseNo/:courseName",
  120. component: EditOtherQuestion
  121. },
  122. {
  123. path:
  124. "edit_select_question/:paperId/:paperDetailId/:questionType/:courseNo/:courseName",
  125. component: EditSelectQuestion
  126. }
  127. ]
  128. },
  129. {
  130. path: "/edit_paper/:id/:parentView", //试卷编辑
  131. component: EditPaper
  132. },
  133. {
  134. path:
  135. "/select_question/:id/:courseNo/:courseName/:paperDetailId/:parentView", //试卷选题
  136. component: SelectQuestion
  137. },
  138. {
  139. path: "/preview_paper/:paperId", //预览试卷
  140. component: PreviewPaper
  141. }
  142. ];