From a61eac1837b29f0bdfe48206112d24f3d4d5c306 Mon Sep 17 00:00:00 2001 From: dlaren Date: Mon, 18 Aug 2025 17:38:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=20?= =?UTF-8?q?=E9=82=AE=E7=AE=B1=E5=87=BA=E9=A2=98=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/paper/question/EmailForm.vue | 67 +------------------------- 1 file changed, 2 insertions(+), 65 deletions(-) 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() }