diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js index b432451b7..6ac263530 100644 --- a/src/modules/tpm/TPMIndexHOC.js +++ b/src/modules/tpm/TPMIndexHOC.js @@ -10,7 +10,7 @@ import ProfileModal from '../../forge/Component/ProfileModal/Index'; import SupplyPhoneModal from '../../forge/Component/ProfileModal/SupplyPhone'; import SystemNotice from '../../forge/Component/NoticeModal/SystemNotice'; import cookie from 'react-cookies'; -import NpsModal from '../modals/npsModal'; +// import NpsModal from '../modals/npsModal'; export function TPMIndexHOC(WrappedComponent) { return class II extends React.Component { @@ -34,7 +34,7 @@ export function TPMIndexHOC(WrappedComponent) { showCP:false, showNotice:true, gopage: undefined, - npsModalVisible: false, + // npsModalVisible: false, npsActionType: undefined, npsActionId: undefined } @@ -250,10 +250,10 @@ export function TPMIndexHOC(WrappedComponent) { npsActionType:type, npsActionId: index }) - const {current_user} = this.state; - current_user && current_user.nps && setTimeout(() => { - this.setState({npsModalVisible: true}) - }, 500) + // const {current_user} = this.state; + // current_user && current_user.nps && setTimeout(() => { + // this.setState({npsModalVisible: true}) + // }, 500) } closeNpsModal(){ @@ -266,9 +266,9 @@ export function TPMIndexHOC(WrappedComponent) { if (response.data) { // 关闭nps弹框之后需要重新请求一次get_user_info更新用户信息 this.fetchUsers(); - this.setState({ - npsModalVisible: false - }) + // this.setState({ + // npsModalVisible: false + // }) } }).catch(function (error) { console.log(error); @@ -306,7 +306,7 @@ export function TPMIndexHOC(WrappedComponent) { {...this.props} {...this.state} /> : ""} - {npsModalVisible && {this.closeNpsModal()}} npsActionType={npsActionType} npsActionId={npsActionId}/>} + {/* {npsModalVisible && {this.closeNpsModal()}} npsActionType={npsActionType} npsActionId={npsActionId}/>} */}