From 272240fc1e5f2a82c1a13519cd5e6f0faf0ccb08 Mon Sep 17 00:00:00 2001 From: zhanchao Date: Mon, 14 Sep 2026 16:50:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=8A=9E=E5=88=97=E8=A1=A8=EF=BC=9A?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E6=98=BE=E7=A4=BA=E7=9A=8410=E6=9D=A1?= =?UTF-8?q?=E5=BE=85=E5=8A=9E=E6=95=B0=E6=8D=AE=E3=80=82=E9=87=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E6=82=A3=E8=80=85=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/work-home.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pages/home/work-home.vue b/pages/home/work-home.vue index 3424ac7..1cd1dcb 100644 --- a/pages/home/work-home.vue +++ b/pages/home/work-home.vue @@ -176,7 +176,9 @@ const filtered = ref(false); const filterVisible = ref(false); const filterData = ref({ eventStatus: 'processing' }); const followUpType = ref('person') // person team -const { total, list, loading, page, pages, pageSize, changePage } = usePageList(getList) +const { total, list, loading, page, pages, pageSize, changePage } = usePageList(getList, { + pageSize: 20 +}) let queryVersion = 0; const certStatus = computed(() => doctorInfo.value?.verifyStatus ? certConfig[doctorInfo.value.verifyStatus] : null) @@ -279,8 +281,8 @@ async function getList() { corpId: account.value.corpId, startDate: filterData.value.startDate, endDate: filterData.value.endDate, - page: page.value, - pageSize: 4 + page: requestPage, + pageSize: pageSize.value } if (followUpType.value === 'person') { data.executorUserId = doctorInfo.value.userid; @@ -305,7 +307,13 @@ async function getList() { fileList: Array.isArray(i.fileList) ? i.fileList.filter(i => i && i.file && i.file.name) : [], ownTeam: followUpType.value === 'team' })) : []; - list.value = requestPage === 1 ? arr : [...list.value, ...arr]; + if (requestPage === 1) { + list.value = arr; + } else { + const existingIds = new Set(list.value.map(item => item._id).filter(Boolean)); + const newItems = arr.filter(item => !item._id || !existingIds.has(item._id)); + list.value = [...list.value, ...newItems]; + } total.value = res && res.total > 0 ? res.total : 0; pages.value = res && res.pages > 0 ? res.pages : 0; if (!res || !res.success) {