|
@@ -2,7 +2,7 @@ import { optionTypeList, stemTypeList, scoreTypeList, questionNumberTypeList } f
|
|
|
import { getRandomNumber } from '@/utils/index';
|
|
|
|
|
|
export function getOption(content = '') {
|
|
|
- return { content, mark: getRandomNumber(), file_id_list: [] };
|
|
|
+ return { content, mark: getRandomNumber(), audio_file_id: '' };
|
|
|
}
|
|
|
|
|
|
// 听后训练数据模板
|
|
@@ -12,17 +12,17 @@ export const repeatData = {
|
|
|
option_number_show_mode: optionTypeList[0].value, // 选项类型
|
|
|
description: '', // 描述
|
|
|
option_list: [
|
|
|
- { content: '', mark: getRandomNumber(), file_id_list: [] },
|
|
|
- { content: '', mark: getRandomNumber(), file_id_list: [] },
|
|
|
- { content: '', mark: getRandomNumber(), file_id_list: [] },
|
|
|
+ { content: '', mark: getRandomNumber(), audio_file_id: '' },
|
|
|
+ { content: '', mark: getRandomNumber(), audio_file_id: '' },
|
|
|
+ { content: '', mark: getRandomNumber(), audio_file_id: '' },
|
|
|
], // 选项
|
|
|
-
|
|
|
- answer: { answer_list: [], score: 0, score_type: scoreTypeList[0].value }, // 答案
|
|
|
+ file_id_list: [],
|
|
|
+ answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
|
|
|
// 题型属性
|
|
|
property: {
|
|
|
stem_type: stemTypeList[0].value, // 题干类型
|
|
|
question_number: 1, // 题号
|
|
|
- is_enable_description: false, // 描述
|
|
|
+ is_enable_description: 'false', // 描述
|
|
|
score: 1, // 分值
|
|
|
score_type: scoreTypeList[0].value, // 分值类型
|
|
|
},
|