Sfoglia il codice sorgente

fix: 单位抽屉下,客户手机号宽度调整到12位

outaozhen 4 anni fa
parent
commit
d9bdcc7b6c

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

@@ -46,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>
@@ -92,8 +91,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
         <div className="text-primary hover:text-[#967bbd] line-clamp-1">
           <span
             onClick={() => dispatchModal('D_CLIENT_DETAIL', { dataId: record.id })}
-            className="cursor-pointer "
-          >
+            className="cursor-pointer ">
             {clientName}
           </span>
         </div>
@@ -108,7 +106,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
     {
       title: '手机',
       dataIndex: 'telephone',
-      width: 110,
+      width: 130,
       ellipsis: true
     },
     {
@@ -129,8 +127,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
           className={[
             'cursor-pointer hover:text-hex-967bbd',
             record.preserveStatus === 3 ? null : 'text-primary'
-          ].join(' ')}
-        >
+          ].join(' ')}>
           {record.preserveStatus === 3 ? (
             <Text delete type="secondary">
               {clientName}
@@ -219,8 +216,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>
       )
@@ -361,8 +357,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
                 landmarks: customer.landmarks
               }
             })
-          }
-        >
+          }>
           <Plus className="mr-1" />
           客户
         </Button>