Jelajahi Sumber

feat: 单位下详情客户列表剔除昵称列

lanjianrong 4 tahun lalu
induk
melakukan
16a5117300

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

@@ -46,7 +46,8 @@ 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>
@@ -86,20 +87,24 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
     {
       title: '姓名',
       dataIndex: 'clientName',
+      width: 100,
       render: (clientName, record) => (
         <div className="text-primary hover:text-[#967bbd] line-clamp-1">
-          <span onClick={() => dispatchModal('D_CLIENT_DETAIL', { dataId: record.id })} className="cursor-pointer ">
+          <span
+            onClick={() => dispatchModal('D_CLIENT_DETAIL', { dataId: record.id })}
+            className="cursor-pointer "
+          >
             {clientName}
           </span>
         </div>
       )
     },
-    {
-      title: '昵称',
-      dataIndex: 'niceName',
-      width: 110,
-      ellipsis: true
-    },
+    // {
+    //   title: '昵称',
+    //   dataIndex: 'niceName',
+    //   width: 110,
+    //   ellipsis: true
+    // },
     {
       title: '手机',
       dataIndex: 'telephone',
@@ -121,9 +126,11 @@ 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={[
+            'cursor-pointer hover:text-hex-967bbd',
+            record.preserveStatus === 3 ? null : 'text-primary'
+          ].join(' ')}
+        >
           {record.preserveStatus === 3 ? (
             <Text delete type="secondary">
               {clientName}
@@ -212,7 +219,8 @@ 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>
       )
@@ -353,7 +361,8 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
                 landmarks: customer.landmarks
               }
             })
-          }>
+          }
+        >
           <Plus className="mr-1" />
           客户
         </Button>