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 @@ - - - - - - - 搜索 - 重置 - + +
+ + 新建题目 + 智能新建 + + + 搜索 + 重置 + 刷新 + 批量导入 + +
-
- + - + + +