feat:学员小组管理,添加小组分页

This commit is contained in:
wyx
2023-03-27 14:53:07 +08:00
parent feb2998cf2
commit 87f52b31fb

View File

@@ -897,6 +897,19 @@
</div>
</div>
</div>
<!-- 小组列表分页 -->
<div style="width: 100%;display:flex;justify-content:center;align-items:center;margin-top: 12px;">
<a-pagination
:showSizeChanger="false"
showQuickJumper="true"
hideOnSinglePage="true"
:pageSize="stupageSize"
:current="currentPageStu"
:total="groupTotal"
class="pagination"
@change="changePagination"
/>
</div>
</a-tab-pane>
</a-tabs>
</div>
@@ -2561,6 +2574,7 @@ export default {
groupInfo: { leaderName: "", leaderId: "" }, //创建小组
groupMemberCountContrast: null,
groupPageList: [], //小组列表
groupTotal: 0,
groupNumber: 0, //组员人数
valuestun: "", //学员管理姓名
valuegood: "",
@@ -4020,9 +4034,15 @@ export default {
};
getGroupList(objf).then((res) => {
state.groupPageList = res.data.data.rows;
state.groupTotal = res.data.data.total;
setGroupList(res.data.data.rows);
});
};
//分页
const changePagination = (page) => {
state.currentPageStu = page;
getGroup();
};
//删除小组
const deleteGroupBtn = (projectGroupId) => {
deleteGroup({ projectGroupId }).then(() => {
@@ -5000,6 +5020,7 @@ export default {
jdSelectChange1,
studytimeRank,
xsSelectChange,
changePagination
};
},
};