notes.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import {
  2. displayList,
  3. serialNumberTypeList,
  4. serialNumberPositionList,
  5. arrangeTypeList,
  6. switchOption,
  7. isEnable,
  8. } from '@/views/book/courseware/data/common';
  9. export { arrangeTypeList, switchOption, isEnable };
  10. // 拼音位置
  11. export const pinyinPositionLists = [
  12. { value: 'front', label: '前面' },
  13. { value: 'back', label: '后面' },
  14. { value: 'top', label: '上面' },
  15. { value: 'bottom', label: '下面' },
  16. ];
  17. export const wordShowList = [
  18. { value: 'true', label: '是' },
  19. { value: 'false', label: '否' },
  20. ];
  21. export function getOption() {
  22. return {
  23. number: '',
  24. con: '',
  25. pinyin:'',
  26. interpret: '', // 翻译
  27. note: '', // 注释
  28. file_list: [''], // 图片
  29. };
  30. }
  31. export function getNotesProperty() {
  32. return {
  33. serial_number: 1,
  34. sn_type: serialNumberTypeList[0].value,
  35. sn_position: serialNumberPositionList[3].value,
  36. sn_display_mode: displayList[0].value,
  37. is_word_show: wordShowList[0].value,
  38. view_pinyin: 'false', // 显示拼音
  39. pinyin_position: pinyinPositionLists[1].value, // top bottom
  40. is_first_sentence_first_hz_pinyin_first_char_upper_case: 'true', // 句首大写
  41. };
  42. }
  43. export function getNotesData() {
  44. return {
  45. type: 'notes',
  46. title: '注释组件',
  47. property: getNotesProperty(),
  48. title_con: '',
  49. option: [getOption()],
  50. file_id_list: [], // 文件 id
  51. mind_map: {
  52. node_list: [
  53. { name: '注释组件' }
  54. ], // 思维导图数据
  55. },
  56. paragraph_list: [],
  57. paragraph_list_parameter: {
  58. text: '',
  59. is_first_sentence_first_hz_pinyin_first_char_upper_case: 'true',
  60. pinyin_proofread_word_list: [],
  61. },
  62. multilingual: [], // 多语言
  63. };
  64. }