|
|
|
@ -553,10 +553,12 @@ class MemoNew extends Component {
|
|
|
|
|
return attachments;
|
|
|
|
|
}
|
|
|
|
|
handleChange = (info) => {
|
|
|
|
|
let fileList = info.fileList;
|
|
|
|
|
this.setState({
|
|
|
|
|
fileList: appendFileSizeToUploadFileAll(fileList)
|
|
|
|
|
});
|
|
|
|
|
if (info.file.status === 'uploading' || info.file.status === 'done') {
|
|
|
|
|
let fileList = info.fileList;
|
|
|
|
|
this.setState({
|
|
|
|
|
fileList: appendFileSizeToUploadFileAll(fileList)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onAttachmentRemove = (file) => {
|
|
|
|
|
this.props.confirm({
|
|
|
|
@ -624,7 +626,7 @@ class MemoNew extends Component {
|
|
|
|
|
console.log('beforeUpload', file.name);
|
|
|
|
|
const isLt150M = file.size / 1024 / 1024 < 150;
|
|
|
|
|
if (!isLt150M) {
|
|
|
|
|
// message.error('文件大小必须小于150MB!');
|
|
|
|
|
this.props.showNotification('文件大小必须小于150MB!');
|
|
|
|
|
}
|
|
|
|
|
return isLt150M;
|
|
|
|
|
},
|
|
|
|
|