diff --git a/nkebao/src/pages/workspace/main/index.module.scss b/nkebao/src/pages/workspace/main/index.module.scss index a2e54243..1402477c 100644 --- a/nkebao/src/pages/workspace/main/index.module.scss +++ b/nkebao/src/pages/workspace/main/index.module.scss @@ -4,68 +4,7 @@ min-height: 100vh; } -.statsGrid { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 12px; - margin-bottom: 24px; -} -.statsCard { - background: #fff; - border-radius: 12px; - padding: 16px; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); - - :global(.adm-card-body) { - padding: 0; - } -} - -.statsTitle { - font-size: 14px; - color: #666; - margin-bottom: 8px; -} - -.statsValue { - font-size: 28px; - font-weight: 700; - color: var(--primary-color); - margin-bottom: 12px; -} - -.progress { - margin-bottom: 8px; - - :global(.adm-progress-bar) { - background-color: #f0f0f0; - } - - :global(.adm-progress-bar-fill) { - background-color: var(--primary-color); - } -} - -.statsSubtitle { - font-size: 12px; - color: #999; -} - -.activityRate { - display: flex; - align-items: center; - font-size: 14px; - color: #52c41a; - margin-top: 8px; -} - -.activityIcon { - width: 16px; - height: 16px; - margin-right: 4px; - color: #52c41a; -} .section { margin-bottom: 24px; @@ -165,13 +104,8 @@ gap: 8px; } - .statsCard, .featureCard { - padding: 12px; - } - - .statsValue { - font-size: 24px; + padding: 10px; } .featureIcon { diff --git a/nkebao/src/pages/workspace/main/index.tsx b/nkebao/src/pages/workspace/main/index.tsx index 0d26c224..56c2c729 100644 --- a/nkebao/src/pages/workspace/main/index.tsx +++ b/nkebao/src/pages/workspace/main/index.tsx @@ -9,6 +9,7 @@ import { LinkOutlined, AppstoreOutlined, PieChartOutlined, + BarChartOutlined, ClockCircleOutlined, } from "@ant-design/icons"; import Layout from "@/components/Layout/Layout"; @@ -16,15 +17,6 @@ import MeauMobile from "@/components/MeauMobile/MeauMoible"; import styles from "./index.module.scss"; const Workspace: React.FC = () => { - // 模拟任务数据 - const taskStats = { - total: 42, - inProgress: 12, - completed: 30, - todayTasks: 12, - activityRate: 98, - }; - // 常用功能 const commonFeatures = [ { @@ -101,7 +93,7 @@ const Workspace: React.FC = () => { name: "AI数据分析", description: "智能分析客户行为特征", icon: ( - @@ -139,11 +131,6 @@ const Workspace: React.FC = () => { }, ]; - // 进度条宽度 - const progressPercent = Math.round( - (taskStats.inProgress / taskStats.total) * 100 - ); - return ( { footer={} >
- {/* 任务统计卡片 */} -
- -
总任务数
-
{taskStats.total}
-
-
-
-
-
- 进行中: {taskStats.inProgress} / 已完成: {taskStats.completed} -
- - - -
今日任务
-
- {taskStats.todayTasks} -
-
- - - - 活跃度 {taskStats.activityRate}% -
-
-
- {/* 常用功能 */}

常用功能