里程碑-切换分页需要带上状态参数

This commit is contained in:
caishi 2021-08-23 10:08:04 +08:00
parent 3a1fd14e7c
commit 9b101403a1
1 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ class Milepost extends Component {
super(props);
this.state = {
data: undefined,
limit: 15,
limit: 3,
page: 1,
order_type: undefined,
//新建标签区域是否显示 none 隐藏 block 显示
@ -121,8 +121,8 @@ class Milepost extends Component {
this.setState({
page
})
this.getList(page);
const { status } = this.state;
this.getList( page , status );
}
// 排序
@ -259,7 +259,7 @@ class Milepost extends Component {
{
data && data.versions_count > limit ?
<div className="mt30 mb50 edu-txt-center">
<Pagination simple defaultCurrent={page} total={data && data.versions_count} pageSize={limit} onChange={this.ChangePage}></Pagination>
<Pagination simple current={page} total={data && data.versions_count} pageSize={limit} onChange={this.ChangePage}></Pagination>
</div> : ""
}
</div>