Procházet zdrojové kódy

fix: 单位详情客户列表table因宽度适应问题换回ProTable

outaozhen před 4 roky
rodič
revize
1872d08b1d

+ 12 - 12
src/pages/Customer/Company/components/CompanyDetail/TabList.jsx

@@ -3,8 +3,8 @@ import ContactDetail from '@/pages/Customer/Client/components/ClientDetail'
 import LocksDetail from '@/pages/Product/Lock/LockStore/components/LocksDetail'
 import React, { useRef, useState } from 'react'
 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 { 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 { apiAddClient, apiAddCustomerService, updateClient } from '@/services/customer'
@@ -121,7 +121,7 @@ const CompanyTabList = ({
     {
       title: '优先级',
       dataIndex: 'priority',
-      width: 90,
+      width: 75,
       headerCellStyle: {
         backgroundColor: '#fafafa'
       },
@@ -147,7 +147,7 @@ const CompanyTabList = ({
       title: '所有部门',
       dataIndex: 'department',
       onFilter: true,
-      width: 120,
+      width: 90,
       headerCellStyle: {
         backgroundColor: '#fafafa'
       },
@@ -162,7 +162,7 @@ const CompanyTabList = ({
     {
       title: '姓名',
       dataIndex: 'clientName',
-      // width: 80,
+      width: 100,
       headerCellStyle: {
         backgroundColor: '#fafafa'
       },
@@ -177,7 +177,7 @@ const CompanyTabList = ({
     {
       title: '昵称',
       dataIndex: 'niceName',
-      // width: 80,
+      width: 100,
       headerCellStyle: {
         backgroundColor: '#fafafa'
       },
@@ -186,7 +186,7 @@ const CompanyTabList = ({
     {
       title: '手机',
       dataIndex: 'telephone',
-      // width: 110,
+      width: 90,
       ellipsis: true,
       headerCellStyle: {
         backgroundColor: '#fafafa'
@@ -196,7 +196,7 @@ const CompanyTabList = ({
     {
       title: 'QQ',
       dataIndex: 'qq',
-      // width: 100,
+      width: 90,
       ellipsis: true,
       headerCellStyle: {
         backgroundColor: '#fafafa'
@@ -374,15 +374,15 @@ const CompanyTabList = ({
         <Tabs>
           <TabPane tab={<span>客户{renderBadge(client.total, true)}</span>} key="1">
             <div className={['sheet-right-panel', styles.tableCont].join(' ')} ref={tRef}>
-              <Table
+              {/* <Table
                 virtualized
                 scroll={{ y: clientHeight }}
                 border={false}
                 columns={columns}
                 data={client.client}
                 pagination={false}
-              />
-              {/* <ProTable
+              /> */}
+              <ProTable
                 size="small"
                 columns={columns}
                 search={false}
@@ -391,7 +391,7 @@ const CompanyTabList = ({
                 rowKey={record => record.id}
                 pagination={false}
                 scroll={{ y: clientHeight }}
-              /> */}
+              />
               {/* <VirtualTable
                 size="small"
                 columns={columns}