diff --git a/src/views/paper/question/EmailForm.vue b/src/views/paper/question/EmailForm.vue index c186bbd..4e877c8 100644 --- a/src/views/paper/question/EmailForm.vue +++ b/src/views/paper/question/EmailForm.vue @@ -205,13 +205,12 @@ --> - + - - { @@ -492,24 +469,6 @@ const deleteUrl = (index: number) => { formData.value.fileUploads[index].url = '' formData.value.fileUploads[index].fileName = '' } -// 媒体文件 -const mediumList = ref([] as any) -const multipleMediumSelection = ref([] as any) -const handleMediumSelectionChange = (val: any) => { - multipleMediumSelection.value = val -} -const fileList = [] - -const multipleDocumentSelection = ref([] as any) -const handleDocumentSelectionChange = (val: any) => { - multipleDocumentSelection.value = val -} -const handleUploadSuccess = ({ url, fileType }) => { - const index = documentList.value.findIndex((item) => item.fileType === fileType) - if (index !== -1) { - documentList.value[index].url = url - } -} /** 打开弹窗 */ const open = async (queryParams: any, type: string, id?: number) => { dialogVisible.value = true @@ -524,7 +483,6 @@ const open = async (queryParams: any, type: string, id?: number) => { formData.value = res console.log(formData.value) list.value = formData.value.answerList - documentList.value = res.fileUploads } finally { formLoading.value = false } @@ -560,7 +518,6 @@ const submitForm = async () => { item.scoreRate = '1' // 设置默认权值为1 } }) - formData.value.fileUploads = documentList.value const values = Object.values(formData) console.log(values) // 校验表单 @@ -630,26 +587,6 @@ const resetForm = () => { } ] } - documentList.value = [ - { - quId: '', - url: '', - fileType: '0', - fileName: '' - }, - { - quId: '', - url: '', - fileType: '1', - fileName: '' - }, - { - quId: '', - url: '', - fileType: '2', - fileName: '' - } - ] list.value = [] formRef.value?.resetFields() }