import React from 'react'; import { Table, Tag, Space, Button, Input, Typography, Card, Avatar } from 'antd'; import { PlusOutlined, SearchOutlined, EditOutlined, DeleteOutlined, UserOutlined } from '@ant-design/icons'; import { MANAGED_USERS } from '../constants'; const { Text, Title } = Typography; export default function Users() { const columns = [ { title: '用户信息', key: 'userinfo', render: (record: any) => ( } /> {record.name} {record.id} ), }, { title: '系统权限', dataIndex: 'role', key: 'role', render: (role: string) => ( {role} ), }, { title: '账户状态', key: 'status', render: () => ACTIVE, }, { title: '最近登录', key: 'lastLogin', render: () => 2024-03-24 10:22:45, }, { title: '操作', key: 'action', align: 'right' as const, render: () => ( ), }, ]; return (
用户管理权限控制 } placeholder="搜索用户名或工号..." style={{ width: 250, borderRadius: 2 }} />
({ ...u, key: u.id }))} pagination={false} /> ); }