recordInput.js 946 B

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