用户模块

This commit is contained in:
mmc
2026-04-29 12:49:47 +08:00
parent e5360f49b6
commit 935b2eb46a
5 changed files with 273 additions and 220 deletions

View File

@@ -4,7 +4,8 @@ import {
Input, Popconfirm, Divider, InputNumber, Switch, Pagination
} from 'antd';
import {
PlusOutlined, EditOutlined, DeleteOutlined, CloseOutlined
PlusOutlined, EditOutlined, DeleteOutlined, CloseOutlined,
UserOutlined
} from '@ant-design/icons';
import { getMenuList } from '../api/mune';
import { buildPermTree, buildTreeFromFlat } from '../lib/utils';
@@ -191,9 +192,18 @@ export default function Roles() {
type="text"
icon={<EditOutlined />}
onClick={() => handleEditRole(role)}
style={{ color: '#1677ff' }}
>
编辑
</Button>,
<Button
type="text"
icon={<UserOutlined />}
onClick={() => console.log('管理成员', role.roleId)}
style={{ color: '#00b96b' }}
>
管理成员
</Button>,
<Popconfirm
title="确定删除该角色?"
onConfirm={() => handleDeleteRole(role.roleId)}
@@ -211,9 +221,11 @@ export default function Roles() {
<Card.Meta
title={<span style={{ fontWeight: 600 }}>{role.roleName}</span>}
description={
<Space direction="vertical" size={2}>
<Space direction="vertical" size={2} style={{ width: '100%' }}>
<Text type="secondary">权限标识:{role.roleKey}</Text>
<Text type="secondary">状态:{role.status == 1 ? '正常' : '停用'}</Text>
<Text type="secondary">
状态:{role.status == 1 ? '正常' : '停用'}
</Text>
<Text type="secondary">
{role.admin && '【超级管理员】'}
{role.manager && '【机构管理员】'}
@@ -226,7 +238,7 @@ export default function Roles() {
))
) : (
<Col span={24}>
<EmptyData height={260} description="暂无角色数据" />
<EmptyData height={260} description="暂无数据" />
</Col>
)}
</Row>