| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- import {
- displayList,
- serialNumberTypeList,
- serialNumberPositionList,
- arrangeTypeList,
- switchOption,
- pinyinPositionList,
- } from '@/views/book/courseware/data/common';
- export { arrangeTypeList, switchOption };
- // 音频位置
- export const audioPositionList = [
- { value: 'front', label: '前' },
- { value: 'back', label: '后' },
- ];
- // 读音生成方式
- export const audioGenerationMethodList = [
- {
- value: 'upload',
- label: '上传',
- },
- {
- value: 'auto',
- label: '自动生成',
- },
- {
- value: 'record',
- label: '录音',
- },
- ];
- // 填空方式
- export const fillTypeList = [
- { value: 'input', label: '输入' },
- { value: 'select', label: '选词' },
- { value: 'handwriting', label: '手写' },
- { value: 'voice', label: '语音' },
- ];
- // 填空字体
- export const fillFontList = [
- { value: 'chinese', label: '中文', font: 'arial' },
- { value: 'english', label: '英文', font: 'arial' },
- { value: 'pinyin', label: '拼音', font: 'PINYIN-B' },
- ];
- export function getFillProperty() {
- return {
- serial_number: 1,
- sn_type: serialNumberTypeList[0].value,
- fill_type: fillTypeList[0].value,
- sn_position: serialNumberPositionList[3].value,
- sn_display_mode: displayList[1].value,
- arrange_type: arrangeTypeList[1].value,
- audio_position: audioPositionList[0].value,
- audio_generation_method: audioGenerationMethodList[0].value,
- fill_font: fillFontList[0].value,
- is_enable_voice_answer: switchOption[0].value,
- view_pinyin: 'false', // 显示拼音
- pinyin_position: pinyinPositionList[0].value,
- is_first_sentence_first_hz_pinyin_first_char_upper_case: displayList[0].value, // 句首大写
- voice_type: '', // 音色
- emotion: '', // 风格,情感
- };
- }
- export function getFillData() {
- return {
- type: 'fill',
- title: '填空',
- property: getFillProperty(),
- content: '',
- audio_file_id: '',
- record_list: [],
- model_essay: [],
- vocabulary: '', // 用于选词的词汇
- word_list: [], // 选词列表
- answer: {
- answer_list: [],
- reference_answer: '',
- },
- mind_map: {
- node_list: [{ name: '横排中文填空组件' }],
- },
- multilingual: [], // 多语言
- };
- }
|