Browse Source

feat(web): 重构家庭工作台为左侧导航工作台布局

- 删除 8 张统计卡/收起开关/卡片图表逻辑与 5 个列表抽屉
- 新增 .wb-shell 骨架、52px KPI 条、左导航、activeModule 单一导航源
- 报告代传/CF 流水/消息两级搬入面板,任务与方案表单改 520px 抽屉
- 曲线按模块挂 card.series,切换时 dispose/init
- 接入 family-workbench.tokens.css,Families.vue 与 6 个 panel 样式对齐
Administrator 1 hour ago
parent
commit
530e4e052a

+ 1 - 0
cfc-web/src/main.js

@@ -17,6 +17,7 @@ import {
 } from 'element-ui'
 import 'element-ui/lib/theme-chalk/index.css'
 import './styles/admin-tokens.css'
+import './styles/family-workbench.tokens.css'
 import './assets/css/sort.css'
 import { formatPrice, formatPriceWithSymbol, formatRate, formatScore, formatDateTime, formatDate } from './utils/format'
 

+ 17 - 16
cfc-web/src/views/Families.vue

@@ -760,25 +760,26 @@ export default {
 .pagination-right { margin-top: 24px; text-align: right; }
 .pagination-right-mt12 { margin-top: 12px; text-align: right; }
 
-/* 页头 */
-.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-shrink: 0; }
-.admin-page-title { font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--adm-text-88); }
-.admin-page-subtitle { font-size: 12px; color: var(--adm-text-45); margin-left: 12px; font-weight: 400; }
-.adm-card-header { font-weight: 500; color: var(--adm-text-88); }
+/* 页头:与家庭工作台 §2-§5 令牌对齐(仅样式,结构/行为不变) */
+.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); flex-shrink: 0; }
+.admin-page-title { font-size: var(--text-title); font-weight: var(--weight-semibold); line-height: var(--text-title-lh); color: var(--fg); }
+.admin-page-subtitle { font-size: var(--text-caption); line-height: var(--text-caption-lh); color: var(--fg-muted); margin-left: var(--space-3); font-weight: var(--weight-regular); }
+.adm-card-header { font-weight: var(--weight-medium); color: var(--fg); }
 
 /* ① 统计带 */
-.stat-band { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; flex-shrink: 0; }
+.stat-band { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); flex-shrink: 0; }
 .stat-card {
   flex: 1 1 150px; min-width: 150px;
-  background: var(--color-bg-card);
-  border: 1px solid var(--adm-border-split);
-  border-radius: var(--adm-radius-card);
-  padding: 14px 18px;
+  background: var(--surface);
+  border: 1px solid var(--border);
+  border-radius: var(--radius-card);
+  box-shadow: var(--shadow-card);
+  padding: var(--space-4);
 }
-.stat-card--primary { background: var(--adm-info-bg); border-color: var(--adm-info-border); }
-.stat-label { font-size: 12px; color: var(--adm-text-45); margin-bottom: 8px; }
-.stat-value { font-size: 24px; font-weight: 600; color: var(--adm-text-88); }
-.stat-value--primary { color: var(--adm-primary); }
+.stat-card--primary { background: var(--info-bg); border-color: var(--info-border); }
+.stat-label { font-size: var(--text-caption); line-height: var(--text-caption-lh); color: var(--fg-muted); margin-bottom: var(--space-2); }
+.stat-value { font-size: var(--text-kpi); line-height: var(--text-kpi-lh); font-weight: var(--weight-semibold); color: var(--fg); font-variant-numeric: tabular-nums; }
+.stat-value--primary { color: var(--primary); }
 
 /* ③ 检索栏 */
 .filter-bar {
@@ -787,8 +788,8 @@ export default {
   background: transparent; border-radius: 0; box-shadow: none;
   border-bottom: 1px solid var(--adm-border-split);
 }
-.range-sep { color: var(--adm-text-45); margin: 0 2px; }
+.range-sep { color: var(--fg-muted); margin: 0 2px; }
 
 /* ④ 批量操作条 */
-.batch-count { font-size: 12px; color: var(--adm-text-45); }
+.batch-count { font-size: var(--text-caption); line-height: var(--text-caption-lh); color: var(--fg-muted); }
 </style>

File diff suppressed because it is too large
+ 610 - 332
cfc-web/src/views/FamilyWorkbench.vue


+ 5 - 0
cfc-web/src/views/admin/ChildrenPanel.vue

@@ -294,6 +294,11 @@ export default {
 </script>
 
 <style scoped>
+/* 家庭工作台样式对齐(§9):表格密度 / 状态标签三件套 / 分页右下;不动 props 与接口 */
+::v-deep .el-table { font-size: var(--text-table); }
+::v-deep .el-table .cell { line-height: var(--text-table-lh); }
+::v-deep .el-tag { border-color: transparent; border-radius: var(--radius-sm); font-size: var(--text-caption); }
+::v-deep .el-pagination { text-align: right; }
 .form-mb20 { margin-bottom: 24px; }
 .table-full { width: 100%; }
 .pagination-right-20 { margin-top: 16px; text-align: right; }

+ 5 - 0
cfc-web/src/views/admin/FamilyCouponPanel.vue

@@ -257,6 +257,11 @@ export default {
 </script>
 
 <style scoped>
+/* 家庭工作台样式对齐(§9):表格密度 / 状态标签三件套 / 分页右下;不动 props 与接口 */
+::v-deep .el-table { font-size: var(--text-table); }
+::v-deep .el-table .cell { line-height: var(--text-table-lh); }
+::v-deep .el-tag { border-color: transparent; border-radius: var(--radius-sm); font-size: var(--text-caption); }
+::v-deep .el-pagination { text-align: right; }
 .mb-12 { margin-bottom: 12px; }
 .full-width { width: 100%; }
 .w-120 { width: 120px; }

+ 5 - 0
cfc-web/src/views/admin/FamilyEarningsPanel.vue

@@ -163,6 +163,11 @@ export default {
 </script>
 
 <style scoped>
+/* 家庭工作台样式对齐(§9):表格密度 / 状态标签三件套 / 分页右下;不动 props 与接口 */
+::v-deep .el-table { font-size: var(--text-table); }
+::v-deep .el-table .cell { line-height: var(--text-table-lh); }
+::v-deep .el-tag { border-color: transparent; border-radius: var(--radius-sm); font-size: var(--text-caption); }
+::v-deep .el-pagination { text-align: right; }
 .form-mb20 { margin-bottom: 24px; }
 .amount-orange { font-weight: bold; color: var(--adm-warning-text); }
 .amount-green { font-weight: bold; color: var(--adm-success); }

+ 5 - 0
cfc-web/src/views/admin/PointsPanel.vue

@@ -200,6 +200,11 @@ export default {
 </script>
 
 <style scoped>
+/* 家庭工作台样式对齐(§9):表格密度 / 状态标签三件套 / 分页右下;不动 props 与接口 */
+::v-deep .el-table { font-size: var(--text-table); }
+::v-deep .el-table .cell { line-height: var(--text-table-lh); }
+::v-deep .el-tag { border-color: transparent; border-radius: var(--radius-sm); font-size: var(--text-caption); }
+::v-deep .el-pagination { text-align: right; }
 .admin-page-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
 .adm-table-wrap { margin-bottom: 16px; }
 .detail-content { padding: 10px 0; }

+ 5 - 0
cfc-web/src/views/admin/RewardsPanel.vue

@@ -349,6 +349,11 @@ export default {
 </script>
 
 <style scoped>
+/* 家庭工作台样式对齐(§9):表格密度 / 状态标签三件套 / 分页右下;不动 props 与接口 */
+::v-deep .el-table { font-size: var(--text-table); }
+::v-deep .el-table .cell { line-height: var(--text-table-lh); }
+::v-deep .el-tag { border-color: transparent; border-radius: var(--radius-sm); font-size: var(--text-caption); }
+::v-deep .el-pagination { text-align: right; }
 .family-lock-input { width: 140px; }
 .mb-20 { margin-bottom: 24px; }
 .mb-15 { margin-bottom: 15px; }

+ 5 - 0
cfc-web/src/views/admin/WishesPanel.vue

@@ -467,6 +467,11 @@ export default {
 </script>
 
 <style scoped>
+/* 家庭工作台样式对齐(§9):表格密度 / 状态标签三件套 / 分页右下;不动 props 与接口 */
+::v-deep .el-table { font-size: var(--text-table); }
+::v-deep .el-table .cell { line-height: var(--text-table-lh); }
+::v-deep .el-tag { border-color: transparent; border-radius: var(--radius-sm); font-size: var(--text-caption); }
+::v-deep .el-pagination { text-align: right; }
 .wish-section {
   margin-bottom: 30px;
 }

Some files were not shown because too many files changed in this diff