diff --git a/web2/src/pages/Dashboard.tsx b/web2/src/pages/Dashboard.tsx index 641811f..e285815 100644 --- a/web2/src/pages/Dashboard.tsx +++ b/web2/src/pages/Dashboard.tsx @@ -10,7 +10,7 @@ import { useEffect, useState } from 'react' import { useNavigate } from 'react-router-dom' import { - ClipboardCheck, MessageSquare, Activity, ArrowRight, + ClipboardCheck, MessageSquare, ArrowRight, Radar, ShieldCheck, Scale, TrendingUp, Heart, Plus, ChevronRight, Sparkles, Clock, CircleAlert, } from 'lucide-react' @@ -25,32 +25,6 @@ import { api } from '@/lib/api' import { greeting, formatRelative, SCENE_LABELS, RISK_LABELS, MATTER_STATUS_LABELS, cn } from '@/lib/utils' import type { DashboardToday, DashboardSummary, TimelineItem, RiskAlert, Scene } from '@/types' -/** 环形进度条 */ -function RingProgress({ value, label, color }: { value: number; label: string; color: string }) { - const radius = 28 - const circumference = 2 * Math.PI * radius - const offset = circumference - (value / 100) * circumference - return ( -
-
- - - - -
- {value} -
-
- {label} -
- ) -} - const SCENE_ICONS: Record = { legal: Scale, decision: TrendingUp, @@ -247,7 +221,7 @@ export function Dashboard() { )} {/* 概览数字 */} -
+

0 ? 'text-emerald-700' : 'text-muted-foreground')}>{replyCount}

- -
-
- - 健康度 -
-

- {Math.round((data.health_score.legal + data.health_score.operation + data.health_score.compliance) / 3)} -

-
{/* 快捷入口 */} @@ -324,7 +288,7 @@ export function Dashboard() { navigate('/legal')}>开始咨询} /> )} @@ -381,11 +345,9 @@ export function Dashboard() { )} - {/* 时间线 + 健康度(两列) */} -
- {/* 时间线(占 2 列) */} - {timeline.length > 0 && ( - + {/* 时间线 */} + {timeline.length > 0 && ( +
@@ -407,22 +369,6 @@ export function Dashboard() { )} - - {/* 经营健康度 */} - - -
- - 经营健康度 -
-
- - - -
-
-
-
) }