From f4330b60d5e914a7391f3e3c731acb37d2dc1258 Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Wed, 28 May 2025 16:50:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ProjectApply):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=BD=92=E6=A1=A3=E9=99=84=E4=BB=B6=E4=B8=8A=E4=BC=A0=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DetailComponent/ProjectApply.vue | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue index 32faf70..953c33e 100644 --- a/src/components/DetailComponent/ProjectApply.vue +++ b/src/components/DetailComponent/ProjectApply.vue @@ -669,26 +669,26 @@ const handleSubmit = async (instance) => { if (props.step == 50) { let files = [] if (props.mode === 'resubmit') { - attachment.value.allFileList.forEach(item => { + attachment.value.allFileList?.forEach(item => { files.push(getFileParam(item)) }) } else { - otherFileList.value.forEach(item => { + otherFileList.value?.forEach(item => { files.push(getFileParam(item)) }) } // console.info("🚀 ~method:handleSubmit -----", files,attachment.value.isHaveOneFile) - if (!attachment.value.isHaveOneFile) { - attachment.value.validate() - ElNotification({ - title: '提示', - message: '请上传附件', - type: 'error' - }) - return; - } else { - attachment.value.clearValidate() - } + // if (!attachment.value.isHaveOneFile) { + // attachment.value.validate() + // ElNotification({ + // title: '提示', + // message: '请上传附件', + // type: 'error' + // }) + // return; + // } else { + // attachment.value.clearValidate() + // } let projectPersonIds = [] for (const item of projectPersonUserList.value) { projectPersonIds.push(parseInt(item.id)) @@ -696,7 +696,7 @@ const handleSubmit = async (instance) => { let params = { deploymentId: deploymentId.value, requirementId: route.query.id, - fileList: files, + fileList: files||[], // singleFile: attachment.value.singleFile, projectId: route.query.projectId, ...localFormData.value,