|
@@ -16,10 +16,6 @@ import { useTableScroll } from '@/hooks/useAutoTable'
|
|
|
import { apiAddClient, queryContact } from '@/services/contact'
|
|
import { apiAddClient, queryContact } from '@/services/contact'
|
|
|
import { LabelModeType } from '../Company/components/PersonLabel'
|
|
import { LabelModeType } from '../Company/components/PersonLabel'
|
|
|
import { apiBatchLink } from '@/services/customer'
|
|
import { apiBatchLink } from '@/services/customer'
|
|
|
-import ProForm, {
|
|
|
|
|
- LightFilter,
|
|
|
|
|
- ProFormText
|
|
|
|
|
-} from '_@ant-design_pro-form@1.22.1@@ant-design/pro-form'
|
|
|
|
|
|
|
|
|
|
const Contact = props => {
|
|
const Contact = props => {
|
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
@@ -131,7 +127,8 @@ const Contact = props => {
|
|
|
className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
{clientName}
|
|
{clientName}
|
|
|
</span>
|
|
</span>
|
|
|
- )
|
|
|
|
|
|
|
+ ),
|
|
|
|
|
+ search: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '客户名称',
|
|
title: '客户名称',
|
|
@@ -139,7 +136,8 @@ const Contact = props => {
|
|
|
key: 'companyName',
|
|
key: 'companyName',
|
|
|
width: 150,
|
|
width: 150,
|
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
|
- render: companyName => <a>{companyName}</a>
|
|
|
|
|
|
|
+ render: companyName => <a>{companyName}</a>,
|
|
|
|
|
+ search: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '部门',
|
|
title: '部门',
|
|
@@ -165,7 +163,8 @@ const Contact = props => {
|
|
|
title: 'QQ',
|
|
title: 'QQ',
|
|
|
dataIndex: 'qq',
|
|
dataIndex: 'qq',
|
|
|
key: 'qq',
|
|
key: 'qq',
|
|
|
- width: 75
|
|
|
|
|
|
|
+ width: 75,
|
|
|
|
|
+ search: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '邮箱',
|
|
title: '邮箱',
|
|
@@ -492,12 +491,6 @@ const Contact = props => {
|
|
|
}
|
|
}
|
|
|
return (
|
|
return (
|
|
|
<div>
|
|
<div>
|
|
|
- {/* <Card>
|
|
|
|
|
- <LightFilter bordered onFinish={async values => console.log(values)}>
|
|
|
|
|
- <ProFormText name="name1" label="联系人" search={{ filterType: 'light' }} />
|
|
|
|
|
- <ProFormText name="name" label="省/市/区" />
|
|
|
|
|
- </LightFilter>
|
|
|
|
|
- </Card> */}
|
|
|
|
|
<ProTable
|
|
<ProTable
|
|
|
bordered
|
|
bordered
|
|
|
params={state.params}
|
|
params={state.params}
|
|
@@ -529,13 +522,13 @@ const Contact = props => {
|
|
|
onChange: hanleRowSelectChange,
|
|
onChange: hanleRowSelectChange,
|
|
|
type: 'checkbox'
|
|
type: 'checkbox'
|
|
|
}}
|
|
}}
|
|
|
- // search={false}
|
|
|
|
|
- search={{ filterType: 'light' }}
|
|
|
|
|
|
|
+ search={false}
|
|
|
|
|
+ // search={{ filterType: 'light' }}
|
|
|
toolbar={{
|
|
toolbar={{
|
|
|
- // search: {
|
|
|
|
|
- // allowClear: true,
|
|
|
|
|
- // onSearch: handleSearch
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ search: {
|
|
|
|
|
+ allowClear: true,
|
|
|
|
|
+ onSearch: handleSearch
|
|
|
|
|
+ },
|
|
|
actions: [
|
|
actions: [
|
|
|
<LazyCascader onChange={onDistrictChange} changeOnSelect={true} key="lazyCascader" />,
|
|
<LazyCascader onChange={onDistrictChange} changeOnSelect={true} key="lazyCascader" />,
|
|
|
<Addcontact onConfirm={handleAddClient} key="addContactBtn" />
|
|
<Addcontact onConfirm={handleAddClient} key="addContactBtn" />
|