From 056acd48b578391cecbc48c3c8df354a3998c18d Mon Sep 17 00:00:00 2001 From: "2358328281@qq.com" <邮箱地址> Date: Tue, 7 Jul 2026 10:07:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=9D=E5=88=97=E8=A1=A8=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E9=BB=98=E8=AE=A4=E5=BD=93=E6=9C=88=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/admin/hospitals/service.vue | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/views/admin/hospitals/service.vue b/src/views/admin/hospitals/service.vue index 2504a02..f33978d 100644 --- a/src/views/admin/hospitals/service.vue +++ b/src/views/admin/hospitals/service.vue @@ -120,6 +120,12 @@ + + @@ -189,7 +195,7 @@ const hospitals = computed(() => hospitalStore.list); const filters = reactive({ keyword: undefined }); // 月份切换(用于服务操作按钮列对齐设计稿,实际不参与筛选) -const currentMonth = ref(dayjs()); +const currentMonth = ref(''); const currentMonthLabel = computed(() => currentMonth.value.format("YYYY年M月")); const prevMonth = () => { currentMonth.value = currentMonth.value.subtract(1, "month"); @@ -206,17 +212,20 @@ const formatExpiringDays = (n) => { const v = Number(n); return `${v}天`; }; +const total = ref(0); +const page = ref(1); +const pageSize = ref(10); const loadList = async () => { loading.value = true; try { const params = { - page: 1, - pageSize: 200, + page: page.value, + pageSize: pageSize.value, keyword: filters.keyword || undefined, category: filters.category || undefined, - year: currentMonth.value.year(), - month: currentMonth.value.month() + 1, + // year: currentMonth.value.year(), + // month: currentMonth.value.month() + 1, } if (dateRange.value?.length === 2) { params.maintenanceStart = dateRange.value[0]; @@ -224,6 +233,7 @@ const loadList = async () => { } const res = await getAdminMaintenance(params); list.value = res?.list || []; + total.value = res?.total || 0; } finally { loading.value = false; }