recordInput.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import {
  2. displayList,
  3. serialNumberTypeList,
  4. serialNumberPositionList,
  5. switchOption,
  6. commonComponentProperty,
  7. } from '@/views/book/courseware/data/common';
  8. export { switchOption };
  9. // 录音控件规格
  10. export const sizeList = [
  11. { value: 'promax', label: '大' },
  12. { value: 'pro', label: '中' },
  13. { value: 'normal', label: '小' },
  14. { value: 'mini', label: '迷你' },
  15. ];
  16. export function getRecordInputProperty() {
  17. return {
  18. serial_number: 1,
  19. sn_type: serialNumberTypeList[0].value,
  20. sn_position: serialNumberPositionList[3].value,
  21. sn_display_mode: displayList[1].value,
  22. ...commonComponentProperty,
  23. };
  24. }
  25. export function getRecordInputData() {
  26. return {
  27. type: 'record_input',
  28. title: '录音组件',
  29. property: getRecordInputProperty(),
  30. size: 'promax',
  31. is_enable_score: switchOption[0].value,
  32. is_enable_input: switchOption[0].value,
  33. is_enable_manyTimes: switchOption[0].value,
  34. answer: {
  35. answer_list: {
  36. answer_record_list: [],
  37. input: '',
  38. },
  39. },
  40. multilingual: [], // 多语言
  41. answer_list: [], // 答案列表
  42. analysis_list: [], // 解析列表
  43. };
  44. }