|
@@ -1,9 +1,11 @@
|
|
|
import consts from '@/consts'
|
|
import consts from '@/consts'
|
|
|
import { syncToClient } from '@/services/customer'
|
|
import { syncToClient } from '@/services/customer'
|
|
|
import { Copy } from '@icon-park/react'
|
|
import { Copy } from '@icon-park/react'
|
|
|
-import { Button, Checkbox, message, Modal, Table } from 'antd'
|
|
|
|
|
|
|
+import { Button, Checkbox, message, Modal } from 'antd'
|
|
|
import { useState } from 'react'
|
|
import { useState } from 'react'
|
|
|
import { useDispatch } from 'umi'
|
|
import { useDispatch } from 'umi'
|
|
|
|
|
+import { Table } from '@arco-design/web-react'
|
|
|
|
|
+import '@arco-design/web-react/dist/css/arco.css'
|
|
|
|
|
|
|
|
const SyncClient = ({ customer, client }) => {
|
|
const SyncClient = ({ customer, client }) => {
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
@@ -47,12 +49,18 @@ const SyncClient = ({ customer, client }) => {
|
|
|
dataIndex: 'clientName',
|
|
dataIndex: 'clientName',
|
|
|
title: '客户名称',
|
|
title: '客户名称',
|
|
|
width: '15%',
|
|
width: '15%',
|
|
|
|
|
+ headerCellStyle: {
|
|
|
|
|
+ backgroundColor: '#fff'
|
|
|
|
|
+ },
|
|
|
ellipsis: true
|
|
ellipsis: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
dataIndex: 'districtName',
|
|
dataIndex: 'districtName',
|
|
|
title: '客户地区',
|
|
title: '客户地区',
|
|
|
width: '15%',
|
|
width: '15%',
|
|
|
|
|
+ headerCellStyle: {
|
|
|
|
|
+ backgroundColor: '#fff'
|
|
|
|
|
+ },
|
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
|
renderText: text => text?.replaceAll(' / ', ',')
|
|
renderText: text => text?.replaceAll(' / ', ',')
|
|
|
},
|
|
},
|
|
@@ -60,24 +68,36 @@ const SyncClient = ({ customer, client }) => {
|
|
|
dataIndex: 'address',
|
|
dataIndex: 'address',
|
|
|
title: '地址',
|
|
title: '地址',
|
|
|
width: '20%',
|
|
width: '20%',
|
|
|
|
|
+ headerCellStyle: {
|
|
|
|
|
+ backgroundColor: '#fff'
|
|
|
|
|
+ },
|
|
|
ellipsis: true
|
|
ellipsis: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
dataIndex: 'ride',
|
|
dataIndex: 'ride',
|
|
|
title: '乘车路线',
|
|
title: '乘车路线',
|
|
|
width: '20%',
|
|
width: '20%',
|
|
|
|
|
+ headerCellStyle: {
|
|
|
|
|
+ backgroundColor: '#fff'
|
|
|
|
|
+ },
|
|
|
ellipsis: true
|
|
ellipsis: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
dataIndex: 'landmarks',
|
|
dataIndex: 'landmarks',
|
|
|
title: '地标建筑',
|
|
title: '地标建筑',
|
|
|
width: '15%',
|
|
width: '15%',
|
|
|
|
|
+ headerCellStyle: {
|
|
|
|
|
+ backgroundColor: '#fff'
|
|
|
|
|
+ },
|
|
|
ellipsis: true
|
|
ellipsis: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
dataIndex: 'stay',
|
|
dataIndex: 'stay',
|
|
|
title: '参考住宿',
|
|
title: '参考住宿',
|
|
|
- width: '15%',
|
|
|
|
|
|
|
+ headerCellStyle: {
|
|
|
|
|
+ backgroundColor: '#fff'
|
|
|
|
|
+ },
|
|
|
|
|
+ // width: '15%',
|
|
|
ellipsis: true
|
|
ellipsis: true
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
@@ -141,6 +161,17 @@ const SyncClient = ({ customer, client }) => {
|
|
|
</Checkbox.Group>
|
|
</Checkbox.Group>
|
|
|
</div>
|
|
</div>
|
|
|
<Table
|
|
<Table
|
|
|
|
|
+ virtualized
|
|
|
|
|
+ scroll={{ y: 400 }}
|
|
|
|
|
+ border={false}
|
|
|
|
|
+ columns={columns}
|
|
|
|
|
+ data={client}
|
|
|
|
|
+ pagination={false}
|
|
|
|
|
+ rowSelection={{
|
|
|
|
|
+ onChange: selectedRowKeys => setState({ ...state, selectedKeys: selectedRowKeys })
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
|
|
+ {/* <Table
|
|
|
rowKey="id"
|
|
rowKey="id"
|
|
|
size="small"
|
|
size="small"
|
|
|
columns={columns}
|
|
columns={columns}
|
|
@@ -151,7 +182,7 @@ const SyncClient = ({ customer, client }) => {
|
|
|
rowSelection={{
|
|
rowSelection={{
|
|
|
onChange: selectedRowKeys => setState({ ...state, selectedKeys: selectedRowKeys })
|
|
onChange: selectedRowKeys => setState({ ...state, selectedKeys: selectedRowKeys })
|
|
|
}}
|
|
}}
|
|
|
- />
|
|
|
|
|
|
|
+ /> */}
|
|
|
</Modal>
|
|
</Modal>
|
|
|
</>
|
|
</>
|
|
|
)
|
|
)
|