From 35bdf6881dd81cb6a450f443242e3467e02f6226 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Fri, 19 Sep 2025 16:29:13 +0800 Subject: [PATCH] sc --- .../Database/Components/QuestionAddForm.vue | 63 +++++++++++++++++-- src/views/Question/Database/index.vue | 32 +++++++++- 2 files changed, 89 insertions(+), 6 deletions(-) diff --git a/src/views/Question/Database/Components/QuestionAddForm.vue b/src/views/Question/Database/Components/QuestionAddForm.vue index bd6fea8..dc06d98 100644 --- a/src/views/Question/Database/Components/QuestionAddForm.vue +++ b/src/views/Question/Database/Components/QuestionAddForm.vue @@ -97,6 +97,16 @@ /> + + + + + - - + + + + + + + + + + + + + + + - + + + + + + @@ -206,7 +249,13 @@ :show-file-list="false" > - +
+ +
@@ -240,6 +289,7 @@ const dialogForm = ref({ categoryTitle: undefined, question: undefined, bestAnswer: undefined, + chapter: undefined, chooseA: undefined, chooseB: undefined, chooseC: undefined, @@ -264,7 +314,9 @@ const open = (info = undefined, opts) => { if (info) { dialogForm.value = { ...info, chapter: parseInt(info.chapter) } if (dialogForm.value.imageUrl) { - imgUrl.value = dialogForm.value.imageUrl.includes('http') ? dialogForm.value.imageUrl : 'https://ss-cloud.ahduima.com/xjxc/pic/' + dialogForm.value.imageUrl + imgUrl.value = dialogForm.value.imageUrl.includes('http') + ? dialogForm.value.imageUrl + : 'https://ss-cloud.ahduima.com/xjxc/pic/' + dialogForm.value.imageUrl } } info.source = info.source @@ -280,6 +332,7 @@ const resetDialogForm = () => { showOrder: 0, question: undefined, bestAnswer: undefined, + chapter: undefined, chooseA: undefined, chooseB: undefined, chooseC: undefined, diff --git a/src/views/Question/Database/index.vue b/src/views/Question/Database/index.vue index 4fa9bdc..5b8f360 100644 --- a/src/views/Question/Database/index.vue +++ b/src/views/Question/Database/index.vue @@ -30,7 +30,7 @@ - + + + + 搜索 + + 重置 + 新增 @@ -149,6 +161,7 @@ const queryParams = ref({ carTypeId: '1001', subject: '1', isPic: undefined, + keyword: '', pageNo: 1, pageSize: 100 }) @@ -161,6 +174,10 @@ const sourceOptions = [ { key: 'YDT', label: '驾校一点通' + }, + { + key: 'JKBD', + label: '驾考宝典' } ] @@ -185,6 +202,19 @@ function getShowImg(row) { : `https://ss-cloud.ahduima.com/xjxc/pic/${row.imageUrl}` } +function handleReset() { + queryParams.value = { + ...queryParams.value, + question: '', + carTypeId: '1001', + subject: '1', + isPic: undefined, + keyword: '', + pageNo: 1, + pageSize: 100 + } + getList() +} function getList() { loading.value = true searchQuestion(queryParams.value).then((response) => {