constants.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. export const paperTypeOptions = [
  2. {
  3. label: '专业组考试',
  4. value: '专业组考试'
  5. },
  6. {
  7. label: '职能岗位考题',
  8. value: '职能岗位考题'
  9. },
  10. {
  11. label: 'ISO15189相关考试',
  12. value: 'ISO15189相关考试'
  13. },
  14. {
  15. label: '核心制度考试',
  16. value: '核心制度考试'
  17. }
  18. // {
  19. // label: '数学题库',
  20. // value: '数学题库'
  21. // }
  22. ]
  23. export const examTypeOptions = [
  24. {
  25. label: '培训考试',
  26. value: '培训考试'
  27. },
  28. {
  29. label: '自主考核',
  30. value: '自主考核'
  31. },
  32. {
  33. label: '常规',
  34. value: '常规'
  35. }
  36. ]
  37. export const scoringType = [
  38. {
  39. label: '平均分',
  40. value: '平均分'
  41. },
  42. {
  43. label: '最高分',
  44. value: '最高分'
  45. },
  46. {
  47. label: '最近得分',
  48. value: '最近得分'
  49. }
  50. ]
  51. export const questionType = [
  52. {
  53. label: '单选题',
  54. value: '单选题'
  55. },
  56. {
  57. label: '多选题',
  58. value: '多选题'
  59. },
  60. {
  61. label: '判断题',
  62. value: '判断题'
  63. },
  64. {
  65. label: '填空题',
  66. value: '填空题'
  67. },
  68. {
  69. label: '简答题',
  70. value: '简答题'
  71. }
  72. ]
  73. export const surveyQuestionType = [
  74. {
  75. label: '单选题',
  76. value: '单选题'
  77. },
  78. {
  79. label: '多选题',
  80. value: '多选题'
  81. },
  82. {
  83. label: '问答题',
  84. value: '问答题'
  85. }
  86. ]
  87. export const rateType = {
  88. '单选题': '自动',
  89. '多选题': '自动',
  90. '判断题': '自动',
  91. '填空题': '手动',
  92. '简答题': '手动'
  93. }
  94. export const defaultOptions = [
  95. {
  96. value: 'A',
  97. radio: 'A',
  98. checkbox: [],
  99. content: ''
  100. },
  101. {
  102. value: 'B',
  103. radio: '',
  104. checkbox: [],
  105. content: ''
  106. },
  107. {
  108. value: 'C',
  109. radio: '',
  110. checkbox: [],
  111. content: ''
  112. },
  113. {
  114. value: 'D',
  115. radio: '',
  116. checkbox: [],
  117. content: ''
  118. }
  119. ]
  120. export const surveyDefaultOptions = [
  121. {
  122. value: 'A',
  123. content: ''
  124. },
  125. {
  126. value: 'B',
  127. content: ''
  128. },
  129. {
  130. value: 'C',
  131. content: ''
  132. },
  133. {
  134. value: 'D',
  135. content: ''
  136. }
  137. ]
  138. export const statusOption = [
  139. {
  140. label: '未发布',
  141. value: '未发布',
  142. type: 'info'
  143. },
  144. {
  145. label: '已取消',
  146. value: '已取消',
  147. type: 'warning'
  148. },
  149. {
  150. label: '已发布',
  151. value: '已发布',
  152. type: 'primary'
  153. }
  154. // {
  155. // label: '已结束',
  156. // value: '已结束',
  157. // type: 'success'
  158. // }
  159. ]
  160. const qualifiedType = [
  161. {
  162. label: '达标',
  163. value: '达标',
  164. type: 'success'
  165. },
  166. {
  167. label: '未达标',
  168. value: '未达标',
  169. type: 'danger'
  170. },
  171. {
  172. label: '考试未结束',
  173. value: '考试未结束',
  174. type: 'warning'
  175. }
  176. ]
  177. export const basicColumn = [
  178. { prop: 'examName', label: '考试名称', minWidth: 200 },
  179. { prop: 'examType', label: '考试类型', width: 90 },
  180. { prop: 'bankName', label: '考试题库', width: 160 },
  181. { prop: 'trainId', label: '关联培训', width: 160 },
  182. { prop: 'examState', label: '状态', width: 80, tags: statusOption },
  183. { prop: 'totalScore', label: '总分', width: 65 }
  184. ]
  185. export const infoColumn = [
  186. { prop: 'questionCount', label: '题数', width: 65 },
  187. { prop: 'duration', label: '考试时长', slotName: 'examTime', width: 85 },
  188. { prop: 'limitCount', label: '限考次数', width: 85 },
  189. { prop: 'limitDate', label: '限考时间', width: 120 },
  190. { prop: 'isRand', label: '是否随机', slotName: 'isRand', width: 65 },
  191. { prop: 'randWay', label: '随机方式', slotName: 'randWay', width: 90 }
  192. ]
  193. export const resultColumn = [
  194. { prop: 'qualifiedRadio', label: '达标分值占比', width: 75 },
  195. { prop: 'scoringType', label: '计分方式', width: 85 },
  196. { prop: 'examineeCount', label: '考试人数', width: 65 },
  197. { prop: 'examFinishCount', label: '完考人数', width: 65 },
  198. { prop: 'maxScore', label: '最高分 ', width: 70 },
  199. { prop: 'minScore', label: '最低分', width: 70 },
  200. { prop: 'avgScore', label: '平均分', width: 70 },
  201. { prop: 'passRate', label: '达标率', width: 70 }
  202. ]