合并请求分页
This commit is contained in:
parent
ab052ebace
commit
426ea3fece
|
@ -253,24 +253,6 @@ class merge extends Component {
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
|
|
||||||
const Paginations = (
|
|
||||||
<React.Fragment>
|
|
||||||
{search_count > limit ? (
|
|
||||||
<div className="mt30 mb50 edu-txt-center">
|
|
||||||
<Pagination
|
|
||||||
simple
|
|
||||||
defaultCurrent={page}
|
|
||||||
total={search_count}
|
|
||||||
pageSize={limit}
|
|
||||||
onChange={this.ChangePage}
|
|
||||||
></Pagination>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
""
|
|
||||||
)}
|
|
||||||
</React.Fragment>
|
|
||||||
);
|
|
||||||
return (
|
return (
|
||||||
<div className="main" style={{padding:"0px"}}>
|
<div className="main" style={{padding:"0px"}}>
|
||||||
<div className="topWrapper" style={{borderBottom:"none",padding:"20px"}}>
|
<div className="topWrapper" style={{borderBottom:"none",padding:"20px"}}>
|
||||||
|
@ -419,9 +401,21 @@ class merge extends Component {
|
||||||
{...this.props}
|
{...this.props}
|
||||||
{...this.state}
|
{...this.state}
|
||||||
></OrderItem>
|
></OrderItem>
|
||||||
{Paginations}
|
|
||||||
</div>
|
</div>
|
||||||
):""}
|
):""}
|
||||||
|
{search_count > select_params.limit ? (
|
||||||
|
<div className="mt30 mb50 edu-txt-center">
|
||||||
|
<Pagination
|
||||||
|
simple
|
||||||
|
current={select_params.page}
|
||||||
|
total={search_count}
|
||||||
|
pageSize={select_params.limit}
|
||||||
|
onChange={this.ChangePage}
|
||||||
|
></Pagination>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)}
|
||||||
{ data && data.issues && data.issues.length === 0 ? <NoneData _html="暂时还没有相关数据!" projectsId={projectsId} owner={owner} /> :""}
|
{ data && data.issues && data.issues.length === 0 ? <NoneData _html="暂时还没有相关数据!" projectsId={projectsId} owner={owner} /> :""}
|
||||||
</Spin>
|
</Spin>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue