write.js 949 B

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