| | |
| | | import React from 'react'; |
| | | import { Input, Button, Space } from 'antd'; |
| | | |
| | | const Filter = (props) => { |
| | | const TextFilter = (props) => { |
| | | return ( |
| | | <div style={{ padding: 8 }}> |
| | | <Input |
| | |
| | | ); |
| | | } |
| | | |
| | | export default Filter; |
| | | export { TextFilter }; |
| | |
| | | import { PlusOutlined, ExportOutlined } from '@ant-design/icons'; |
| | | import Http from '@/utils/http'; |
| | | import Edit from './components/edit' |
| | | import Filter from '@/components/TableSearch' |
| | | import { TextFilter } from '@/components/TableSearch' |
| | | |
| | | const handleSave = async (val) => { |
| | | const hide = message.loading('正在添加'); |
| | |
| | | dataIndex: 'name', |
| | | valueType: 'text', |
| | | copyable: true, |
| | | filterDropdown: (props) => <Filter name='name' {...props} actionRef={actionRef} setSearchParam={setSearchParam} />, |
| | | filterDropdown: (props) => <TextFilter name='name' {...props} actionRef={actionRef} setSearchParam={setSearchParam} />, |
| | | }, |
| | | { |
| | | title: '标识', |
| | | dataIndex: 'code', |
| | | valueType: 'text', |
| | | filterDropdown: (props) => <Filter name='code' {...props} actionRef={actionRef} setSearchParam={setSearchParam} />, |
| | | filterDropdown: (props) => <TextFilter name='code' {...props} actionRef={actionRef} setSearchParam={setSearchParam} />, |
| | | }, |
| | | { |
| | | title: '公司', |