| | |
| | | import { getLogininforList, removeLogininfor, exportLogininfor, unlockLogininfor, cleanLogininfor } from '@/services/monitor/logininfor'; |
| | | import DictTag from '@/components/DictTag'; |
| | | import { getDictValueEnum } from '@/services/system/dict'; |
| | | import { request } from '@umijs/max'; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 删除节点 |
| | |
| | | * @param selectedRows |
| | | */ |
| | | const handleRemove = async (selectedRows) => { |
| | | const hide = message.loading('正在删除'); |
| | | if (!selectedRows) return true; |
| | | const hide = message.loading('正在删除'); |
| | | try { |
| | | const resp = await removeLogininfor(selectedRows.map((row) => row.infoId).join(',')); |
| | | hide(); |
| | |
| | | </Button>, |
| | | ]} |
| | | request={(params) => |
| | | getLogininforList({ ...params }).then((res) => { |
| | | request('/api/role/page', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | }, |
| | | data: { ...params } |
| | | }).then((res) => { |
| | | const result = { |
| | | data: res.rows, |
| | | total: res.total, |
| | |
| | | }; |
| | | return result; |
| | | }) |
| | | |
| | | // getLogininforList({ ...params }).then((res) => { |
| | | // const result = { |
| | | // data: res.rows, |
| | | // total: res.total, |
| | | // success: true, |
| | | // }; |
| | | // return result; |
| | | // }) |
| | | } |
| | | columns={columns} |
| | | rowSelection={{ |