|
|
@ -289,14 +289,10 @@ class TPMDataset extends Component {
|
|
|
|
handleChange = (info) => {
|
|
|
|
handleChange = (info) => {
|
|
|
|
if(info.file.status == "done" || info.file.status == "uploading" || info.file.status === 'removed'){
|
|
|
|
if(info.file.status == "done" || info.file.status == "uploading" || info.file.status === 'removed'){
|
|
|
|
let fileList = info.fileList;
|
|
|
|
let fileList = info.fileList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
fileList: appendFileSizeToUploadFileAll(fileList),
|
|
|
|
fileList: appendFileSizeToUploadFileAll(fileList),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if(info.file.status === 'done'){
|
|
|
|
if(info.file.status === 'done'){
|
|
|
|
console.log("handleChange");
|
|
|
|
|
|
|
|
console.log(info);
|
|
|
|
|
|
|
|
//done 成功就会调用这个方法
|
|
|
|
//done 成功就会调用这个方法
|
|
|
|
this.getdatas();
|
|
|
|
this.getdatas();
|
|
|
|
}
|
|
|
|
}
|
|
|
|