sc
This commit is contained in:
@@ -236,7 +236,7 @@ const dialogForm = ref({
|
|||||||
chooseC: undefined,
|
chooseC: undefined,
|
||||||
chooseD: undefined,
|
chooseD: undefined,
|
||||||
imageUrl: undefined,
|
imageUrl: undefined,
|
||||||
type: undefined,
|
type: '2',
|
||||||
trueAnswer: undefined,
|
trueAnswer: undefined,
|
||||||
carTypeId: undefined,
|
carTypeId: undefined,
|
||||||
skillInfoPic: undefined,
|
skillInfoPic: undefined,
|
||||||
@@ -257,7 +257,7 @@ const open = (info = undefined, opts) => {
|
|||||||
dialogForm.value.driveTypeName = info.driveTypeName
|
dialogForm.value.driveTypeName = info.driveTypeName
|
||||||
dialogForm.value.carTypeName = info.carTypeName
|
dialogForm.value.carTypeName = info.carTypeName
|
||||||
if (info) {
|
if (info) {
|
||||||
dialogForm.value = { ...info, chapter: info.chapter }
|
dialogForm.value = { ...dialogForm.value, ...info, chapter: info.chapter }
|
||||||
if (dialogForm.value.imageUrl) {
|
if (dialogForm.value.imageUrl) {
|
||||||
imgUrl.value = dialogForm.value.imageUrl.includes('http')
|
imgUrl.value = dialogForm.value.imageUrl.includes('http')
|
||||||
? dialogForm.value.imageUrl
|
? dialogForm.value.imageUrl
|
||||||
@@ -283,7 +283,7 @@ const resetDialogForm = () => {
|
|||||||
chooseC: undefined,
|
chooseC: undefined,
|
||||||
chooseD: undefined,
|
chooseD: undefined,
|
||||||
imageUrl: undefined,
|
imageUrl: undefined,
|
||||||
type: undefined,
|
type: '2',
|
||||||
trueAnswer: undefined,
|
trueAnswer: undefined,
|
||||||
carTypeId: undefined,
|
carTypeId: undefined,
|
||||||
skillInfoPic: undefined,
|
skillInfoPic: undefined,
|
||||||
|
|||||||
@@ -239,7 +239,9 @@ function handleEdit(item) {
|
|||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
dialogAddForm.value.open(
|
dialogAddForm.value.open(
|
||||||
{
|
{
|
||||||
chapter: queryParams.value.chapter
|
chapter: queryParams.value.chapter,
|
||||||
|
modelId: queryParams.value.modelId,
|
||||||
|
typeId: queryParams.value.typeId
|
||||||
},
|
},
|
||||||
chapterOptions.value
|
chapterOptions.value
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user