From f185f3336e8a1fe7cb88d435ea9868d1661f675d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 4 Apr 2023 22:59:38 +0800 Subject: [PATCH] fix: opl list --- pages/workSpace/operation/operationList.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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();