From 5fddba8a3088bdd74ff6e007a1bb49dc314cad88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E5=BC=BA?= <357099073@qq.com> Date: Tue, 18 Nov 2025 17:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A2=98=E5=BA=93=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + pc/src/views/apps/exams/certificate/index.vue | 3 + .../apps/exams/exam/components/create.vue | 3 + .../examinationQuestions/components/edit.vue | 4 +- .../components/examList.vue | 90 +++++++-------- .../apps/exams/examinationQuestions/index.vue | 109 +++++++----------- pc/src/views/apps/exams/examinee/index.vue | 3 + pc/src/views/apps/exams/practice/index.vue | 3 + pc/src/views/apps/exams/training/index.vue | 3 + server/conf/app.conf | 2 +- server/controllers/exam.go | 20 +++- server/models/exam.go | 1 + server/services/exam.go | 12 +- 13 files changed, 138 insertions(+), 116 deletions(-) diff --git a/.gitignore b/.gitignore index 0bc8bf9..280b285 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ dist dist-ssr *.local server/uploads +server/conf/ # Editor directories and files .vscode/* diff --git a/pc/src/views/apps/exams/certificate/index.vue b/pc/src/views/apps/exams/certificate/index.vue index e69de29..b79608c 100644 --- a/pc/src/views/apps/exams/certificate/index.vue +++ b/pc/src/views/apps/exams/certificate/index.vue @@ -0,0 +1,3 @@ + diff --git a/pc/src/views/apps/exams/exam/components/create.vue b/pc/src/views/apps/exams/exam/components/create.vue index e69de29..96eda66 100644 --- a/pc/src/views/apps/exams/exam/components/create.vue +++ b/pc/src/views/apps/exams/exam/components/create.vue @@ -0,0 +1,3 @@ + diff --git a/pc/src/views/apps/exams/examinationQuestions/components/edit.vue b/pc/src/views/apps/exams/examinationQuestions/components/edit.vue index 1d9b988..8c5b507 100644 --- a/pc/src/views/apps/exams/examinationQuestions/components/edit.vue +++ b/pc/src/views/apps/exams/examinationQuestions/components/edit.vue @@ -124,7 +124,8 @@ import '@wangeditor/editor/dist/css/style.css' const props = defineProps({ visible: { type: Boolean, default: false }, mode: { type: String, default: 'create' }, - model: { type: Object, default: null } + model: { type: Object, default: null }, + bankId: { type: [Number, String], default: null } }) const emit = defineEmits(['close', 'saved']) @@ -380,6 +381,7 @@ function handleSubmit() { options: showOptions.value ? form.options.map(o => ({ key: o.key, label: o.label, content: o.content })) : [], answer: isMultipleType.value ? [...multiAnswer.value] : form.answer } + if (props.bankId) payload.bank_id = props.bankId emit('saved', payload) } catch (e) { ElMessage.error('保存失败') diff --git a/pc/src/views/apps/exams/examinationQuestions/components/examList.vue b/pc/src/views/apps/exams/examinationQuestions/components/examList.vue index c895a22..aaa4bb7 100644 --- a/pc/src/views/apps/exams/examinationQuestions/components/examList.vue +++ b/pc/src/views/apps/exams/examinationQuestions/components/examList.vue @@ -4,7 +4,7 @@
返回 -
题目列表
+
{{ bankName }}
@@ -16,36 +16,38 @@ - - - - - - - 搜索 - 重置 - + +
+ + 新建题目 + 智能新建 + + + 搜索 + 重置 + 刷新 + 批量导入 + +
-
- + - + + +