里程碑-切换分页需要带上状态参数
This commit is contained in:
parent
37f608cdb8
commit
2882289267
|
@ -13,7 +13,7 @@ class Milepost extends Component {
|
|||
super(props);
|
||||
this.state = {
|
||||
data: undefined,
|
||||
limit: 15,
|
||||
limit: 3,
|
||||
page: 1,
|
||||
order_type: undefined,
|
||||
//新建标签区域是否显示 none 隐藏 block 显示
|
||||
|
@ -122,8 +122,8 @@ class Milepost extends Component {
|
|||
this.setState({
|
||||
page
|
||||
})
|
||||
|
||||
this.getList(page);
|
||||
const { status } = this.state;
|
||||
this.getList( page , status );
|
||||
}
|
||||
|
||||
// 排序
|
||||
|
@ -260,7 +260,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>
|
||||
|
|
Loading…
Reference in New Issue