From bd9d13164336dbe46d4d0e277348b337138eca0a Mon Sep 17 00:00:00 2001
From: "YOHO\\20373" <2037305722@qq.com>
Date: Mon, 16 Jun 2025 22:21:22 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E8=AF=95?=
=?UTF-8?q?=E5=8D=B7=E4=BB=BB=E5=8A=A1=E5=A2=9E=E5=8A=A0=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=EF=BC=8C=E8=AF=95=E5=8D=B7=E6=8D=A2=E9=A2=98?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=B3=E9=94=AE=E5=AD=97=E6=90=9C=E7=B4=A2?=
=?UTF-8?q?=E6=9D=A1=E4=BB=B6=EF=BC=8Cmysql=E5=87=BA=E9=A2=98=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=BA=93=E5=90=8D=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/paper/audit/MysqlForm.vue | 22 +++++++++++----
src/views/paper/question/MysqlForm.vue | 9 ++++--
.../steps/step2/components/step-edit.vue | 10 ++++++-
src/views/task/exam/components/task-add.vue | 19 +++++++++----
src/views/task/exam/index.vue | 20 ++++++++-----
.../task/selftrans/ai/components/task-add.vue | 25 +++++++++--------
src/views/task/selftrans/ai/index.vue | 19 +++++++++----
.../collegeexam/components/task-add.vue | 26 ++++++++---------
.../task/selftrans/collegeexam/index.vue | 21 ++++++++------
.../selftrans/module/components/task-add.vue | 26 ++++++++---------
src/views/task/selftrans/module/index.vue | 20 ++++++++-----
.../selftrans/random/components/task-add.vue | 26 ++++++++---------
src/views/task/selftrans/random/index.vue | 21 ++++++++------
.../steps/step2/components/step-edit.vue | 10 ++++++-
src/views/task/sprint/components/task-add.vue | 26 ++++++++---------
src/views/task/sprint/index.vue | 21 ++++++++------
.../steps/step2/components/step-edit.vue | 10 ++++++-
src/views/task/trans/components/task-add.vue | 28 +++++++++----------
src/views/task/trans/index.vue | 20 ++++++++-----
19 files changed, 234 insertions(+), 145 deletions(-)
diff --git a/src/views/paper/audit/MysqlForm.vue b/src/views/paper/audit/MysqlForm.vue
index ed4c671..7a1c1b9 100644
--- a/src/views/paper/audit/MysqlForm.vue
+++ b/src/views/paper/audit/MysqlForm.vue
@@ -93,7 +93,11 @@
-
+
+
+
+
+
@@ -421,7 +425,7 @@ const formData = ref({
analysis: '',
quLevel: 0,
pointNames: '',
-
+ tname:'',
subjectName: '',
status: ' ',
keywords: '',
@@ -808,7 +812,7 @@ const open = async (queryParams: any ,type: string, id?: number) => {
kaodianData.value.quId=id;
formLoading.value = true
try {
-const res = await QuestionApi.getQuestionnotId(id);
+const res = await QuestionApi.getQuestion(id);
// 默认两个类型
const fileTypes = ['1', '2'];
@@ -882,8 +886,15 @@ const submitForm = async () => {
data.fileUploads = data.fileUploads?.filter(file => file.url && file.url.trim() !== '');
console.log(data, "提交的数据");
- await QuestionApi.editQuestionNoAudit(data);
- message.success(t('common.updateSuccess'));
+
+ if (formType.value === 'create') {
+ await QuestionApi.addQuestion(data);
+ message.success(t('common.createSuccess'));
+ } else {
+ await QuestionApi.editQuestion(data);
+ message.success(t('common.updateSuccess'));
+ }
+
dialogVisible.value = false;
emit('success');
} finally {
@@ -904,6 +915,7 @@ const resetForm = () => {
chapteridDictText: '',
analysis: '',
quLevel: 0,
+ tname:'',
pointNames: '',
subjectName: '',
status: '0',
diff --git a/src/views/paper/question/MysqlForm.vue b/src/views/paper/question/MysqlForm.vue
index b2d33eb..7a1c1b9 100644
--- a/src/views/paper/question/MysqlForm.vue
+++ b/src/views/paper/question/MysqlForm.vue
@@ -93,7 +93,11 @@
-
+
+
+
+
+
@@ -421,7 +425,7 @@ const formData = ref({
analysis: '',
quLevel: 0,
pointNames: '',
-
+ tname:'',
subjectName: '',
status: ' ',
keywords: '',
@@ -911,6 +915,7 @@ const resetForm = () => {
chapteridDictText: '',
analysis: '',
quLevel: 0,
+ tname:'',
pointNames: '',
subjectName: '',
status: '0',
diff --git a/src/views/task/exam/components/steps/step2/components/step-edit.vue b/src/views/task/exam/components/steps/step2/components/step-edit.vue
index 50b9c65..94c71a2 100644
--- a/src/views/task/exam/components/steps/step2/components/step-edit.vue
+++ b/src/views/task/exam/components/steps/step2/components/step-edit.vue
@@ -202,6 +202,12 @@
clearable
style="flex: 1; min-width: 180px;"
/>
+
搜索
重置
随机换题
@@ -223,7 +229,7 @@
-
+
+
+