From 1597d98a8d5d8922044f893c5644a5a98a127dfd Mon Sep 17 00:00:00 2001 From: wenlele Date: Thu, 18 May 2023 17:33:35 +0800 Subject: [PATCH] =?UTF-8?q?type=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/means/containers/devOpsStandard.jsx | 4 ++-- .../src/sections/means/containers/faultInformation.jsx | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/web/client/src/sections/means/containers/devOpsStandard.jsx b/web/client/src/sections/means/containers/devOpsStandard.jsx index 3ac4b91..2fff1ee 100644 --- a/web/client/src/sections/means/containers/devOpsStandard.jsx +++ b/web/client/src/sections/means/containers/devOpsStandard.jsx @@ -310,7 +310,7 @@ const Rest = (props) => { editData={editData} higherFile={higherFile} pepProjectId={pepProjectId} - type={1} + type={4} close={() => { setIsFileModal(false) setEditData({}) @@ -394,7 +394,7 @@ const Rest = (props) => { style={{ display: 'inline-block' }} action="/_upload/attachments" accept={'.txt, .doc, .docx, .xls, .xlsx, .pdf, .png, .jpg, .rar, .zip'} - limit={4} + limit={1} maxSize={51200} onRemove={() => { setUploadData({}) diff --git a/web/client/src/sections/means/containers/faultInformation.jsx b/web/client/src/sections/means/containers/faultInformation.jsx index 3723b3c..7ff3e08 100644 --- a/web/client/src/sections/means/containers/faultInformation.jsx +++ b/web/client/src/sections/means/containers/faultInformation.jsx @@ -86,7 +86,6 @@ const Rest = (props) => { }, [fileId]) const fileList = (id) => { - dispatch(means.fileList({ projectId: id, type: 3 })).then((res => { if (res.success) { let data = res.payload.data @@ -310,7 +309,7 @@ const Rest = (props) => { editData={editData} higherFile={higherFile} pepProjectId={pepProjectId} - type={1} + type={3} close={() => { setIsFileModal(false) setEditData({}) @@ -394,7 +393,7 @@ const Rest = (props) => { style={{ display: 'inline-block' }} action="/_upload/attachments" accept={'.txt, .doc, .docx, .xls, .xlsx, .pdf, .png, .jpg, .rar, .zip'} - limit={3} + limit={1} maxSize={51200} onRemove={() => { setUploadData({})