|
@@ -2,6 +2,9 @@ import ContactDetail from '@/pages/Customer/Client/components/ClientDetail'
|
|
|
import LocksDetail from '@/pages/Product/Lock/LockStore/components/LocksDetail'
|
|
import LocksDetail from '@/pages/Product/Lock/LockStore/components/LocksDetail'
|
|
|
import React, { useRef, useState } from 'react'
|
|
import React, { useRef, useState } from 'react'
|
|
|
import { Tabs, message, Dropdown, Menu, Typography } from 'antd'
|
|
import { Tabs, message, Dropdown, Menu, Typography } from 'antd'
|
|
|
|
|
+import { Table } from '@arco-design/web-react'
|
|
|
|
|
+import '@arco-design/web-react/dist/css/arco.css'
|
|
|
|
|
+import styles from './index.less'
|
|
|
import AddContact from '@/pages/Customer/Client/components/AddClient'
|
|
import AddContact from '@/pages/Customer/Client/components/AddClient'
|
|
|
import { apiAddClient, apiAddCustomerService, updateClient } from '@/services/customer'
|
|
import { apiAddClient, apiAddCustomerService, updateClient } from '@/services/customer'
|
|
|
import { formatValues } from '@/components/LazyCascader'
|
|
import { formatValues } from '@/components/LazyCascader'
|
|
@@ -117,7 +120,7 @@ const CompanyTabList = ({
|
|
|
{
|
|
{
|
|
|
title: '优先级',
|
|
title: '优先级',
|
|
|
dataIndex: 'priority',
|
|
dataIndex: 'priority',
|
|
|
- width: '17%',
|
|
|
|
|
|
|
+ width: '15%',
|
|
|
sorter: (a, b) => a.priority - b.priority,
|
|
sorter: (a, b) => a.priority - b.priority,
|
|
|
render: (text, record) => (
|
|
render: (text, record) => (
|
|
|
<Dropdown
|
|
<Dropdown
|
|
@@ -140,7 +143,7 @@ const CompanyTabList = ({
|
|
|
title: '所有部门',
|
|
title: '所有部门',
|
|
|
dataIndex: 'department',
|
|
dataIndex: 'department',
|
|
|
onFilter: true,
|
|
onFilter: true,
|
|
|
- width: '23%',
|
|
|
|
|
|
|
+ width: '20%',
|
|
|
filters: Array.from(
|
|
filters: Array.from(
|
|
|
new Set(client.client?.map(item => item.department)).map(item => ({
|
|
new Set(client.client?.map(item => item.department)).map(item => ({
|
|
|
text: item,
|
|
text: item,
|
|
@@ -169,13 +172,13 @@ const CompanyTabList = ({
|
|
|
{
|
|
{
|
|
|
title: '手机',
|
|
title: '手机',
|
|
|
dataIndex: 'telephone',
|
|
dataIndex: 'telephone',
|
|
|
- width: '20%',
|
|
|
|
|
|
|
+ // width: '20%',
|
|
|
ellipsis: true
|
|
ellipsis: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: 'QQ',
|
|
title: 'QQ',
|
|
|
dataIndex: 'qq',
|
|
dataIndex: 'qq',
|
|
|
- width: '20%',
|
|
|
|
|
|
|
+ // width: '20%',
|
|
|
ellipsis: true
|
|
ellipsis: true
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
@@ -348,8 +351,16 @@ const CompanyTabList = ({
|
|
|
<div className="pl-15px">
|
|
<div className="pl-15px">
|
|
|
<Tabs>
|
|
<Tabs>
|
|
|
<TabPane tab={<span>客户{renderBadge(client.total, true)}</span>} key="1">
|
|
<TabPane tab={<span>客户{renderBadge(client.total, true)}</span>} key="1">
|
|
|
- <div className="sheet-right-panel" ref={tRef}>
|
|
|
|
|
- <ProTable
|
|
|
|
|
|
|
+ <div className={['sheet-right-panel', styles.tableCont].join('')} ref={tRef}>
|
|
|
|
|
+ <Table
|
|
|
|
|
+ virtualized
|
|
|
|
|
+ scroll={{ y: 500 }}
|
|
|
|
|
+ border
|
|
|
|
|
+ columns={columns}
|
|
|
|
|
+ data={client.client}
|
|
|
|
|
+ pagination={false}
|
|
|
|
|
+ />
|
|
|
|
|
+ {/* <ProTable
|
|
|
size="small"
|
|
size="small"
|
|
|
columns={columns}
|
|
columns={columns}
|
|
|
search={false}
|
|
search={false}
|
|
@@ -358,7 +369,7 @@ const CompanyTabList = ({
|
|
|
rowKey={record => record.id}
|
|
rowKey={record => record.id}
|
|
|
pagination={false}
|
|
pagination={false}
|
|
|
scroll={{ y: clientHeight }}
|
|
scroll={{ y: clientHeight }}
|
|
|
- />
|
|
|
|
|
|
|
+ /> */}
|
|
|
{/* <VirtualTable
|
|
{/* <VirtualTable
|
|
|
size="small"
|
|
size="small"
|
|
|
columns={columns}
|
|
columns={columns}
|