From 700f9d0da314a4ea701fe9f68d305b67d72ec5fb Mon Sep 17 00:00:00 2001
From: longz <longzhaoz@qq.com>
Date: 星期三, 08 七月 2026 15:08:37 +0800
Subject: [PATCH] 各类修复fix

---
 frontend-admin/src/views/DashboardView.vue |   28 ++++------------------------
 1 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/frontend-admin/src/views/DashboardView.vue b/frontend-admin/src/views/DashboardView.vue
index 1063476..c9e42ab 100644
--- a/frontend-admin/src/views/DashboardView.vue
+++ b/frontend-admin/src/views/DashboardView.vue
@@ -3,20 +3,6 @@
     <section class="panel overview-panel" v-loading="overviewLoading">
       <div class="section-head">
         <div class="section-title">数据总览</div>
-        <div class="filters">
-          <el-date-picker
-            v-model="overviewDateRange"
-            class="range-picker"
-            type="daterange"
-            unlink-panels
-            range-separator="至"
-            start-placeholder="开始日期"
-            end-placeholder="结束日期"
-            value-format="YYYY-MM-DD"
-            :clearable="false"
-            @change="loadOverview"
-          />
-        </div>
       </div>
 
       <div class="summary-grid">
@@ -180,13 +166,12 @@
 const lineChartRef = ref<HTMLElement | null>(null);
 let lineChartInstance: ECharts | null = null;
 
-const overviewDateRange = ref<[string, string]>(getCurrentWeekRange());
 const chartDateRange = ref<[string, string]>(getCurrentWeekRange());
 
 const overview = ref<DashboardOverview>({
-  startDate: overviewDateRange.value[0],
-  endDate: overviewDateRange.value[1],
-  dailyDate: overviewDateRange.value[1],
+  startDate: "",
+  endDate: "",
+  dailyDate: formatDate(new Date()),
   dailyAppointmentCount: 0,
   totalAppointmentCount: 0,
   registeredUserCount: 0,
@@ -360,12 +345,7 @@
 async function loadOverview() {
   overviewLoading.value = true;
   try {
-    const { data } = await http.get("/dashboard/overview", {
-      params: {
-        startDate: overviewDateRange.value?.[0],
-        endDate: overviewDateRange.value?.[1],
-      },
-    });
+    const { data } = await http.get("/dashboard/overview");
     overview.value = {
       ...overview.value,
       ...(data.result || {}),

--
Gitblit v1.7.1