From 3ffdf683ae36898addeb2f6e3cae16a8072bb0ff Mon Sep 17 00:00:00 2001 From: shaot Date: Tue, 5 Aug 2025 18:10:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=89=8D=E7=AB=AF):=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-fe/src/pages/userList/index.tsx | 18 ++--- .../src/pages/userList/mod/group/index.less | 0 web-fe/src/pages/userList/mod/group/index.tsx | 80 +++++++++++++++++++ 3 files changed, 89 insertions(+), 9 deletions(-) create mode 100644 web-fe/src/pages/userList/mod/group/index.less create mode 100644 web-fe/src/pages/userList/mod/group/index.tsx diff --git a/web-fe/src/pages/userList/index.tsx b/web-fe/src/pages/userList/index.tsx index 79e89ff..ea23cce 100644 --- a/web-fe/src/pages/userList/index.tsx +++ b/web-fe/src/pages/userList/index.tsx @@ -3,9 +3,9 @@ import { Button, Col, Input, Pagination, Row, Table, Tree } from 'antd'; import type { ColumnsType } from 'antd/es/table'; import type { DataNode } from 'antd/es/tree'; import React, { useEffect, useState } from 'react'; +import CreatGroup from './mod/group'; import styles from './index.less'; -// Define types for our data interface User { id: string; username: string; @@ -24,7 +24,6 @@ const UserListPage: React.FC = () => { // State for organization tree const [orgTreeData, setOrgTreeData] = useState([]); const [selectedOrg, setSelectedOrg] = useState(''); - const [treeSelect, setTreeSelect] = useState([]); // State for user list const [users, setUsers] = useState([]); @@ -37,6 +36,9 @@ const UserListPage: React.FC = () => { const [pageSize, setPageSize] = useState(10); const [totalUsers, setTotalUsers] = useState(0); + // 添加分组 + const [visible, setVisible] = useState(false); + // Mock data for organization tree useEffect(() => { // In a real application, this would come from an API @@ -198,6 +200,7 @@ const UserListPage: React.FC = () => { type="text" style={{ marginRight: '8px', fontSize: '16px' }} icon={} + onClick={() => setVisible(true)} />