持续开发习题管理模块,新增ckeditor5富文本组件

This commit is contained in:
2023-02-18 21:59:58 +08:00
parent cbe10214f5
commit 40f5e10da7
13 changed files with 10423 additions and 24 deletions

View File

@@ -11,6 +11,56 @@ const custom = {
}
}
return arr
},
getExercisesTypeList() {
return [
{
label: '单选题',
value2:'single',
value:1
},
{
label: '多选题',
value2:'mutil',
value:2
},
{
label: '判断题',
value2:'judge',
value:3
},
{
label: '填空题',
value2:'application',
value:4
},
{
label: '选填题',
value2:'application',
value:5
}
]
},
getExercisesTypeName(type) {
let name = ''
switch (type){
case 1:
name = '单选题';
break;
case 2:
name = '多选题';
break;
case 3:
name = '判断题';
break;
case 4:
name = '填空题';
break;
case 5:
name = '选填题';
break;
}
return name
}
}
export default custom