|
@@ -3,33 +3,33 @@ import { getRandomNumber } from '@/utils/index';
|
|
|
|
|
|
// 汉字类型列表
|
|
|
export const learnTypeList = [
|
|
|
- { value: 'miao', label: '描红' },
|
|
|
- { value: 'write', label: '书写' },
|
|
|
- { value: 'learn', label: '笔画学习' },
|
|
|
+ { value: 'miao', label: '描红' },
|
|
|
+ { value: 'write', label: '书写' },
|
|
|
+ { value: 'learn', label: '笔画学习' },
|
|
|
];
|
|
|
export function getOption(content = '') {
|
|
|
- return { content, mark: getRandomNumber() };
|
|
|
+ return { content, mark: getRandomNumber() };
|
|
|
}
|
|
|
|
|
|
// 选择题数据模板
|
|
|
export const chineseData = {
|
|
|
- type: 'chinese', // 题型
|
|
|
- stem: '', // 题干
|
|
|
- option_number_show_mode: optionTypeList[0].value, // 选项类型
|
|
|
- description: '', // 描述
|
|
|
- content: '', // 题目
|
|
|
- answer: { select_list: [], score: 0, score_type: scoreTypeList[0].value }, // 答案
|
|
|
- // 题型属性
|
|
|
- property: {
|
|
|
- stem_type: stemTypeList[0].value, // 题干类型
|
|
|
- question_number: 1, // 题号
|
|
|
- is_enable_description: false, // 描述
|
|
|
- score: 1, // 分值
|
|
|
- score_type: scoreTypeList[0].value, // 分值类型
|
|
|
- learn_type: learnTypeList[0].value,
|
|
|
- },
|
|
|
- // 其他属性
|
|
|
- other: {
|
|
|
- question_number_type: questionNumberTypeList[0].value, // 题号类型
|
|
|
- },
|
|
|
-};
|
|
|
+ type: 'chinese', // 题型
|
|
|
+ stem: '', // 题干
|
|
|
+ option_number_show_mode: optionTypeList[0].value, // 选项类型
|
|
|
+ description: '', // 描述
|
|
|
+ content: '', // 题目
|
|
|
+ answer: { select_list: [], score: 0, score_type: scoreTypeList[0].value }, // 答案
|
|
|
+ // 题型属性
|
|
|
+ property: {
|
|
|
+ stem_type: stemTypeList[0].value, // 题干类型
|
|
|
+ question_number: 1, // 题号
|
|
|
+ is_enable_description: false, // 描述
|
|
|
+ score: 1, // 分值
|
|
|
+ score_type: scoreTypeList[0].value, // 分值类型
|
|
|
+ learn_type: learnTypeList[0].value,
|
|
|
+ },
|
|
|
+ // 其他属性
|
|
|
+ other: {
|
|
|
+ question_number_type: questionNumberTypeList[0].value, // 题号类型
|
|
|
+ },
|
|
|
+};
|