From e96304246146909ffcebe05773a63d52fbcc94ed Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 30 Aug 2019 10:27:49 +0800 Subject: [PATCH] showGlobalLoading --- public/react/src/modules/tpm/TPMIndexHOC.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js index 61ffe3c20..69ad09348 100644 --- a/public/react/src/modules/tpm/TPMIndexHOC.js +++ b/public/react/src/modules/tpm/TPMIndexHOC.js @@ -392,6 +392,12 @@ export function TPMIndexHOC(WrappedComponent) { console.log('failCallback') } }) + } + showGlobalLoading = () => { + this.setState({ globalLoading: true }) + } + hideGlobalLoading = () => { + this.setState({ globalLoading: false }) } render() { let{Headertop,Footerdown, isRender, AccountProfiletype}=this.state; @@ -418,7 +424,10 @@ export function TPMIndexHOC(WrappedComponent) { DownloadFileA:(title,url)=>this.DownloadFileA(title,url), DownloadOpenPdf:(type,url)=>this.DownloadOpenPdf(type,url), - slowDownload: this.slowDownload + slowDownload: this.slowDownload, + showGlobalLoading: this.showGlobalLoading, + hideGlobalLoading: this.hideGlobalLoading, + } return (