diff --git a/public/react/src/modules/tpm/TPMDataset.js b/public/react/src/modules/tpm/TPMDataset.js index bf9795952..2d9d06200 100644 --- a/public/react/src/modules/tpm/TPMDataset.js +++ b/public/react/src/modules/tpm/TPMDataset.js @@ -241,16 +241,27 @@ class TPMDataset extends Component { let {fileList} = this.state; if (info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') { - console.log("handleChange1"); + console.log("handleChange1fileLists"); // if(fileList.length===0){ let fileLists = info.fileList; + console.log(fileLists); this.setState({ // fileList:appendFileSizeToUploadFileAll(fileList), fileList: fileLists, deleteisnot: false }); + } + if(info.file.status === 'done'){ + //done 成功就会调用这个方法 this.getdatas(); - // } + // this.props.showNotification(`上传文件成功`); + + }else if(info.file.status === 'removed'){ + // this.props.showNotification(`上传文件失败`); + + }else if(info.file.status === 'uploading'){ + // this.props.showNotification(`正在上传文件中`); + } } }