|
|
@ -473,11 +473,11 @@ class TPMDataset extends Component {
|
|
|
|
beforeUpload: (file) => {
|
|
|
|
beforeUpload: (file) => {
|
|
|
|
//上传前的操作
|
|
|
|
//上传前的操作
|
|
|
|
// console.log('beforeUpload', file.name);
|
|
|
|
// console.log('beforeUpload', file.name);
|
|
|
|
const isLt150M = file.size / 1024 / 1024 < 150;
|
|
|
|
const isLt300M = file.size / 1024 / 1024 <= 300;
|
|
|
|
if (!isLt150M) {
|
|
|
|
if (!isLt300M) {
|
|
|
|
this.props.showNotification('文件大小必须小于150MB!');
|
|
|
|
this.props.showNotification('文件大小必须小于等于300MB!');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return isLt150M;
|
|
|
|
return isLt300M;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
// console.log("showmodelshowmodel");
|
|
|
|
// console.log("showmodelshowmodel");
|
|
|
|