|
@@ -46,6 +46,7 @@ class PushContainer extends Component {
|
|
|
this.handleAllCheckbox=this.handleAllCheckbox.bind(this)
|
|
|
this.handleMangerTemplate=this.handleMangerTemplate.bind(this)
|
|
|
this.handleDelList=this.handleDelList.bind(this)
|
|
|
+ this.handleClose = this.handleClose.bind(this);
|
|
|
}
|
|
|
componentDidMount(){
|
|
|
// const height = getWindowInnerHeight()-160;
|
|
@@ -219,6 +220,9 @@ class PushContainer extends Component {
|
|
|
}
|
|
|
store.dispatch(changeVisible(false))
|
|
|
}
|
|
|
+ handleClose(){
|
|
|
+ store.dispatch(changeVisible(false));
|
|
|
+ }
|
|
|
render() {
|
|
|
const {activeId,checkItems,visible,showMsg,items,allCheckShow} = this.props;
|
|
|
return <div className={style["container"]} ref={this.$cont} >
|
|
@@ -243,9 +247,9 @@ class PushContainer extends Component {
|
|
|
</Tab>
|
|
|
<ConfirmModal
|
|
|
visible={visible}
|
|
|
- confirm={()=>{this.makeSure()}}
|
|
|
- close={()=>{store.dispatch(changeVisible(false))}}
|
|
|
- cancel={()=>{store.dispatch(changeVisible(false))}}
|
|
|
+ confirm={this.makeSure}
|
|
|
+ close={this.handleClose}
|
|
|
+ cancel={this.handleClose}
|
|
|
okText={this.state.okText}
|
|
|
okBorderColor={this.state.okBorderColor}
|
|
|
okColor={this.state.okColor}
|