chromesetting
杨树林 5 years ago
parent 773b2d0df7
commit 843ac8aea6

@ -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();
}
}

Loading…
Cancel
Save