read.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { stemTypeList, scoreTypeList, questionNumberTypeList, switchOption, fontSizeList } from './common';
  2. import { getExerciseTypeList } from './questionType';
  3. // 题型类型选项
  4. export const questionTypeOption = [
  5. { label: '选择题', value: 'select' },
  6. { label: '判断题', value: 'judge' },
  7. { label: '填空题', value: 'fill' },
  8. { label: '连线题', value: 'matching' },
  9. { label: '问答题', value: 'essay_question' },
  10. ];
  11. // 题型类型列表
  12. export const exerciseTypeList = getExerciseTypeList(questionTypeOption);
  13. // 阅读题数据模板
  14. export const readData = {
  15. type: 'read', // 题型
  16. stem: '', // 题干
  17. description: '', // 描述
  18. article: '', // 文章
  19. answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
  20. question_list: [], // 题目列表
  21. file_id_list: [], // 文件 id 列表
  22. // 题型属性
  23. property: {
  24. stem_type: stemTypeList[1].value, // 题干类型
  25. question_number: '1', // 题号
  26. stem_question_number_font_size: fontSizeList[6], // 题干题号
  27. is_enable_description: switchOption[0].value, // 描述
  28. score: 1, // 分值
  29. score_type: scoreTypeList[0].value, // 分值类型
  30. },
  31. // 其他属性
  32. other: {
  33. question_number_type: questionNumberTypeList[1].value, // 题号类型
  34. },
  35. };