From 8f89ea3f5dab449e24047f743859f9175b817d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=9F=91=E8=9E=82?= Date: Tue, 14 Apr 2026 18:16:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=BA=97=E9=93=BA?= =?UTF-8?q?=E6=A6=82=E8=A7=88=E5=92=8C=E5=85=AC=E5=8F=B8=E6=A6=82=E8=A7=88?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=87=E9=A2=98=E6=98=BE=E7=A4=BA=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 店铺概览:显示「店铺经营概览(店铺名)」 - 公司概览:显示「公司经营概览(公司名)」 - 统一 title 显示风格 --- .../src/views/dashboard/company-overview/index.vue | 14 +++++++++----- .../src/views/ecommerce/shop/overview/index.vue | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/index.vue index 66b9b984..84983f27 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/index.vue @@ -56,7 +56,10 @@ const activeTimeRange = ref< >('30days'); // 自定义日期范围 -const customDateRange = ref<[dayjs.Dayjs, dayjs.Dayjs] | undefined>(undefined); +const customDateRange = ref<[dayjs.Dayjs, dayjs.Dayjs] | undefined>([ + dateRange.value[0], + dateRange.value[1], +]); const lastRequestKey = ref(''); const isSyncingRouteQuery = ref(false); @@ -96,6 +99,7 @@ const switchTimeRange = ( } dateRange.value = [startDate, endDate]; + customDateRange.value = [startDate, endDate]; }; // 自定义日期范围变化 @@ -133,25 +137,25 @@ const setTimeRangeTypeByDates = ( if (daysDiff === 0 && startDate.isSame(today, 'day')) { activeTimeRange.value = 'today'; - customDateRange.value = undefined; + customDateRange.value = [startDate, endDate]; return; } if (daysDiff === 0 && startDate.isSame(dayjs().subtract(1, 'day'), 'day')) { activeTimeRange.value = 'yesterday'; - customDateRange.value = undefined; + customDateRange.value = [startDate, endDate]; return; } if (isEndDateToday && isStartDate7DaysAgo) { activeTimeRange.value = '7days'; - customDateRange.value = undefined; + customDateRange.value = [startDate, endDate]; return; } if (isEndDateToday && isStartDate30DaysAgo) { activeTimeRange.value = '30days'; - customDateRange.value = undefined; + customDateRange.value = [startDate, endDate]; return; } diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/shop/overview/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/shop/overview/index.vue index aa31e61f..230996d2 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/shop/overview/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/shop/overview/index.vue @@ -54,7 +54,10 @@ const activeTimeRange = ref< >('7days'); // 自定义日期范围 -const customDateRange = ref<[dayjs.Dayjs, dayjs.Dayjs] | undefined>(undefined); +const customDateRange = ref<[dayjs.Dayjs, dayjs.Dayjs] | undefined>([ + dateRange.value[0], + dateRange.value[1], +]); const lastRequestKey = ref(''); const isSyncingRouteQuery = ref(false); @@ -94,6 +97,7 @@ const switchTimeRange = ( } dateRange.value = [startDate, endDate]; + customDateRange.value = [startDate, endDate]; }; // 自定义日期范围变化 @@ -130,25 +134,25 @@ const setTimeRangeTypeByDates = ( if (daysDiff === 0 && startDate.isSame(today, 'day')) { activeTimeRange.value = 'today'; - customDateRange.value = undefined; + customDateRange.value = [startDate, endDate]; return; } if (daysDiff === 0 && startDate.isSame(dayjs().subtract(1, 'day'), 'day')) { activeTimeRange.value = 'yesterday'; - customDateRange.value = undefined; + customDateRange.value = [startDate, endDate]; return; } if (isEndDateToday && isStartDate7DaysAgo) { activeTimeRange.value = '7days'; - customDateRange.value = undefined; + customDateRange.value = [startDate, endDate]; return; } if (isEndDateToday && isStartDate30DaysAgo) { activeTimeRange.value = '30days'; - customDateRange.value = undefined; + customDateRange.value = [startDate, endDate]; return; }