持续开发习题管理模块,新增ckeditor5富文本组件
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user