|
|
|
@ -264,15 +264,23 @@ class TPMDataset extends Component {
|
|
|
|
|
handleChange = (info) => {
|
|
|
|
|
if(info.file.status == "done" || info.file.status == "uploading" || info.file.status === 'removed'){
|
|
|
|
|
let fileList = info.fileList;
|
|
|
|
|
for(var list of fileList ){
|
|
|
|
|
console.log(list)
|
|
|
|
|
this.state.fileListimg.push(list);
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
fileList: appendFileSizeToUploadFileAll(fileList),
|
|
|
|
|
fileListimg:this.state.fileListimg,
|
|
|
|
|
});
|
|
|
|
|
// try {
|
|
|
|
|
// for(var list of fileList ){
|
|
|
|
|
// console.log(list)
|
|
|
|
|
// this.state.fileListimg.push(list);
|
|
|
|
|
// }
|
|
|
|
|
// }catch (e) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
this.setState({
|
|
|
|
|
fileList: appendFileSizeToUploadFileAll(fileList),
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if(info.file.status === 'done'){
|
|
|
|
|
this.setState({
|
|
|
|
|
fileListimg:this.state.fileListimg,
|
|
|
|
|
})
|
|
|
|
|
this.getdatas();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|