分页问题修复
This commit is contained in:
parent
25cd0d0fe9
commit
6b46bf6c81
|
|
@ -121,6 +121,7 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
loadBasicData() {
|
loadBasicData() {
|
||||||
|
this.pageNum = this.$globalData.initPageNum;
|
||||||
this.pageSize = this.$globalData.initPageSize;
|
this.pageSize = this.$globalData.initPageSize;
|
||||||
this.curUserInfo = this.$request.getCurUserInfo();
|
this.curUserInfo = this.$request.getCurUserInfo();
|
||||||
},
|
},
|
||||||
|
|
@ -131,7 +132,7 @@
|
||||||
this.loadTeamPage();
|
this.loadTeamPage();
|
||||||
},
|
},
|
||||||
async reloadData() {
|
async reloadData() {
|
||||||
this.pageNum = 0;
|
this.loadBasicData();
|
||||||
this.members = [];
|
this.members = [];
|
||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
|
|
@ -147,7 +148,8 @@
|
||||||
this.members = this.members.concat(res.rows);
|
this.members = this.members.concat(res.rows);
|
||||||
this.pageNum++;
|
this.pageNum++;
|
||||||
if (rowsLength === this.pageSize) {
|
if (rowsLength === this.pageSize) {
|
||||||
this.$refs.loadStatusBar.showLoadMore();
|
this.$refs.loadStatusBar.showLoadMore();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.$refs.loadStatusBar.showLoadOver();
|
this.$refs.loadStatusBar.showLoadOver();
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,7 @@
|
||||||
tabCur: 0,
|
tabCur: 0,
|
||||||
scrollLeft: 0,
|
scrollLeft: 0,
|
||||||
stickyTop: this.CustomBar,
|
stickyTop: this.CustomBar,
|
||||||
pageNum: 0,
|
pageNum: 1,
|
||||||
pageSize: 0,
|
pageSize: 0,
|
||||||
// type: 0=升降序,1=功能按钮;order: 0=升序,1=降序;
|
// type: 0=升降序,1=功能按钮;order: 0=升序,1=降序;
|
||||||
taskConditions: [{
|
taskConditions: [{
|
||||||
|
|
@ -324,9 +324,7 @@
|
||||||
let res = await this.$request.qryMasterOrderPage(params);
|
let res = await this.$request.qryMasterOrderPage(params);
|
||||||
if (res && res.rows) {
|
if (res && res.rows) {
|
||||||
let rowsLength = res.rows.length;
|
let rowsLength = res.rows.length;
|
||||||
if (rowsLength === 0) {
|
if (rowsLength > 0) {
|
||||||
this.tasks = [];
|
|
||||||
} else if (rowsLength > 0) {
|
|
||||||
this.tasks = this.tasks.concat(res.rows);
|
this.tasks = this.tasks.concat(res.rows);
|
||||||
// this.pageParams[this.tabCur].pageNum++;
|
// this.pageParams[this.tabCur].pageNum++;
|
||||||
this.pageNum++;
|
this.pageNum++;
|
||||||
|
|
@ -343,7 +341,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
reloadMasterOrderPage(params = {}) {
|
reloadMasterOrderPage(params = {}) {
|
||||||
this.pageNum = 0;
|
this.pageNum = 1;
|
||||||
this.tasks = [];
|
this.tasks = [];
|
||||||
this.$refs.loadStatusBar.showLoadMore();
|
this.$refs.loadStatusBar.showLoadMore();
|
||||||
this.loadMasterOrderPage(params);
|
this.loadMasterOrderPage(params);
|
||||||
|
|
|
||||||
|
|
@ -161,11 +161,13 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadData() {
|
loadData() {
|
||||||
|
this.pageNum = this.$globalData.initPageNum;
|
||||||
this.pageSize = this.$globalData.initPageSize;
|
this.pageSize = this.$globalData.initPageSize;
|
||||||
this.loadProductPage();
|
this.loadProductPage();
|
||||||
},
|
},
|
||||||
resetData() {
|
resetData() {
|
||||||
this.pageNum = 0;
|
this.pageNum = this.$globalData.initPageNum;
|
||||||
|
this.pageSize = this.$globalData.initPageSize;
|
||||||
this.goodsList = [];
|
this.goodsList = [];
|
||||||
},
|
},
|
||||||
reloadData() {
|
reloadData() {
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,7 @@
|
||||||
myOrders: {},
|
myOrders: {},
|
||||||
orderList: [],
|
orderList: [],
|
||||||
// pageParams: [],
|
// pageParams: [],
|
||||||
pageNum: 0,
|
pageNum: 1,
|
||||||
pageSize: 0,
|
pageSize: 0,
|
||||||
curOrder: {},
|
curOrder: {},
|
||||||
myTeamMembers: [],
|
myTeamMembers: [],
|
||||||
|
|
@ -369,7 +369,7 @@
|
||||||
// pageNum: 0
|
// pageNum: 0
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
this.pageNum = 0;
|
this.pageNum = 1;
|
||||||
this.orderList = [];
|
this.orderList = [];
|
||||||
this.$refs.loadStatusBar.showLoadMore();
|
this.$refs.loadStatusBar.showLoadMore();
|
||||||
this.loadMasterOrderPage();
|
this.loadMasterOrderPage();
|
||||||
|
|
@ -398,9 +398,7 @@
|
||||||
}
|
}
|
||||||
if (res && res.rows) {
|
if (res && res.rows) {
|
||||||
let rowsLength = res.rows.length;
|
let rowsLength = res.rows.length;
|
||||||
if (rowsLength === 0) {
|
if (rowsLength > 0) {
|
||||||
this.orderList = [];
|
|
||||||
} else if (rowsLength > 0) {
|
|
||||||
this.orderList = this.orderList.concat(res.rows);
|
this.orderList = this.orderList.concat(res.rows);
|
||||||
// this.pageParams[this.tabCur].pageNum++;
|
// this.pageParams[this.tabCur].pageNum++;
|
||||||
this.pageNum++;
|
this.pageNum++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue