From 52d8fdefc85591abe9ee6c8cd382f91698013ebf Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期三, 14 十月 2026 11:01:59 +0800
Subject: [PATCH] feat(dashboard): 首页改为「人力资源+售后管理」模块入口

---
 src/views/dashboard/analytics/index.vue |   59 +++++++----------------------------------------------------
 1 files changed, 7 insertions(+), 52 deletions(-)

diff --git a/src/views/dashboard/analytics/index.vue b/src/views/dashboard/analytics/index.vue
index 13794de..4d25b15 100644
--- a/src/views/dashboard/analytics/index.vue
+++ b/src/views/dashboard/analytics/index.vue
@@ -1,25 +1,16 @@
 <script lang="ts" setup>
-import { computed, onMounted, ref } from 'vue';
+import { computed } from 'vue';
 import { useRouter } from 'vue-router';
 
 import { Page } from '@vben/common-ui';
 
-import { Card, Col, Row } from 'ant-design-vue';
-
-import { getHomeSummary } from '#/api/mes/home';
-
-import { defaultSummary } from './data';
-import AiInsights from './modules/ai-insights.vue';
-import AlertPanel from './modules/alert-panel.vue';
 import BizCards from './modules/biz-cards.vue';
 import KpiCards from './modules/kpi-cards.vue';
-import ProductionTrend from './modules/production-trend.vue';
 import QuickActions from './modules/quick-actions.vue';
 
 defineOptions({ name: 'DashboardAnalytics' });
 
 const router = useRouter();
-const summary = ref(defaultSummary);
 
 const greeting = computed(() => {
   const hour = new Date().getHours();
@@ -37,17 +28,9 @@
   return `${d.getFullYear()}骞�${d.getMonth() + 1}鏈�${d.getDate()}鏃� 鏄熸湡${weekNames[d.getDay()]}`;
 });
 
-function handleNavigate(name: string) {
-  router.push({ name });
+function handleNavigate(path: string) {
+  router.push(path);
 }
-
-async function loadSummary() {
-  summary.value = await getHomeSummary();
-}
-
-onMounted(() => {
-  loadSummary();
-});
 </script>
 
 <template>
@@ -71,42 +54,14 @@
       </div>
     </div>
 
-    <!-- MES 鐢熶骇 KPI -->
-    <KpiCards :summary="summary" @navigate="handleNavigate" />
+    <!-- 浜哄姏璧勬簮妯″潡 -->
+    <KpiCards @navigate="handleNavigate" />
 
-    <!-- ERP/WMS/BPM 缁忚惀 KPI -->
+    <!-- 鍞悗绠$悊妯″潡 -->
     <BizCards @navigate="handleNavigate" />
 
-    <!-- AI 鏅鸿兘鍒嗘瀽 -->
-    <AiInsights
-      :active-order-count="summary.workOrderActiveCount"
-      @navigate="handleNavigate"
-    />
-
-    <!-- 鐢熶骇瓒嬪娍 + 棰勮闈㈡澘 -->
-    <Row :gutter="16" class="mb-4">
-      <Col :lg="14" :md="24" :sm="24" :xl="14" :xs="24" class="mb-4">
-        <div class="glass-card rounded-2xl p-5">
-          <h3 class="mb-4 text-base font-semibold text-gray-800 dark:text-gray-100">
-            鐢熶骇瓒嬪娍锛堣繎7澶╋級
-          </h3>
-          <ProductionTrend />
-        </div>
-      </Col>
-      <Col :lg="10" :md="24" :sm="24" :xl="10" :xs="24" class="mb-4">
-        <AlertPanel
-          :repair-active-count="summary.repairActiveCount"
-          @navigate="handleNavigate"
-        />
-      </Col>
-    </Row>
-
     <!-- 蹇嵎鎿嶄綔 -->
-    <Row :gutter="16" class="mb-4">
-      <Col :span="24">
-        <QuickActions @navigate="handleNavigate" />
-      </Col>
-    </Row>
+    <QuickActions @navigate="handleNavigate" />
   </Page>
 </template>
 

--
Gitblit v1.9.3