From fb34ba28cb908bd328cf6690ab0b19a56428f4e2 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 13 十一月 2026 10:56:55 +0800
Subject: [PATCH] 测试完成

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

diff --git a/src/components/StatisticsCards/index.vue b/src/components/StatisticsCards/index.vue
index 3f44f00..8365c09 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() {
@@ -105,7 +114,13 @@
         鏃犻渶闅忚: "no-follow-card",
         闇�闅忚: "need-follow-card",
         寰呴殢璁�: "pending-card",
+        鍙戦�佸け璐�: "failed-card",
         宸插畬鎴�: "completed-card",
+        浣忛櫌鎬婚噺: "total-card",
+        闂ㄨ瘖鎬婚噺: "total-card",
+        鍙戦�佷换鍔¢噺: "need-follow-card",
+        寰呭畬鎴�: "pending-card",
+        瀹屾垚鐜�: "completed-card",
         寮傚父: "error-card",
         璀﹀憡: "warning-card",
       };
@@ -119,12 +134,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);
@@ -233,6 +256,15 @@
 }
 
 /* 寮傚父 - 娴呯孩鑹� */
+/* 鍙戦�佸け璐� - 娴呯孩 */
+.failed-card .el-card__body {
+  background: #ffeaea;
+  border-radius: 10px;
+}
+.failed-card .card-value {
+  color: #e04040;
+}
+
 .error-card .el-card__body {
   background: #fce4ec;
   border-radius: 10px;

--
Gitblit v1.9.3