lanjianrong 4 tahun lalu
induk
melakukan
30f1dbc76a

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

@@ -1,6 +1,5 @@
 import React, { useMemo, useRef, useState } from 'react'
 import { Tabs, message, Dropdown, Menu, Typography, Button, Table } from 'antd'
-import styles from './index.less'
 import { apiAddClient, apiAddCustomerService, updateClient } from '@/services/customer'
 import { formatValues } from '@/components/LazyCascader'
 import consts from '@/consts'
@@ -47,8 +46,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
         if (key !== defaultSelectedKey) {
           changePriority(key, id)
         }
-      }}
-    >
+      }}>
       <Menu.Item key="1">1</Menu.Item>
       <Menu.Item key="2">2</Menu.Item>
       <Menu.Item key="3">3</Menu.Item>
@@ -125,8 +123,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
           onClick={() => dispatchModal('D_LOCK_DETAIL', { dataId: record.id })}
           className={['cursor-pointer hover:text-hex-967bbd', record.preserveStatus === 3 ? null : 'text-primary'].join(
             ' '
-          )}
-        >
+          )}>
           {record.preserveStatus === 3 ? (
             <Text delete type="secondary">
               {clientName}
@@ -215,8 +212,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
       render: (text, record) => (
         <span
           onClick={() => dispatchModal('D_BUSINESS_DETAIL', { dataId: record.id })}
-          className="text-primary cursor-pointer hover:text-[#967bbd]"
-        >
+          className="text-primary cursor-pointer hover:text-[#967bbd]">
           {text}
         </span>
       )
@@ -290,7 +286,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
       <div className="pl-15px">
         <Tabs>
           <TabPane tab={<span>客户{renderBadge(client.total, true)}</span>} key="1">
-            <div className={['sheet-right-panel', styles.tableCont].join(' ')}>
+            <div className="sheet-right-panel">
               <Table
                 rowKey="id"
                 size="small"
@@ -357,8 +353,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
                 landmarks: customer.landmarks
               }
             })
-          }
-        >
+          }>
           <Plus className="mr-1" />
           客户
         </Button>