sc
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user