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

@ -264,15 +264,23 @@ 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;
for(var list of fileList ){ // try {
console.log(list) // for(var list of fileList ){
this.state.fileListimg.push(list); // console.log(list)
} // this.state.fileListimg.push(list);
// }
// }catch (e) {
//
// }
this.setState({ this.setState({
fileList: appendFileSizeToUploadFileAll(fileList), fileList: appendFileSizeToUploadFileAll(fileList),
fileListimg:this.state.fileListimg,
}); });
if(info.file.status === 'done'){ if(info.file.status === 'done'){
this.setState({
fileListimg:this.state.fileListimg,
})
this.getdatas(); this.getdatas();
} }
} }

Loading…
Cancel
Save