协作者分页

This commit is contained in:
caishi 2021-03-22 09:46:30 +08:00
parent fa26dc9fa5
commit b44399968f
1 changed files with 5 additions and 5 deletions

View File

@ -15,8 +15,8 @@ const MENU_LIST = [
function CollaboratorMember({projectsId,owner,project_id,author,showNotification,newId}){
const [ roleName , setRoleName ] = useState(undefined);
const [ search , setSearch ] = useState(undefined);
const [ page , setPage ] = useState(undefined);
const [ isSpin , setIsSpin ] = useState(false);
const [ page , setPage ] = useState(1);
const [ isSpin , setIsSpin ] = useState(true);
const [ role , setRole ] = useState(undefined);
const [ listData , setListData ] = useState(undefined);
const [ total , setTotal ] = useState(0);
@ -261,13 +261,13 @@ function CollaboratorMember({projectsId,owner,project_id,author,showNotification
</div>
</Spin>
{total > LIMIT ?
<div className="edu-txt-center mt20 mb20">
<div className="edu-txt-center mt20 pb20">
<Pagination
showQuickJumper
simple
pageSize={LIMIT}
current={page}
total={total}
onChange={()=>setPage(page)}
onChange={(page)=>setPage(page)}
></Pagination>
</div>
:""}