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