From 9903954c85f651dd5cc6d4b538cfe66b17fc5baa Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 28 十月 2026 18:23:45 +0800
Subject: [PATCH] 提交

---
 src/components/StatisticsCards/index.vue |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/components/StatisticsCards/index.vue b/src/components/StatisticsCards/index.vue
index 1b45c11..3f072b2 100644
--- a/src/components/StatisticsCards/index.vue
+++ b/src/components/StatisticsCards/index.vue
@@ -17,10 +17,14 @@
         >
           <el-card
             shadow="hover"
-            :body-style="item.router ? 'cursor: pointer' : 'cursor: default'"
+            :body-style="isClickable(item) ? 'cursor: pointer' : 'cursor: default'"
             :class="getCardClass(item.name)"
+            @click.native="handleCardClick(item)"
           >
-            <div class="card-content" @click="handleCardClick(item)">
+            <div
+              class="card-content"
+              :style="{ cursor: isClickable(item) ? 'pointer' : 'default' }"
+            >
               <div class="card-label">
                 <span class="label-text">{{ item.name }}</span>
               </div>
@@ -64,6 +68,11 @@
       default: 0,
     },
     showWarningCondition: {
+      type: Boolean,
+      default: false,
+    },
+    // 鏄惁鍏佽鐐瑰嚮鍗$墖锛堢偣鍑诲悗鐢辩埗缁勪欢鍐冲畾濡備綍绛涢�変笅闈㈢殑鍒楄〃锛�
+    clickable: {
       type: Boolean,
       default: false,
     },
@@ -135,6 +144,9 @@
       return tooltips[name] || "";
     },
 
+    isClickable(item) {
+      return !!(item && item.router) || this.clickable;
+    },
     handleCardClick(item) {
       if (item.router) {
         this.$router.push(item.router);

--
Gitblit v1.9.3