Commit e172ecfc authored by liwenhong's avatar liwenhong

fix: 团长分页

parent d181c7c3
......@@ -37,7 +37,7 @@
background
layout="prev, pager, next"
:total="applyPageCount"
:page-size="10"
:page-size="20"
v-model:currentPage="currentApplyPage"
@current-change="handleCurrentApplyChange"
></el-pagination>
......@@ -145,7 +145,7 @@
background
layout="prev, pager, next"
:total="pageCount"
:page-size="10"
:page-size="20"
v-model:currentPage="currentPage"
@current-change="handleCurrentChange"
></el-pagination>
......@@ -177,6 +177,10 @@
applyPageCount: 0, // 总条数
coloneList: [],
coloneApplyList: [],
applypParams: {
page: 1,
page_size: 20,
},
params: {
page: 1,
page_size: 20,
......@@ -203,10 +207,12 @@
methods: {
handleCurrentApplyChange(val) {
this.currentApplyPage = val;
this.applypParams.page = val;
this.getColoneApplyList();
},
handleCurrentChange(val) {
this.currentPage = val;
this.params.page = val;
this.getColoneList();
},
handleSearch() {
......@@ -257,7 +263,7 @@
},
async getColoneApplyList() {
try {
const res = await ColoneApplyList(this.params);
const res = await ColoneApplyList(this.applypParams);
this.applyPageCount = res.count;
if (res.code !== 0) return this.$message.error(res.reason);
this.coloneApplyList = res.result;
......
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