解决营销系统订单列表表格选择框,页码改变选择框勾选未联动

This commit is contained in:
许红梅 2022-05-24 14:01:51 +08:00
parent 5dff5d016c
commit 2bade0b186
2 changed files with 6 additions and 7 deletions

View File

@ -420,9 +420,8 @@ export default class orderlist extends React.Component {
againinvestFn(e, row) {} againinvestFn(e, row) {}
//清空 //清空
clearFn() { clearFn() {
this.setState({ selectiondata: [] }) this.setState({ selectiondata: [],allcheck: false,itemcheck: false })
this.setState({ allcheck: false }) this.refs.orderList.allChecked(false)
this.setState({ itemcheck: false })
} }
//选择时间 //选择时间
@ -432,16 +431,15 @@ export default class orderlist extends React.Component {
} }
//page //page
pageChange(e) { pageChange(e) {
this.setState({ page: e }) this.setState({ page: e,selectiondata: [] })
this.setState({ selectiondata: [] }) this.refs.orderList.allChecked(false)
setTimeout(() => { setTimeout(() => {
this.getOrderFn() this.getOrderFn()
}, 0) }, 0)
} }
//limit //limit
countChange(e) { countChange(e) {
this.setState({ page: 1, limit: e }) this.setState({ page: 1, limit: e,selectiondata: [] })
this.setState({ selectiondata: [] })
setTimeout(() => { setTimeout(() => {
this.getOrderFn() this.getOrderFn()
}, 0) }, 0)
@ -659,6 +657,7 @@ export default class orderlist extends React.Component {
page={this.state.page} page={this.state.page}
countbarVisible={false} countbarVisible={false}
isSwitch={false} isSwitch={false}
ref="orderList"
maxheight={this.state.tableHeight} maxheight={this.state.tableHeight}
pageChange={(e) => { pageChange={(e) => {
this.pageChange(e) this.pageChange(e)

Binary file not shown.