From 943925ec3f6ede509fd9b64d4cfd9bf1c7c24326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AC=94=E8=AE=B0=E6=9C=AC=E9=87=8C=E7=9A=84=E6=B0=B8?= =?UTF-8?q?=E5=B9=B3?= Date: Mon, 21 Jul 2025 12:38:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=AC=E6=AC=A1=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E5=AE=B9=E5=A6=82=E4=B8=8B=20?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/workspace/main/index.module.scss | 68 +----------------- nkebao/src/pages/workspace/main/index.tsx | 72 +------------------ 2 files changed, 3 insertions(+), 137 deletions(-) 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}% -
-
-
- {/* 常用功能 */}

常用功能