mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
feat:学员小组管理,添加小组分页
This commit is contained in:
@@ -897,6 +897,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
</div>
|
</div>
|
||||||
@@ -2561,6 +2574,7 @@ export default {
|
|||||||
groupInfo: { leaderName: "", leaderId: "" }, //创建小组
|
groupInfo: { leaderName: "", leaderId: "" }, //创建小组
|
||||||
groupMemberCountContrast: null,
|
groupMemberCountContrast: null,
|
||||||
groupPageList: [], //小组列表
|
groupPageList: [], //小组列表
|
||||||
|
groupTotal: 0,
|
||||||
groupNumber: 0, //组员人数
|
groupNumber: 0, //组员人数
|
||||||
valuestun: "", //学员管理姓名
|
valuestun: "", //学员管理姓名
|
||||||
valuegood: "",
|
valuegood: "",
|
||||||
@@ -4020,9 +4034,15 @@ export default {
|
|||||||
};
|
};
|
||||||
getGroupList(objf).then((res) => {
|
getGroupList(objf).then((res) => {
|
||||||
state.groupPageList = res.data.data.rows;
|
state.groupPageList = res.data.data.rows;
|
||||||
|
state.groupTotal = res.data.data.total;
|
||||||
setGroupList(res.data.data.rows);
|
setGroupList(res.data.data.rows);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
//分页
|
||||||
|
const changePagination = (page) => {
|
||||||
|
state.currentPageStu = page;
|
||||||
|
getGroup();
|
||||||
|
};
|
||||||
//删除小组
|
//删除小组
|
||||||
const deleteGroupBtn = (projectGroupId) => {
|
const deleteGroupBtn = (projectGroupId) => {
|
||||||
deleteGroup({ projectGroupId }).then(() => {
|
deleteGroup({ projectGroupId }).then(() => {
|
||||||
@@ -5000,6 +5020,7 @@ export default {
|
|||||||
jdSelectChange1,
|
jdSelectChange1,
|
||||||
studytimeRank,
|
studytimeRank,
|
||||||
xsSelectChange,
|
xsSelectChange,
|
||||||
|
changePagination
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user