import { stemTypeList, questionNumberTypeList, scoreTypeList, optionTypeList } from './common'; import { getRandomNumber } from '@/utils/index'; export function getOption(content = '') { return { content, mark: getRandomNumber(), content_view: [], audio_file_id: '', }; } export const toneList = [ { value: 'first', label: '一声', img: 'first-tone' }, { value: 'second', label: '二声', img: 'second-tone' }, { value: 'third', label: '三声', img: 'third-tone' }, { value: 'fourth', label: '四声', img: 'fourth-tone' }, { value: 'neutral', label: '轻声', img: 'neutral-tone' }, ]; export const toneTypeList = [ { value: 'select', label: '选择声调' }, { value: 'label', label: '标注声调' }, ]; export const audioGenerationMethodList = [ { value: 'upload', label: '上传', }, { value: 'auto', label: '自动生成', }, { value: 'record', label: '录音', }, ]; // 选择声调题数据模板 export const ChooseToneData = { type: 'choose_tone', // 题型 stem: '', // 题干 description: '', // 描述 option_number_show_mode: optionTypeList[0].value, // 选项类型 option_list: [getOption(), getOption(), getOption()], // 选项 file_id_list: [], answer: { score: 0, score_type: scoreTypeList[0].value, answer_list: [] }, // 答案 // 题型属性 property: { stem_type: stemTypeList[0].value, // 题干类型 question_number: '1', // 题号 is_enable_description: 'false', // 描述 answer_mode: toneTypeList[0].value, // 音调类型 score: 1, // 分值 score_type: scoreTypeList[0].value, // 分值类型 }, // 其他属性 other: { question_number_type: questionNumberTypeList[0].value, // 题号类型 audio_generation_method: audioGenerationMethodList[0].value, // 音频生成方式 }, };