From f5b7a77fb00e99a05420f947abc9e1c36204c428 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Tue, 1 Jul 2025 16:28:16 +0800 Subject: [PATCH] sc --- src/views/Question/UAV/Components/QuestionAddForm.vue | 6 +++--- src/views/Question/UAV/index.vue | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/Question/UAV/Components/QuestionAddForm.vue b/src/views/Question/UAV/Components/QuestionAddForm.vue index 0500ac3..f9cc7c9 100644 --- a/src/views/Question/UAV/Components/QuestionAddForm.vue +++ b/src/views/Question/UAV/Components/QuestionAddForm.vue @@ -236,7 +236,7 @@ const dialogForm = ref({ chooseC: undefined, chooseD: undefined, imageUrl: undefined, - type: undefined, + type: '2', trueAnswer: undefined, carTypeId: undefined, skillInfoPic: undefined, @@ -257,7 +257,7 @@ const open = (info = undefined, opts) => { dialogForm.value.driveTypeName = info.driveTypeName dialogForm.value.carTypeName = info.carTypeName if (info) { - dialogForm.value = { ...info, chapter: info.chapter } + dialogForm.value = { ...dialogForm.value, ...info, chapter: info.chapter } if (dialogForm.value.imageUrl) { imgUrl.value = dialogForm.value.imageUrl.includes('http') ? dialogForm.value.imageUrl @@ -283,7 +283,7 @@ const resetDialogForm = () => { chooseC: undefined, chooseD: undefined, imageUrl: undefined, - type: undefined, + type: '2', trueAnswer: undefined, carTypeId: undefined, skillInfoPic: undefined, diff --git a/src/views/Question/UAV/index.vue b/src/views/Question/UAV/index.vue index 0861fc0..a2d4a7d 100644 --- a/src/views/Question/UAV/index.vue +++ b/src/views/Question/UAV/index.vue @@ -239,7 +239,9 @@ function handleEdit(item) { function handleAdd() { dialogAddForm.value.open( { - chapter: queryParams.value.chapter + chapter: queryParams.value.chapter, + modelId: queryParams.value.modelId, + typeId: queryParams.value.typeId }, chapterOptions.value )