From 25f14a497bb3a5ac66c0001d48857d0a21902bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 12 Dec 2019 11:53:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/tpm/TPMDataset.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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(`正在上传文件中`); + } } }