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 |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/src/components/StatisticsCards/index.vue b/src/components/StatisticsCards/index.vue
index 3f44f00..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>
@@ -67,6 +71,11 @@
       type: Boolean,
       default: false,
     },
+    // 鏄惁鍏佽鐐瑰嚮鍗$墖锛堢偣鍑诲悗鐢辩埗缁勪欢鍐冲畾濡備綍绛涢�変笅闈㈢殑鍒楄〃锛�
+    clickable: {
+      type: Boolean,
+      default: false,
+    },
   },
   computed: {
     mergedCardList() {
@@ -106,6 +115,11 @@
         闇�闅忚: "need-follow-card",
         寰呴殢璁�: "pending-card",
         宸插畬鎴�: "completed-card",
+        浣忛櫌鎬婚噺: "total-card",
+        闂ㄨ瘖鎬婚噺: "total-card",
+        鍙戦�佷换鍔¢噺: "need-follow-card",
+        寰呭畬鎴�: "pending-card",
+        瀹屾垚鐜�: "completed-card",
         寮傚父: "error-card",
         璀﹀憡: "warning-card",
       };
@@ -119,12 +133,20 @@
         闇�闅忚: "闇�闅忚 = 寰呴殢璁� + 宸插畬鎴�",
         寰呴殢璁�: "寰呴殢璁匡細绛夊緟杩涜闅忚鐨勬偅鑰呮暟閲�",
         宸插畬鎴�: "宸插畬鎴愶細宸插畬鎴愰殢璁跨殑鎮h�呮暟閲�",
+        浣忛櫌鎬婚噺: "浣忛櫌婊℃剰搴︽偅鑰呮�婚噺",
+        闂ㄨ瘖鎬婚噺: "闂ㄨ瘖婊℃剰搴︽偅鑰呮�婚噺",
+        鍙戦�佷换鍔¢噺: "鍙戦�佷换鍔¢噺 = 鎮h�呮湇鍔℃�婚噺",
+        寰呭畬鎴�: "寰呭畬鎴愶細寰呴殢璁跨殑鎮h�呮暟閲�",
+        瀹屾垚鐜�: "瀹屾垚鐜� = 宸插畬鎴� 梅 (寰呭畬鎴� + 宸插畬鎴�)",
         寮傚父: "寮傚父鏁版嵁缁熻",
         璀﹀憡: "璀﹀憡鏁版嵁缁熻",
       };
       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