|
@@ -93,13 +93,12 @@ const submitForm = async () => {
|
|
|
// 提交请求
|
|
// 提交请求
|
|
|
formLoading.value = true
|
|
formLoading.value = true
|
|
|
try {
|
|
try {
|
|
|
- const data = formData.value as unknown as CourseQuestOptionVO
|
|
|
|
|
- console.log("============----",formData.value,data)
|
|
|
|
|
|
|
+ const data = { ...formData.value } as unknown as CourseQuestOptionVO
|
|
|
if (formType.value === 'create') {
|
|
if (formType.value === 'create') {
|
|
|
- // await CourseQuestOptionApi.createCourseQuestOption(data)
|
|
|
|
|
|
|
+ await CourseQuestOptionApi.createCourseQuestOption(data)
|
|
|
message.success(t('common.createSuccess'))
|
|
message.success(t('common.createSuccess'))
|
|
|
} else {
|
|
} else {
|
|
|
- // await CourseQuestOptionApi.updateCourseQuestOption(data)
|
|
|
|
|
|
|
+ await CourseQuestOptionApi.updateCourseQuestOption(data)
|
|
|
message.success(t('common.updateSuccess '))
|
|
message.success(t('common.updateSuccess '))
|
|
|
}
|
|
}
|
|
|
dialogVisible.value = false
|
|
dialogVisible.value = false
|