Commit 474e4af3 by caoyanzhi

update: 分页器

parent e80f754b
......@@ -332,6 +332,23 @@ export default {
this.pageNum1 = 1;
this.getIntefralInfo();
},
handleSizeChange(pageSize) {
if (this.activeName == 'first') {
this.pageSize = pageSize;
} else if (this.activeName == 'second') {
this.pageSize1 = pageSize;
}
this.handleCurrentChange(1);
},
handleCurrentChange(pageNum) {
if (this.activeName == 'first') {
this.pageNum = pageNum;
this.getPointInfo();
} else if (this.activeName == 'second') {
this.pageNum1 = pageNum;
this.getIntefralInfo();
}
},
// 新增
handleAdd(flag) {
if (!this.tpnEditBool) {
......@@ -395,6 +412,8 @@ export default {
let param = {
requestProject: that.projectName,
keyword: that.keywords,
currPage: this.pageNum,
pageSize: this.pageSize,
strategyType: 1
};
// postRequest('/api-admin/get-member-integral-setting', param)
......@@ -423,8 +442,6 @@ export default {
// 6月迭代抖音修改
that.totalCount = resData.result.totalCount;
that.pageSize = resData.result.pageSize;
that.pageNum = resData.result.pageNum;
that.achieveTableData = resData.result.result;
that.achieveTableData.forEach((ele,index)=>{
ele.integralGet = JSON.parse(ele.integralGet);
......@@ -444,6 +461,8 @@ export default {
var params = {
requestProject: that.projectName,
keyword: that.keywords1,
currPage: this.pageNum1,
pageSize: this.pageSize1,
strategyType: 2
}
postRequest('/api-admin/query-integral-setting',params)
......@@ -453,8 +472,6 @@ export default {
if (resData.errorCode == 0) {
// 6月迭代修改
that.totalCount1 = resData.result.totalCount;
that.pageSize1 = resData.result.pageSize;
that.pageNum1 = resData.result.pageNum;
that.exchangeTableData = resData.result.result;
that.exchangeTableData.forEach((ele,index)=>{
ele.integralGet = JSON.parse(ele.integralGet);
......
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