MxConst.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. export default {
  2. currentYear: 2022,
  3. mobilePattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
  4. keys: {
  5. sysToken: 'Admin-Token',
  6. token: 'Admin-Token',
  7. menuTab: 'Menu-Tab',
  8. menuList: 'Menu-List',
  9. menuListAction: 'Menu-List-Action',
  10. activeMenu: 'Active-Menu',
  11. userInfo: 'User-Info',
  12. keyPaperShortcutNotified: 'keyPaperShortcutNotified',
  13. keyCachePrefix: 'mx-cache-',
  14. electiveGlobalChangeEvent: 'electiveGlobalChangeEvent',
  15. keyGenerationCartChanged: 'keyGenerationCartChanged',
  16. keyVoluntaryDetail: 'usingVoluntaryDetailCache',
  17. keyVoluntaryEdit: 'usingVoluntaryEditCache'
  18. },
  19. enum: {
  20. scoreLock: {
  21. // 待锁定状态
  22. locking: -1,
  23. // 正常状态
  24. unlock: 0,
  25. // 已锁定状态
  26. locked: 1
  27. },
  28. paper: {
  29. boardMode: {
  30. text: 'text',
  31. image: 'image'
  32. },
  33. parseMode: {
  34. parse: 'parse',
  35. score: 'score'
  36. },
  37. examineeType: {
  38. evaluation: 1, // 测评中心
  39. competition: 2, // 学乐园 - 竞赛
  40. ai: 3, // 数据中心 - AI匹配试题
  41. elective: 4 // 选科测评
  42. }
  43. },
  44. formType: {
  45. addClassMaster: 'AddClassMaster',
  46. updateClassMaster: 'UpdateClassMaster',
  47. delClassMaster: 'DelClassMaster',
  48. addClass: 'AddClass',
  49. updateClass: 'UpdateClass',
  50. delClass: 'DelClass'
  51. },
  52. formStatus: {
  53. init: 0,
  54. approved: 1,
  55. rejected: 2,
  56. canceled: 3
  57. },
  58. formAudit: {
  59. system: 'System',
  60. headMaster: 'HeadMaster',
  61. auto: 'Auto'
  62. },
  63. uploadType: {
  64. default: 0,
  65. personalResource: 1,
  66. cloudResource: 2,
  67. schoolResource: 3,
  68. appVideo: 4,
  69. microFile: 5,
  70. answerResource: 6,
  71. questionsPicture: 7,
  72. codeResourcePic: 8,
  73. avatar: 9,
  74. competition: 10,
  75. customPaper: 11
  76. },
  77. scoreImportType: {
  78. manual: 1, // 手工导入
  79. outerSystem: 2, // 外部系统:阅卷系统
  80. innerSystem: 3 // 内部系统:测评中心
  81. },
  82. selectTestType: {
  83. // / 选科测评类型
  84. philosophy: 1, // 人生价值观
  85. occupation: 2, // 职业兴趣
  86. knowledge: 3 // 知识兴趣
  87. },
  88. mentalHealthTestType: 4, // 心理健康测评
  89. electivePermission: {
  90. applyCount: 'elective:student:apply:applyCount', // 初录选科人数比 elective:student:apply:scoreByGroup
  91. scoreByGroup: 'elective:student:apply:scoreByGroup', // 组合成绩
  92. rankInGroup: 'elective:student:apply:rankInGroup', // 当前组合实时排名
  93. rankInGrade: 'elective:student:apply:rankInGrade' // 当前组合全校排名
  94. },
  95. gkSelectType: {
  96. towFormFour: 1, // 3+1+2
  97. threeFormSix: 2 // 6选3
  98. },
  99. electiveMajorMatchType: {
  100. optional: {
  101. value: 1,
  102. title: '自选专业'
  103. },
  104. electiveTest: {
  105. value: 2,
  106. title: '测评专业'
  107. }
  108. },
  109. librarySource: {
  110. question: 1,
  111. video: 2,
  112. courseware: 3,
  113. custom: 4,
  114. task: 5, // 班级任务
  115. microclass: 6 // 名学微课宝
  116. },
  117. generateScene: {
  118. // 组卷场景区分
  119. none: { value: 0, key: 'none' },
  120. normal: { value: 1, key: 'normal' },
  121. paperWork: { value: 2, key: 'paperWork' }
  122. },
  123. questionBranches: {
  124. chapter: {
  125. label: '按章节选题',
  126. value: 'chapter'
  127. },
  128. knowledge: {
  129. label: '按知识点选题',
  130. value: 'knowledge'
  131. }
  132. },
  133. electiveReportType: {
  134. student: 1,
  135. teacher: 2,
  136. master: 3
  137. },
  138. // / 1:在线作业,2:视频作业,3:试卷作业,4:文字作业
  139. homeworkTypes: [{
  140. label: '在线作业',
  141. value: 1,
  142. usePaper: true,
  143. visible: true
  144. }, {
  145. label: '视频作业',
  146. value: 2,
  147. useVideo: true,
  148. visible: true
  149. }, {
  150. label: '试卷作业',
  151. value: 3,
  152. usePaper: true,
  153. visible: true
  154. }, {
  155. label: '文字作业',
  156. value: 4,
  157. visible: false
  158. }],
  159. aliIdType: {
  160. AliIdResourcePerson: 5 // 个人资源库收藏
  161. },
  162. recruitPlanCategory: {
  163. // 现在支持1.2.3
  164. visibleKeys: ['common', 'art', 'sports'],
  165. // 招生计划类型
  166. common: 1, // 普通招生
  167. art: 2, // 艺术招生
  168. sports: 3, // 体育招生
  169. vhs: 4, // 职高对口
  170. names: {
  171. 1: '提前批',
  172. 2: '艺术类',
  173. 3: '体育类',
  174. 4: '职高对口'
  175. }
  176. }
  177. },
  178. recommendOptions: {
  179. sinoforeign: [
  180. { label: '不限', value: '' },
  181. { label: '仅看中外', value: true },
  182. { label: '不看中外', value: false }
  183. ],
  184. collect: [
  185. { label: '不限', value: '' },
  186. { label: '仅看征集', value: true },
  187. { label: '不看征集', value: false }
  188. ],
  189. specialProjectNation: [
  190. { label: '不限', value: '' },
  191. { label: '仅看国家专项', value: true },
  192. { label: '不看国家专项', value: false }
  193. ],
  194. specialProjectLocal: [
  195. { label: '不限', value: '' },
  196. { label: '仅看地方专项', value: true },
  197. { label: '不看地方专项', value: false }
  198. ]
  199. },
  200. recommendMajorSortFn: (a, b) => a.localPriority - b.localPriority
  201. }