write.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import {
  2. optionTypeList,
  3. stemTypeList,
  4. scoreTypeList,
  5. questionNumberTypeList,
  6. switchOption,
  7. fontSizeList,
  8. } from './common';
  9. // 基础写作数据模板
  10. export const writeData = {
  11. type: 'write', // 题型
  12. stem: '', // 题干
  13. option_number_show_mode: optionTypeList[0].value, // 选项类型
  14. description: '', // 描述
  15. sample_text: '', // 范文
  16. file_id_list: [], // 文件 id 列表
  17. answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
  18. // 题型属性
  19. property: {
  20. stem_type: stemTypeList[1].value, // 题干类型
  21. question_number: '1', // 题号
  22. stem_question_number_font_size: fontSizeList[6], // 题干题号
  23. is_enable_description: switchOption[1].value, // 描述
  24. score: 1, // 分值
  25. score_type: scoreTypeList[0].value, // 分值类型
  26. word_num: 50, // 字数
  27. is_enable_sample_text: 'true', // 范文开启
  28. is_enable_upload_accessory: 'true', // 上传附件
  29. },
  30. // 其他属性
  31. other: {
  32. question_number_type: questionNumberTypeList[1].value, // 题号类型
  33. },
  34. };