routes.js 6.3 KB

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