From b15d416d748b9983c182adcb32e171cdc2f590b6 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 27 Aug 2024 18:01:42 +0800 Subject: [PATCH] fix --- .../plugins/gapfilling/gapfilling.js | 2 +- src/const/ques.js | 12 +- src/pages/ques/detail/index.vue | 356 ++++++++------- src/pages/testPaper/detail/auto.vue | 3 +- src/pages/testPaper/detail/index.vue | 423 +++++++++--------- src/pages/testPaper/detail/manual.vue | 30 +- 6 files changed, 438 insertions(+), 388 deletions(-) diff --git a/public/static/ueditorPlus/plugins/gapfilling/gapfilling.js b/public/static/ueditorPlus/plugins/gapfilling/gapfilling.js index 091984d..2fecd92 100644 --- a/public/static/ueditorPlus/plugins/gapfilling/gapfilling.js +++ b/public/static/ueditorPlus/plugins/gapfilling/gapfilling.js @@ -2,7 +2,7 @@ UE.registerUI('gapfilling', function (editor, uiName) { editor.registerCommand(uiName, { execCommand: function (cmdName, value) { - editor.execCommand('insertHtml', `______`) + editor.execCommand('insertHtml', `______`) } }) diff --git a/src/const/ques.js b/src/const/ques.js index ba8d6e5..3814d19 100644 --- a/src/const/ques.js +++ b/src/const/ques.js @@ -3,22 +3,26 @@ export default { { id: 'basic', name: '基础', - coefficient: 0.2 // 难度系数,试卷里计算试卷难度专用 + coefficient: 0.2, // 难度系数,试卷里计算试卷难度专用 + theme: 'success', }, { id: 'easy', name: '普通', - coefficient: 0.4 + coefficient: 0.4, + theme: '', }, { id: 'medium', name: '较难', - coefficient: 0.6 + coefficient: 0.6, + theme: 'warning', }, { id: 'hard', name: '难', - coefficient: 0.8 + coefficient: 0.8, + theme: 'danger', }, ], questionTypes: [ diff --git a/src/pages/ques/detail/index.vue b/src/pages/ques/detail/index.vue index 06493ae..740c6ec 100644 --- a/src/pages/ques/detail/index.vue +++ b/src/pages/ques/detail/index.vue @@ -2,184 +2,188 @@
试题
-支持.csv;.xlsx; .docx; .pdf; .jpg; .zip 等常见文件格式;上传文件大小不能超过50MB
- -请输入
+支持.csv;.xlsx; .docx; .pdf; .jpg; .zip 等常见文件格式;上传文件大小不能超过50MB
-请输入
试卷基础信息
-试卷基础信息
+基础题:难度系数0.2
-普通题:难度系数0.4
-较难题:难度系数0.6
-困难题:难度系数0.8
-(1)题型难度系数=对应题型所有试题的难度系数之和/总试题数
-(2)试卷总难度系数=所有试题的难度系数之和/总试题数
-(3)难度系数评价:
-简单:系数 <=0.3
-普通:0.3<系数<=0.4
-较难:0.4<系数<0.5
-困难:系数>=0.5
+基础题:难度系数0.2
+普通题:难度系数0.4
+较难题:难度系数0.6
+困难题:难度系数0.8
+(1)题型难度系数=对应题型所有试题的难度系数之和/总试题数
+(2)试卷总难度系数=所有试题的难度系数之和/总试题数
+(3)难度系数评价:
+简单:系数 <=0.3
+普通:0.3<系数<=0.4
+较难:0.4<系数<0.5
+困难:系数>=0.5
+试卷大纲
-{{ templateName }}
-目标总题数:{{ questionCount }};目标总分:{{ score }}
- - - -试卷大纲
+{{ templateName }}
+目标总题数:{{ questionCount }};目标总分:{{ score }}
+ + + +本大题共{{ item.questionNum }}小题,共{{ item.targetScore }}分
-本大题共{{ item.questionNum }}小题,共{{ item.targetScore }}分
+
+ (
每空分值
+
- (
每空分值
-{{ item.stemText }}
+{{ item.stemText }}
{{ item.knowledgePointName }}
@@ -145,7 +145,7 @@