From adb6f1d7415ffc0f8c0bf43764b7997db0eee307 Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Tue, 1 Nov 2022 10:19:06 +0800 Subject: [PATCH] =?UTF-8?q?11.1=20=E4=BF=AE=E6=94=B9=E7=85=A7=E7=89=87?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=85=A7=E7=89=87=E6=96=87=E4=BB=B6=E4=B8=8D=E7=9C=9F=E5=88=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ElecBidEvaluation/ExpertPhotoUpload.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/ElecBidEvaluation/ExpertPhotoUpload.tsx b/src/components/ElecBidEvaluation/ExpertPhotoUpload.tsx index df2b7ac..911922f 100644 --- a/src/components/ElecBidEvaluation/ExpertPhotoUpload.tsx +++ b/src/components/ElecBidEvaluation/ExpertPhotoUpload.tsx @@ -52,13 +52,15 @@ const ExpertPhotoUpload: React.FC = (props) => { if (file.status === 'uploading') { setFileList(newFileList); } else if (file.status === 'removed') { - //删除文件 - removeFileByOid(file.uid).then(res => { - if (res.success) { - onChange && onChange(null); - message.success("删除成功"); - } - }) + // //删除文件 + // removeFileByOid(file.uid).then(res => { + // if (res.success) { + // onChange && onChange(null); + // message.success("删除成功"); + // } + // }) + onChange && onChange(null); + message.success("删除成功"); } else if (file.status === 'done') { onChange && onChange(file?.response.data[0].sysStorageVO.fileId); message.success("上传成功"); @@ -70,7 +72,6 @@ const ExpertPhotoUpload: React.FC = (props) => { const beforeUpload = (file: RcFile) => { const fileType = file.type === 'image/png' || file.type === 'image/jpg' || file.type === 'image/jpeg'; const fileSize = file.size / 1024;//精确到KB - console.log("fileSize", fileSize) const fileListLength = fileList.length; if (!fileType) { message.error(`上传失败,${file.name}类型不正确,请选择png、jpg、jpeg类型的图片`);