| | |
| | | import type { ActionType } from '@ant-design/pro-components'; |
| | | import { App as AntdApp, Descriptions, Drawer, Tag } from 'antd'; |
| | | import { createRoleColumns, getRoleStatusMeta, getRoleTypeMeta } from './columns'; |
| | | import { getRoleDetail, getRoleList, toggleRoleStatus } from './server'; |
| | | import { getRoleDetail, getRoleList, toggleRoleStatus } from './service'; |
| | | import type { RoleListQuery, RoleVO } from './types'; |
| | | |
| | | const Roles = () => { |
| | |
| | | const handleToggle = useCallback( |
| | | (record: RoleVO) => { |
| | | const nextAction = record.status === 'ENABLED' ? '禁用' : '启用'; |
| | | |
| | | modal.confirm({ |
| | | title: `${nextAction}角色`, |
| | | content: `确定要${nextAction}角色「${record.roleName}」吗?`, |