Commit e172ecfc authored by liwenhong's avatar liwenhong

fix: 团长分页

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