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 @@

试题

- -
- - -
-
- - - - - - - - -
-
- - - - - - - - + + + + + +
+ + + {{ item.name }} + -
- - - {{ item.name }} - - - - - - -
- 上传题干文件 -
- -
-
- - - -
-
- 选项{{ numToLetter(i) }} - 选项{{ - numToLetter(i) - }} -
-
-

请输入

+ + + + +
+ 上传题干文件
- -