mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
feat:学员小组管理,添加小组分页
This commit is contained in:
@@ -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
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user