forked from Gitlink/forgeplus-react
build
This commit is contained in:
parent
bc6c114090
commit
5ede49c311
|
|
@ -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 && <NpsModal closeNpsModal={()=>{this.closeNpsModal()}} npsActionType={npsActionType} npsActionId={npsActionId}/>}
|
||||
{/* {npsModalVisible && <NpsModal closeNpsModal={()=>{this.closeNpsModal()}} npsActionType={npsActionType} npsActionId={npsActionId}/>} */}
|
||||
<Header {...this.state} {...this.props} {...common} publicNav={publicNav}></Header>
|
||||
<Spin spinning={this.state.globalLoading} delay={0} className="globalSpin"
|
||||
size="large" tip={this._gLoadingTip || "加载中..."}
|
||||
|
|
|
|||
Loading…
Reference in New Issue