| | |
| | | import { buildProTableDataSource, sendRequest, showDelConfirm } from '@/utils/antdUtils'; |
| | | import { buildProTableDataSource, sendRequest, showDelConfirm,showConfirm } from '@/utils/antdUtils'; |
| | | import { DeleteOutlined, EditOutlined, PlusOutlined } from '@ant-design/icons'; |
| | | import { PageContainer, ProFormText, ProTable, QueryFilter } from '@ant-design/pro-components'; |
| | | import { Button, Cascader, Col, Menu, Row, Select, Space } from 'antd'; |
| | |
| | | <Access accessible={access['/system_setting/role_management/edit'] || false}> |
| | | <a |
| | | onClick={() => { |
| | | showDelConfirm(async () => { |
| | | showConfirm(`确认${record.status === 1 ? '冻结' : '解冻'}该人员吗?`,async () => { |
| | | let status = await sendRequest( |
| | | record.status === 1 ? freezeApi : unfreezeApi, |
| | | record.id, |
| | |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | }, `确认${record.status === 1 ? '冻结' : '解冻'}该人员吗?`,'确认'); |
| | | }); |
| | | }} |
| | | > |
| | | {record.status === 1 ? '冻结' : '解冻'} |