|
@ -86,7 +86,6 @@ const Rest = (props) => { |
|
|
}, [fileId]) |
|
|
}, [fileId]) |
|
|
|
|
|
|
|
|
const fileList = (id) => { |
|
|
const fileList = (id) => { |
|
|
|
|
|
|
|
|
dispatch(means.fileList({ projectId: id, type: 3 })).then((res => { |
|
|
dispatch(means.fileList({ projectId: id, type: 3 })).then((res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
let data = res.payload.data |
|
|
let data = res.payload.data |
|
@ -310,7 +309,7 @@ const Rest = (props) => { |
|
|
editData={editData} |
|
|
editData={editData} |
|
|
higherFile={higherFile} |
|
|
higherFile={higherFile} |
|
|
pepProjectId={pepProjectId} |
|
|
pepProjectId={pepProjectId} |
|
|
type={1} |
|
|
type={3} |
|
|
close={() => { |
|
|
close={() => { |
|
|
setIsFileModal(false) |
|
|
setIsFileModal(false) |
|
|
setEditData({}) |
|
|
setEditData({}) |
|
@ -394,7 +393,7 @@ const Rest = (props) => { |
|
|
style={{ display: 'inline-block' }} |
|
|
style={{ display: 'inline-block' }} |
|
|
action="/_upload/attachments" |
|
|
action="/_upload/attachments" |
|
|
accept={'.txt, .doc, .docx, .xls, .xlsx, .pdf, .png, .jpg, .rar, .zip'} |
|
|
accept={'.txt, .doc, .docx, .xls, .xlsx, .pdf, .png, .jpg, .rar, .zip'} |
|
|
limit={3} |
|
|
limit={1} |
|
|
maxSize={51200} |
|
|
maxSize={51200} |
|
|
onRemove={() => { |
|
|
onRemove={() => { |
|
|
setUploadData({}) |
|
|
setUploadData({}) |
|
|