"use client" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { Users, Database, Tag, Bot, Package, TrendingUp, TrendingDown, Activity, BarChart3, PieChart } from "lucide-react" const businessMetrics = [ { title: "用户总量", value: "1,256,890", change: "+12.5%", trend: "up", description: "累计注册用户数", icon: Users, }, { title: "日活用户", value: "125,680", change: "+8.2%", trend: "up", description: "今日活跃用户数", icon: Activity, }, { title: "标签覆盖率", value: "92.5%", change: "+2.1%", trend: "up", description: "有标签的用户占比", icon: Tag, }, { title: "AI处理量", value: "45,280", change: "+25.6%", trend: "up", description: "今日AI处理记录数", icon: Bot, }, ] const dataMetrics = [ { name: "数据接入量", today: "1.2M", week: "8.5M", month: "32M" }, { name: "标签计算量", today: "850K", week: "5.2M", month: "21M" }, { name: "API调用量", today: "125K", week: "890K", month: "3.5M" }, { name: "流量包下载", today: "23", week: "156", month: "620" }, ] export default function MetricsPage() { return (
{/* 页面标题 */}

业务指标

核心业务数据和运营指标

{/* 核心指标 */}
{businessMetrics.map((metric) => (

{metric.title}

{metric.value}

{metric.trend === "up" ? ( ) : ( )} {metric.change}

{metric.description}

))}
{/* 数据处理统计 */} 数据处理统计 各模块数据处理量统计
{dataMetrics.map((metric) => (

{metric.name}

今日 {metric.today}
本周 {metric.week}
本月 {metric.month}
))}
{/* 趋势图表 */}
用户增长趋势 最近30天新增用户数
{Array.from({ length: 30 }).map((_, i) => (
))}
30天前 今天
用户分布 按价值等级分布
高价值 (30%)
中价值 (20%)
潜力 (25%)
低价值 (25%)
) }