talkPicture.js 1007 B

123456789101112131415161718192021222324252627
  1. import { 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: 1, score_type: scoreTypeList[0].value }, // 答案
  14. // 题型属性
  15. property: {
  16. question_number: '1', // 题号
  17. score: 1, // 分值
  18. is_enable_description: switchOption[1].value, // 描述
  19. is_enable_voice_answer: switchOption[0].value, // 语音作答
  20. is_enable_reference_answer: switchOption[0].value, // 参考答案
  21. score_type: scoreTypeList[0].value, // 分值类型
  22. },
  23. // 其他属性
  24. other: {
  25. question_number_type: questionNumberTypeList[0].value, // 题号类型
  26. },
  27. };