From 2f103e7b4e074237eab90ad6440f3730e0282126 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Mon, 25 Aug 2025 12:26:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/standardBox/acceptBox.vue | 8 ++++---- src/pages/standardBox/index.vue | 8 ++++---- src/pages/standardBox/transferBox.vue | 11 ++++++----- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/pages/standardBox/acceptBox.vue b/src/pages/standardBox/acceptBox.vue index ee9ca0b..d4d18b5 100644 --- a/src/pages/standardBox/acceptBox.vue +++ b/src/pages/standardBox/acceptBox.vue @@ -113,7 +113,7 @@ const queryParams = ref({ keyWord: '', // 关键字 status: 3, pageNum: 1, - pageSize: 5, + pageSize: 20, }) // 日期 change 事件 @@ -254,8 +254,8 @@ const getTableList = async (isTap = false) => { const unique = [] const seen = new Set() for (const item of merged) { - if (!seen.has(item.taskId)) { - seen.add(item.taskId) + if (!seen.has(item.boxId)) { + seen.add(item.boxId) unique.push(item) } } @@ -276,7 +276,7 @@ const getTableList = async (isTap = false) => { const onScrollTolower = debounce(() => { // 判断是否还有更多数据 if (tableList.value.length < total.value) { - queryParams.value.pageSize += 5 + queryParams.value.pageSize += 10 getTableList(false) } }, 500) diff --git a/src/pages/standardBox/index.vue b/src/pages/standardBox/index.vue index 9a461f0..be11001 100644 --- a/src/pages/standardBox/index.vue +++ b/src/pages/standardBox/index.vue @@ -125,7 +125,7 @@ const queryParams = ref({ keyWord: '', // 关键字 status: 1, pageNum: 1, - pageSize: 5, + pageSize: 20, }) // 初始化状态栏高度 @@ -222,8 +222,8 @@ const getTableList = async (isTap = false) => { const unique = [] const seen = new Set() for (const item of merged) { - if (!seen.has(item.taskId)) { - seen.add(item.taskId) + if (!seen.has(item.boxId)) { + seen.add(item.boxId) unique.push(item) } } @@ -244,7 +244,7 @@ const getTableList = async (isTap = false) => { const onScrollTolower = debounce(() => { // 判断是否还有更多数据 if (tableList.value.length < total.value) { - queryParams.value.pageSize += 5 + queryParams.value.pageSize += 10 getTableList(false) } }, 500) diff --git a/src/pages/standardBox/transferBox.vue b/src/pages/standardBox/transferBox.vue index 65d78ea..7b463fc 100644 --- a/src/pages/standardBox/transferBox.vue +++ b/src/pages/standardBox/transferBox.vue @@ -148,7 +148,7 @@ const queryParams = ref({ keyWord: '', // 关键字 status: [2,5], pageNum: 1, - pageSize: 5, + pageSize: 20, }) // 日期 change 事件 @@ -234,8 +234,8 @@ const getTableList = async (isTap = false) => { const unique = [] const seen = new Set() for (const item of merged) { - if (!seen.has(item.taskId)) { - seen.add(item.taskId) + if (!seen.has(item.boxId)) { + seen.add(item.boxId) unique.push(item) } } @@ -254,9 +254,10 @@ const getTableList = async (isTap = false) => { // 滚动触底事件 const onScrollTolower = debounce(() => { + console.log('滚动到底部') // 判断是否还有更多数据 if (tableList.value.length < total.value) { - queryParams.value.pageSize += 5 + queryParams.value.pageSize += 10 getTableList(false) } }, 500) @@ -376,7 +377,7 @@ const finish = computed(() => {