123456789101112131415161718192021222324252627282930313233343536 |
- import { stemTypeList, scoreTypeList, questionNumberTypeList, getExerciseTypeList, switchOption } from './common';
- // 题型类型选项
- export const questionTypeOption = [
- { label: '选择题', value: 'select' },
- { label: '判断题', value: 'judge' },
- { label: '填空题', value: 'fill' },
- { label: '连线题', value: 'matching' },
- { label: '简答题', value: 'short_answer' },
- ];
- // 题型类型列表
- export const exerciseTypeList = getExerciseTypeList(questionTypeOption);
- // 阅读题数据模板
- export const readData = {
- type: 'read', // 题型
- stem: '', // 题干
- description: '', // 描述
- article: '', // 文章
- answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
- question_list: [], // 题目列表
- file_id_list: [], // 文件 id 列表
- // 题型属性
- property: {
- stem_type: stemTypeList[0].value, // 题干类型
- question_number: '1', // 题号
- is_enable_description: switchOption[1].value, // 描述
- score: 1, // 分值
- score_type: scoreTypeList[0].value, // 分值类型
- },
- // 其他属性
- other: {
- question_number_type: questionNumberTypeList[0].value, // 题号类型
- },
- };
|