Commit 896a00f9 by zhangleyuan

feat:处理数据显示分页的问题

parent 34623b90
......@@ -17,7 +17,7 @@ const { Search } = Input;
const { confirm } = Modal;
const DefaultQuery = {
size: 10,
current: 1,
current:1,
};
function DepartMentTabCon(props) {
const [chooseMembersModalVisible, setChooseMembersModalVisible] = useState(
......@@ -360,12 +360,12 @@ function DepartMentTabCon(props) {
/>
<div className="box-footer">
<PageControl
current={query.current}
current={query.current - 1}
pageSize={query.size}
total={total}
toPage={(page) => {
const queryStates = _.clone(query);
queryStates.current = page;
queryStates.current = page + 1;
setQuery(queryStates);
getUserList(null,null,queryStates.current);
}}
......
......@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Date: 2020-11-27 15:06:31
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-08-02 16:35:20
* @LastEditTime: 2021-08-05 10:26:25
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -178,7 +178,7 @@ function PersonalInfoPage() {
<div>
<span className="label">所在部门:</span>
{departmentList.map((item,index)=>{
return <span>{item}{index<departmentList.length-1?'、':''}</span>
return <span><WWOpenDataCom type="departmentName" openid={item}/>{index<departmentList.length-1?'、':''}</span>
})}
</div>
<div className="save-btn">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment