writePicture.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import { stemTypeList, scoreTypeList, questionNumberTypeList, switchOption } from './common';
  2. import { getRandomNumber } from '@/utils/index';
  3. export function getOption() {
  4. return {
  5. picture_title: '',
  6. picture_info: '',
  7. picture_file_id: '',
  8. mark: getRandomNumber(),
  9. };
  10. }
  11. export const writePictrueData = {
  12. type: 'write_picture', // 题型
  13. stem: '', // 题干
  14. description: '',
  15. article: '',
  16. sample_text: '',
  17. option_list: [], // 选项
  18. file_id_list: [],
  19. answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
  20. // 题型属性
  21. property: {
  22. stem_type: stemTypeList[1].value, // 题干类型
  23. question_number: '1', // 题号
  24. score: 1, // 分值
  25. is_enable_description: switchOption[0].value, // 描述
  26. score_type: scoreTypeList[0].value, // 分值类型
  27. word_num: 50, // 字数
  28. is_enable_sample_text: 'true', // 范文开启
  29. is_enable_upload_accessory: 'true', // 上传附件
  30. },
  31. // 其他属性
  32. other: {
  33. question_number_type: questionNumberTypeList[1].value, // 题号类型
  34. },
  35. };