diff --git a/pages/workSpace/operation/operationList.vue b/pages/workSpace/operation/operationList.vue index fe252e6..36d10f4 100644 --- a/pages/workSpace/operation/operationList.vue +++ b/pages/workSpace/operation/operationList.vue @@ -77,8 +77,8 @@ return { params: { search: '', - pageSize: 10, - pageNum: 1, + page_size: 10, + page: 1, create_by: '' }, totalNum: 0, @@ -96,9 +96,9 @@ }, //上拉加载 onReachBottom() { - const totalPage = Math.ceil(this.totalNum / this.params.pageSize); - if (this.params.pageNum < totalPage) { - this.params.pageNum += 1; + const totalPage = Math.ceil(this.totalNum / this.params.page_size); + if (this.params.page < totalPage) { + this.params.page += 1; } else { uni.showToast({ @@ -117,7 +117,7 @@ }, //下拉刷新 onPullDownRefresh() { - this.params.pageNum = 1; + this.params.page = 1; this.lists = []; this.getLists(); }, @@ -173,12 +173,12 @@ }) }, searchHandle() { - this.params.pageNum = 1; + this.params.page = 1; this.lists = []; this.getLists() }, resetSearch() { - this.params.pageNum = 1; + this.params.page = 1; this.params.search = ""; this.lists = []; this.getLists();