qsh 3 days ago
parent c70b530362
commit f5b7a77fb0
  1. 6
      src/views/Question/UAV/Components/QuestionAddForm.vue
  2. 4
      src/views/Question/UAV/index.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,

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

Loading…
Cancel
Save