talkPicture.js 1.0 KB

12345678910111213141516171819202122232425262728
  1. import { stemTypeList, scoreTypeList, questionNumberTypeList, switchOption } from './common';
  2. import { getRandomNumber } from '@/utils/index';
  3. export function getOption() {
  4. return { picture_title: '', picture_info: '', reference_answer: '', picture_file_id: '', mark: getRandomNumber() };
  5. }
  6. // 看图说话数据模板
  7. export const talkPictrueData = {
  8. type: 'talk_picture', // 题型
  9. stem: '', // 题干
  10. description: '', // 描述
  11. option_list: [], // 选项
  12. file_id_list: [],
  13. answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
  14. // 题型属性
  15. property: {
  16. stem_type: stemTypeList[0].value, // 题干类型
  17. question_number: '1', // 题号
  18. score: 1, // 分值
  19. is_enable_description: switchOption[1].value, // 描述
  20. is_enable_voice_answer: switchOption[0].value, // 语音作答
  21. is_enable_reference_answer: switchOption[0].value, // 参考答案
  22. score_type: scoreTypeList[0].value, // 分值类型
  23. },
  24. // 其他属性
  25. other: {
  26. question_number_type: questionNumberTypeList[0].value, // 题号类型
  27. },
  28. };