- {{ item.summary }} -
- --
From f5e75b745fd875d37d1252aaee3ce899c6ab5927 Mon Sep 17 00:00:00 2001 From: Cxx0822 <1556464090@qq.com> Date: Mon, 17 Nov 2025 19:58:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=9D=A1=E7=9C=A0=E6=97=B6=E9=97=B4=E7=9B=91?= =?UTF-8?q?=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Bill/BillChart.vue | 5 +- src/components/Health/HealthChart.vue | 45 +++++- src/components/Health/HealthForm.vue | 45 +++++- src/store/health.ts | 6 + src/types/health.ts | 3 + src/views/blog/archive.vue | 60 -------- src/views/blog/category.vue | 44 ------ src/views/blog/category[name].vue | 41 ----- src/views/blog/detail[id].vue | 55 ------- src/views/blog/overview.vue | 76 ---------- src/views/home/index.vue | 8 - src/views/meta.ts | 68 ++------- src/views/plan/calendar.vue | 23 --- src/views/plan/detail[id].vue | 210 -------------------------- src/views/plan/list.vue | 30 ---- 15 files changed, 108 insertions(+), 611 deletions(-) delete mode 100644 src/views/blog/archive.vue delete mode 100644 src/views/blog/category.vue delete mode 100644 src/views/blog/category[name].vue delete mode 100644 src/views/blog/detail[id].vue delete mode 100644 src/views/blog/overview.vue delete mode 100644 src/views/plan/calendar.vue delete mode 100644 src/views/plan/detail[id].vue delete mode 100644 src/views/plan/list.vue diff --git a/src/components/Bill/BillChart.vue b/src/components/Bill/BillChart.vue index 94e8cc4..b88eb9a 100644 --- a/src/components/Bill/BillChart.vue +++ b/src/components/Bill/BillChart.vue @@ -42,6 +42,7 @@ import { lineChartOptions, barChartOptions, pieChartOptions } from 'vue3-common/ import { useBillStore } from '@/store/bill.ts' import { useAppStore } from '@/store/app.ts' import { isMobile } from 'vue3-common/utils/layoutUtil' +import { formatDate } from 'vue3-common/utils/dateUtil' const billStore = useBillStore() const appStore = useAppStore() @@ -68,7 +69,9 @@ const updateChart = () => { const MAX_CATEGORY_COUNT = 5 // 收支统计图 - const dailyXAxis = billStore.billDateStatsList.map((item) => item.name) + const dailyXAxis = billStore.billDateStatsList.map((item) => { + return formatDate(item.name, 'MM-DD') + }) const dailyYAxis = billStore.billDateStatsList.map((item) => item.value) billDailyChart.setOption(lineChartOptions('日期', dailyXAxis, '金额(元)', dailyYAxis)) billDailyChart.setOption({ diff --git a/src/components/Health/HealthChart.vue b/src/components/Health/HealthChart.vue index 2b06183..a4b039d 100644 --- a/src/components/Health/HealthChart.vue +++ b/src/components/Health/HealthChart.vue @@ -9,6 +9,13 @@
+- {{ item.summary }} -
- -