소스 검색

fix: 隐藏单位详情商机tab页

lanjianrong 4 년 전
부모
커밋
577257afaf
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 7 7
      src/pages/Customer/Company/components/CompanyDetail/TabList.jsx

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

@@ -14,6 +14,7 @@ import { ProductLabel } from '@/pages/Product/Lock/LockStore/index'
 import { useModal } from '@/components/ModalStore'
 import { Plus } from '@icon-park/react'
 import { VList } from 'virtuallist-antd'
+import classNames from 'classnames'
 
 const { Text } = Typography
 const CompanyTabList = ({ initData, customerId, client, software, customer, business, updatePayload }) => {
@@ -127,10 +128,9 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
       render: (clientName, record) => (
         <span
           onClick={() => dispatchModal('D_LOCK_DETAIL', { dataId: record.id })}
-          className={[
-            'cursor-pointer hover:text-hex-967bbd',
-            record.preserveStatus === 3 ? null : 'text-primary'
-          ].join(' ')}
+          className={classNames('cursor-pointer hover:text-hex-967bbd', {
+            'text-primary': record.preserveStatus === 3
+          })}
         >
           {record.preserveStatus === 3 ? (
             <Text delete type="secondary">
@@ -220,7 +220,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-hex-967bbd"
         >
           {text}
         </span>
@@ -322,7 +322,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
               />
             </div>
           </TabPane>
-          <TabPane tab={<span>商机{renderBadge(business.total, true)}</span>} key="3">
+          {/* <TabPane tab={<span>商机{renderBadge(business.total, true)}</span>} key="3">
             <div className="sheet-right-panel">
               <ProTable
                 size="small"
@@ -335,7 +335,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
                 scroll={{ y: clientHeight }}
               />
             </div>
-          </TabPane>
+          </TabPane> */}
         </Tabs>
       </div>
       <div className="sheet-btns pl-15px pt-15px flex items-center">