routes.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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 Question from "../views/Question.vue";
  15. import EditSelectQuestion from "../views/EditSelectQuestion.vue";
  16. import EditOtherQuestion from "../views/EditOtherQuestion.vue";
  17. import InsertPaperTitle from "../views/InsertPaperTitle.vue";
  18. import EditPaper from "../views/EditPaper.vue";
  19. import PreviewPaper from "../views/PreviewPaper.vue";
  20. import SelectQuestion from "../views/SelectQuestion.vue";
  21. import Tips from "../../portal/views/tips/Tips.vue";
  22. import ExportTemplate from "../views/ExportTemplate.vue";
  23. import School from "../views/School.vue";
  24. import Course from "../views/Course.vue";
  25. import user from "../views/user.vue";
  26. import data_previllege from "../views/data_previllege.vue";
  27. import PaperStorage from "../views/PaperStorage.vue";
  28. import ViewPaper from "../views/ViewPaper.vue";
  29. import OrgProperty from "../views/OrgProperty.vue";
  30. import PaperPendingTrial from "../views/PaperPendingTrial.vue";
  31. import EditPaperPendingTrial from "../views/EditPaperPendingTrial.vue";
  32. import ExamPaperPendingTrial from "../views/ExamPaperPendingTrial.vue";
  33. import CheckDuplicateList from "../views/CheckDuplicateList.vue";
  34. import CheckDuplicateInfo from "../views/CheckDuplicateInfo.vue";
  35. import CardRoutes from "../../card/router";
  36. export default [
  37. {
  38. path: "/questions", //首页
  39. meta: { auth: false },
  40. component: Home,
  41. children: [
  42. {
  43. path: "tips", //模块说明
  44. component: Tips,
  45. },
  46. {
  47. path: "school", //学校管理
  48. meta: { privilegeCodes: "index_school" },
  49. component: School,
  50. },
  51. {
  52. path: "org/property",
  53. name: "org_property", //学校管理
  54. component: OrgProperty,
  55. },
  56. {
  57. path: "user", //用户管理
  58. meta: { privilegeCodes: "index_user" },
  59. component: user,
  60. },
  61. {
  62. path: "user/data_previllege/:rootOrgId/:userId", //用户管理
  63. meta: { privilegeCodes: "index_user" },
  64. component: data_previllege,
  65. },
  66. {
  67. path: "course", //课程管理
  68. meta: { privilegeCodes: "index_course" },
  69. component: Course,
  70. },
  71. {
  72. path: "paper_structure/:isClear", //精确试卷结构列表
  73. component: PaperStructure,
  74. },
  75. {
  76. path: "insert_paper_structure/:id", //精确试卷结构(新增/修改)
  77. component: InsertPaperStructure,
  78. },
  79. {
  80. path: "insert_paper_structure_info/:id/:name/:detailId/:courseNo", //精确试卷结构添加题型结构
  81. component: InsertPaperStructureInfo,
  82. },
  83. {
  84. path: "blue_paper_structure/:isClear", //蓝图试卷结构列表
  85. component: BluePaperStructure,
  86. },
  87. {
  88. path: "insert_blue_paper_structure/:id", //蓝图试卷结构(新增/修改)
  89. component: InsertBluePaperStructure,
  90. },
  91. {
  92. path: "insert_blue_paper_structure_info/:id/:paperStructId", //蓝图试卷结构添加题型结构
  93. component: InsertBluePaperStructureInfo,
  94. },
  95. {
  96. path: "course_property/:isClear", //课程属性列表
  97. component: CourseProperty,
  98. },
  99. {
  100. path: "property_info/:id", //课程属性
  101. component: PropertyInfo,
  102. },
  103. {
  104. path: "import_paper/:isClear", //题库试卷列表
  105. component: ImportPaper,
  106. },
  107. {
  108. path: "paper_pending_trial/:isClear", //题库待审列表
  109. component: PaperPendingTrial,
  110. },
  111. {
  112. path: "exam_paper_pending_trial/:isClear", //题库待审列表
  113. component: ExamPaperPendingTrial,
  114. },
  115. {
  116. path: "gen_paper/:isClear", //卷库试卷列表
  117. component: GenPaper,
  118. },
  119. {
  120. path: "import_paper_info", //导入试卷页面
  121. component: ImportPaperInfo,
  122. },
  123. {
  124. path: "gen_paper_detail", //组卷页面
  125. name: "gen_paper_detail", //组卷页面
  126. component: GenPaperDetail,
  127. },
  128. {
  129. path: "export_template", //导出模板设定
  130. component: ExportTemplate,
  131. },
  132. {
  133. path: "question_list/:isClear", //试题列表
  134. component: Question,
  135. },
  136. {
  137. path: "check_duplicate_list/:isClear", //题库查重
  138. component: CheckDuplicateList,
  139. },
  140. {
  141. path: "check_duplicate_info", //题库查重审核
  142. name: "check_duplicate_info",
  143. component: CheckDuplicateInfo,
  144. },
  145. {
  146. path: "edit_select_question/:id", //编辑选择题(单选、多选)
  147. component: EditSelectQuestion,
  148. },
  149. {
  150. path: "edit_other_question/:id", //编辑其他题(填空、问答)
  151. component: EditOtherQuestion,
  152. },
  153. {
  154. path: "insert_paper_title", //添加试卷
  155. component: InsertPaperTitle,
  156. },
  157. {
  158. path: "edit_other_question/:paperId/:paperDetailId/:questionType/:courseNo/:courseName",
  159. component: EditOtherQuestion,
  160. },
  161. {
  162. path: "edit_select_question/:paperId/:paperDetailId/:questionType/:courseNo/:courseName",
  163. component: EditSelectQuestion,
  164. },
  165. {
  166. path: "paper_storage/:isClear",
  167. component: PaperStorage,
  168. },
  169. ...CardRoutes,
  170. ],
  171. },
  172. {
  173. path: "/edit_paper/:id/:parentView", //试卷编辑
  174. component: EditPaper,
  175. },
  176. {
  177. path: "/edit_paper_pending_trial/:id/:parentView", //试卷编辑
  178. component: EditPaperPendingTrial,
  179. },
  180. {
  181. path: "/select_question/:id/:courseNo/:courseName/:paperDetailId/:parentView", //试卷选题
  182. component: SelectQuestion,
  183. },
  184. {
  185. path: "/preview_paper/:paperId", //预览试卷
  186. component: PreviewPaper,
  187. },
  188. {
  189. path: "/view_paper/:id", //试卷查看
  190. component: ViewPaper,
  191. },
  192. ];