From f56d41d87f6b126812bd8eb08be9e662a2834871 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期五, 30 十月 2026 18:39:03 +0800
Subject: [PATCH] feat(dashboard): BI 看板新增出勤指标与库存采购,优化全看板自适应

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

diff --git a/src/views/dashboard/analytics/index.vue b/src/views/dashboard/analytics/index.vue
index 90988e2..a0792a0 100644
--- a/src/views/dashboard/analytics/index.vue
+++ b/src/views/dashboard/analytics/index.vue
@@ -13,6 +13,7 @@
 import AiInsights from './modules/ai-insights.vue';
 import AlertPanel from './modules/alert-panel.vue';
 import BizCards from './modules/biz-cards.vue';
+import HrStockCards from './modules/hr-stock-cards.vue';
 import KpiCards from './modules/kpi-cards.vue';
 import ProductionTrend from './modules/production-trend.vue';
 import QuickActions from './modules/quick-actions.vue';
@@ -58,7 +59,7 @@
 <template>
   <Page auto-content-height>
     <!-- 娆㈣繋鏍� -->
-    <div class="glass-card mb-6 flex items-center justify-between rounded-2xl p-6">
+    <div class="glass-card mb-6 flex flex-col gap-3 rounded-2xl p-5 sm:flex-row sm:items-center sm:justify-between sm:p-6">
       <div>
         <h1 class="bg-gradient-to-r from-blue-600 via-purple-600 to-pink-500 bg-clip-text text-2xl font-bold text-transparent dark:from-blue-400 dark:via-purple-400 dark:to-pink-400">
           {{ greeting }}锛屾杩庡洖鏉�
@@ -82,6 +83,9 @@
     <!-- ERP/WMS/BPM 缁忚惀 KPI -->
     <BizCards @navigate="handleNavigate" />
 
+    <!-- 鍑哄嫟鎸囨爣 + 搴撳瓨閲囪喘 -->
+    <HrStockCards class="mb-4 block" @navigate="handleNavigate" />
+
     <!-- AI 鏅鸿兘鍒嗘瀽 -->
     <AiInsights
       v-if="canViewHome && canNavigate('MesProWorkOrder') && isAiEnable()"
@@ -91,7 +95,7 @@
 
     <!-- 鐢熶骇瓒嬪娍 + 棰勮闈㈡澘 -->
     <Row v-if="canViewHome" :gutter="16" class="mb-4">
-      <Col :lg="14" :md="24" :sm="24" :xl="14" :xs="24" class="mb-4">
+      <Col :xs="24" :sm="24" :md="24" :lg="14" :xl="14" :xxl="14" 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澶╋級
@@ -99,7 +103,7 @@
           <ProductionTrend />
         </div>
       </Col>
-      <Col :lg="10" :md="24" :sm="24" :xl="10" :xs="24" class="mb-4">
+      <Col :xs="24" :sm="24" :md="24" :lg="10" :xl="10" :xxl="10" class="mb-4">
         <AlertPanel
           :repair-active-count="summary.repairActiveCount"
           @navigate="handleNavigate"

--
Gitblit v1.9.3