From fcfd857e5cc18bbd3a862d14f245da98acd1f727 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: Wed, 23 Jul 2025 20:07:28 +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?=E8=87=AA=E5=8A=A8=E5=BB=BA=E7=BE=A4=E5=85=88=E8=BF=99=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/workspace/auto-group/list/index.tsx | 94 +------------------ 1 file changed, 3 insertions(+), 91 deletions(-) diff --git a/nkebao/src/pages/workspace/auto-group/list/index.tsx b/nkebao/src/pages/workspace/auto-group/list/index.tsx index 8b607a79..10d66484 100644 --- a/nkebao/src/pages/workspace/auto-group/list/index.tsx +++ b/nkebao/src/pages/workspace/auto-group/list/index.tsx @@ -1,15 +1,7 @@ import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; -import { - Button, - Card, - Switch, - ProgressBar, - Popover, - Toast, - NavBar, -} from "antd-mobile"; -import { Input } from "antd"; +import { Button, Card, ProgressBar, Popover, Toast, NavBar } from "antd-mobile"; +import { Input, Switch } from "antd"; import { MoreOutline, AddCircleOutline, @@ -116,14 +108,9 @@ const getStatusText = (status: string) => { const AutoGroupList: React.FC = () => { const navigate = useNavigate(); - const [expandedTaskId, setExpandedTaskId] = useState(null); const [searchTerm, setSearchTerm] = useState(""); const [tasks, setTasks] = useState(mockTasks); - const toggleExpand = (taskId: string) => { - setExpandedTaskId(expandedTaskId === taskId ? null : taskId); - }; - const handleDelete = (taskId: string) => { const taskToDelete = tasks.find((task) => task.id === taskId); if (!taskToDelete) return; @@ -307,84 +294,9 @@ const AutoGroupList: React.FC = () => {
- 上次建群:{task.lastCreateTime} -
-
- 创建时间:{task.createTime} - + 更新时间:{task.lastCreateTime}
- {expandedTaskId === task.id && ( -
-
-
-
- {" "} - 基本设置 -
-
- 建群间隔:{task.createInterval} 秒 -
-
- 每日最大建群数:{task.maxGroupsPerDay} 个 -
-
- 执行时间段:{task.timeRange.start} -{" "} - {task.timeRange.end} -
-
- 群组规模:{task.groupSize.min}-{task.groupSize.max} 人 -
-
-
-
- 目标人群 -
-
- {task.targetTags.map((tag) => ( - - {tag} - - ))} -
-
-
-
- 群组设置 -
-
- 群名称模板:{task.groupNameTemplate} -
-
- 群描述:{task.groupDescription} -
-
-
-
- {" "} - 执行进度 -
-
- 今日已建群:{task.createdGroups} /{" "} - {task.maxGroupsPerDay} -
- -
-
-
- )} )) )}