Procházet zdrojové kódy

fix(web): 工作台入口/返回路由修正 + CF卡降为静态展示(评审修复)

Xiaogang Liao před 2 dny
rodič
revize
b4d3f8beeb

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-0ac063c1bd41eecfa4ad48ced8a431838e1a3c9e
+51956b63cbd7f2855ed77d370964ac5e0e344448

+ 1 - 1
cfc-web/package.json

@@ -1,6 +1,6 @@
 {
   "name": "cfc-web",
-  "version": "1.0.2430",
+  "version": "1.0.2431",
   "private": true,
   "scripts": {
     "dev": "vue-cli-service serve",

+ 6 - 0
cfc-web/public/CHANGELOG-v1.0.md

@@ -4,6 +4,12 @@
 
 ---
 
+## v1.0.2431 (2026-11-13)
+
+### 新功能
+- 单家庭工作台页面(6卡+趋势+钻取)
+
+
 ## v1.0.2430 (2026-11-13)
 
 ### 新功能

+ 7 - 1
cfc-web/public/CHANGELOG.md

@@ -1,6 +1,6 @@
 # 更新日志
 
-> 当前版本: v1.0.2430
+> 当前版本: v1.0.2431
 
 ## 历史版本
 
@@ -8,6 +8,12 @@
 
 ---
 
+## v1.0.2431 (2026-11-13)
+
+### 新功能
+- 单家庭工作台页面(6卡+趋势+钻取)
+
+
 ## v1.0.2430 (2026-11-13)
 
 ### 新功能

+ 1 - 1
cfc-web/src/views/Families.vue

@@ -615,7 +615,7 @@ export default {
       }
     },
     goWorkbench(row) {
-      this.$router.push({ path: '/admin/families/' + row.id + '/workbench' })
+      this.$router.push({ path: '/families/' + row.id + '/workbench' })
     },
     async loadFamilies() {
       this.loading = true

+ 8 - 2
cfc-web/src/views/FamilyWorkbench.vue

@@ -10,7 +10,7 @@
 
     <el-row :gutter="16">
       <el-col v-for="(card, idx) in cards" :key="card.key" :span="8" class="wb-col">
-        <div class="wb-card" :class="cardClass(card.key)" @click="openModule(card.key)">
+        <div class="wb-card" :class="cardStaticClass(card.key)" @click="openModule(card.key)">
           <div class="wb-card-label">{{ card.label }}</div>
           <div class="wb-card-total">{{ card.total }}</div>
           <div class="wb-card-chart" :ref="chartRef(idx)"></div>
@@ -202,7 +202,7 @@ export default {
   },
   methods: {
     goBack() {
-      this.$router.push("/admin/families")
+      this.$router.push("/families")
     },
     async loadWorkbench() {
       this.loading = true
@@ -219,6 +219,9 @@ export default {
         this.loading = false
       }
     },
+    cardStaticClass(key) {
+      return key === "cf" ? "wb-card-static" : ""
+    },
     cardClass(key) {
       return "wb-card-" + key
     },
@@ -243,6 +246,7 @@ export default {
       })
     },
     openModule(key) {
+      if (key === "cf") return
       this.activeModule = key
       if (key === "tasks") {
         this.taskDrawerVisible = true
@@ -371,6 +375,8 @@ export default {
 .wb-col { margin-bottom: 0; }
 .wb-card { background: #fff; border-radius: 8px; padding: 14px 16px 8px; margin-bottom: 16px; cursor: pointer; border: 1px solid #ebeef5; transition: box-shadow 0.2s; }
 .wb-card:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
+.wb-card-static { cursor: default; }
+.wb-card-static:hover { box-shadow: none; }
 .wb-card-label { font-size: 13px; color: var(--adm-text-65); }
 .wb-card-total { font-size: 28px; font-weight: 600; color: var(--adm-text-88); margin: 4px 0 6px; }
 .wb-card-chart { height: 48px; }