forked from Gitlink/forgeplus-react
组织成员-接口参数page、limit
This commit is contained in:
parent
9db4f1b18c
commit
b82e7d9d69
|
@ -24,7 +24,7 @@ function TeamMember({organizeDetail,current_user,history,match}){
|
|||
setIsSpin(true);
|
||||
const url = `/organizations/${organizeDetail.id}/organization_users.json`;
|
||||
axios.get(url,{
|
||||
page,limit
|
||||
params:{page,limit}
|
||||
}).then(result=>{
|
||||
if(result && result.data){
|
||||
setList(result.data.organization_users);
|
||||
|
@ -76,7 +76,7 @@ function TeamMember({organizeDetail,current_user,history,match}){
|
|||
{
|
||||
total >limit &&
|
||||
<div className="mt20 pb20 edu-txt-center">
|
||||
<Pagination simple current={page} pageSize={limit} total={total} onChange={(page)=>setPage(page)}/>
|
||||
<Pagination simple current={page} pageSize={limit} total={total} onChange={(p)=>setPage(p)}/>
|
||||
</div>
|
||||
}
|
||||
</WhiteBack>
|
||||
|
|
Loading…
Reference in New Issue