onTableChange

dev_forum
hjm 6 years ago
parent 91dd24c8e6
commit 776583329d

@ -447,10 +447,7 @@ class studentsList extends Component{
onPressEnter = (e) => {
this.fetchAll(1)
}
onPageChange = (page, pageSize) => {
this.fetchAll(page)
this.setState({ checkAllValue: false })
}
onCheckBoxChange = (checkedValues) => {
this.setState({
@ -555,9 +552,11 @@ class studentsList extends Component{
})
return result && result.length > 0
}
onTableChange = (pagination, filters, sorter) => {
console.log('Various parameters', pagination, filters, sorter);
this.setState({
page: pagination.current,
sortedInfo: sorter,
}, () => {
this.fetchAll()
@ -668,7 +667,7 @@ class studentsList extends Component{
<div className="mt20 edu-back-white padding20 teacherList">
<CourseGroupChooserModal
props={this.props}
props={{match: this.props.match, showNotification: this.props.showNotification}}
record={this.state.clickRecord}
fetchAll={this.fetchAll}
course_groups={course_groups}
@ -726,7 +725,7 @@ class studentsList extends Component{
total: page == 1 && this.state.application_list.length ? total_count + total_count / Math.floor(this.state.application_list.length + 20) : total_count , //数据总数量
pageSize: page == 1 && this.state.application_list.length ? this.state.application_list.length + 20 : 20, //显示几条一页
current: page,
onChange: this.onPageChange
// onChange: this.onPageChange
} : false}
></Table>
</Checkbox.Group>

Loading…
Cancel
Save