|
@@ -46,6 +46,7 @@ class PushContainer extends Component {
|
|
this.handleAllCheckbox=this.handleAllCheckbox.bind(this)
|
|
this.handleAllCheckbox=this.handleAllCheckbox.bind(this)
|
|
this.handleMangerTemplate=this.handleMangerTemplate.bind(this)
|
|
this.handleMangerTemplate=this.handleMangerTemplate.bind(this)
|
|
this.handleDelList=this.handleDelList.bind(this)
|
|
this.handleDelList=this.handleDelList.bind(this)
|
|
|
|
+ this.handleClose = this.handleClose.bind(this);
|
|
}
|
|
}
|
|
componentDidMount(){
|
|
componentDidMount(){
|
|
// const height = getWindowInnerHeight()-160;
|
|
// const height = getWindowInnerHeight()-160;
|
|
@@ -194,8 +195,10 @@ class PushContainer extends Component {
|
|
makeSure(){
|
|
makeSure(){
|
|
if(this.state.type == 1) {
|
|
if(this.state.type == 1) {
|
|
store.dispatch(delItem(this.state.id))
|
|
store.dispatch(delItem(this.state.id))
|
|
|
|
+ store.dispatch(changeVisible(false))
|
|
}else if(this.state.type == 2){
|
|
}else if(this.state.type == 2){
|
|
store.dispatch(delBatchItem(this.props.checkItems))
|
|
store.dispatch(delBatchItem(this.props.checkItems))
|
|
|
|
+ store.dispatch(changeVisible(false))
|
|
}else if(this.state.type == 3){
|
|
}else if(this.state.type == 3){
|
|
if(this.state.title == this.state.obj.text){
|
|
if(this.state.title == this.state.obj.text){
|
|
store.dispatch(changeVisible(false))
|
|
store.dispatch(changeVisible(false))
|
|
@@ -216,8 +219,11 @@ class PushContainer extends Component {
|
|
pushAllDataList(typeConfig,'push',part,'template') //引用
|
|
pushAllDataList(typeConfig,'push',part,'template') //引用
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ store.dispatch(changeVisible(false))
|
|
}
|
|
}
|
|
- store.dispatch(changeVisible(false))
|
|
|
|
|
|
+ }
|
|
|
|
+ handleClose(){
|
|
|
|
+ store.dispatch(changeVisible(false));
|
|
}
|
|
}
|
|
render() {
|
|
render() {
|
|
const {activeId,checkItems,visible,showMsg,items,allCheckShow} = this.props;
|
|
const {activeId,checkItems,visible,showMsg,items,allCheckShow} = this.props;
|
|
@@ -243,9 +249,9 @@ class PushContainer extends Component {
|
|
</Tab>
|
|
</Tab>
|
|
<ConfirmModal
|
|
<ConfirmModal
|
|
visible={visible}
|
|
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}
|
|
okText={this.state.okText}
|
|
okBorderColor={this.state.okBorderColor}
|
|
okBorderColor={this.state.okBorderColor}
|
|
okColor={this.state.okColor}
|
|
okColor={this.state.okColor}
|