| | |
| | | import { history, useAccess } from '@umijs/max'; |
| | | import { Button, Cascader, DatePicker, Form, Input, Pagination, Select, Table, Upload, message } from 'antd'; |
| | | import { Button, Cascader, DatePicker, Form, Input, Pagination, Select, Space, Table, Upload, message } from 'antd'; |
| | | import type { ColumnsType } from 'antd/es/table'; |
| | | import dayjs, { type Dayjs } from 'dayjs'; |
| | | import React, { useEffect, useState } from 'react'; |
| | |
| | | title: '操作', |
| | | width: 150, |
| | | render: (_, record) => ( |
| | | <> |
| | | <Space size={16} className="member-clinic-table__actions"> |
| | | <button |
| | | type="button" |
| | | className="member-clinic-table__action" |
| | |
| | | 详情 |
| | | </button> |
| | | {access["member:clinic:edit"] ? <button type="button" className="member-clinic-table__action" onClick={() => history.push(`/member/user/clinic/${record.id}/edit`)}>编辑</button> : null} |
| | | </> |
| | | </Space> |
| | | ), |
| | | }, |
| | | ]; |