diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js index f1c9d5253..4b2c9ea02 100644 --- a/public/react/src/modules/tpm/TPMIndexHOC.js +++ b/public/react/src/modules/tpm/TPMIndexHOC.js @@ -81,7 +81,7 @@ export function TPMIndexHOC(WrappedComponent) { isRender: false, AccountProfiletype: false, - slowDownloading: false + globalLoading: false } } @@ -137,7 +137,7 @@ export function TPMIndexHOC(WrappedComponent) { keyupListener = (e) => { if (e.key === "Escape") { - this.setState({ slowDownloading: false }) + this.setState({ globalLoading: false }) } } componentWillUnmount() { @@ -379,16 +379,16 @@ export function TPMIndexHOC(WrappedComponent) { } slowDownload = (url, tip) => { this._slowDownloadTip = tip || '正在生成文件,请稍后...'; - this.setState({ slowDownloading: true }) + this.setState({ globalLoading: true }) const fileUrl = url; downloadFile({ url: fileUrl, successCallback: (url) => { - this.setState({ slowDownloading: false }) + this.setState({ globalLoading: false }) console.log('successCallback') }, failCallback: (responseHtml, url) => { - this.setState({ slowDownloading: false }) + this.setState({ globalLoading: false }) console.log('failCallback') } }) @@ -456,7 +456,7 @@ export function TPMIndexHOC(WrappedComponent) { } .globalSpin { - + max-height: 700px !important; } .indexHOC > .ant-spin-nested-loading { background: #000; @@ -471,7 +471,7 @@ export function TPMIndexHOC(WrappedComponent) { } ` } -