Преглед изворни кода

fix: 客户、单位抽屉表格宽度的调整

outaozhen пре 4 година
родитељ
комит
6b1c324e21

+ 3 - 3
src/pages/Customer/Client/components/ClientDetail/TabList.jsx

@@ -65,7 +65,7 @@ const ContanctTabList = ({ clientId, software }) => {
     {
       title: '产品',
       dataIndex: 'product',
-      width: 240,
+      width: 230,
       ellipsis: true,
       render: (_, record) => (
         <>
@@ -82,7 +82,7 @@ const ContanctTabList = ({ clientId, software }) => {
     {
       title: '销售状态',
       dataIndex: 'sellStatus',
-      width: 60,
+      width: 90,
       ellipsis: true,
       render: (_, record) => (
         <>
@@ -100,7 +100,7 @@ const ContanctTabList = ({ clientId, software }) => {
       title: '维护状态',
       dataIndex: 'preserveStatus',
       key: 'preserveStatus',
-      width: 60,
+      width: 90,
       ellipsis: true,
       render: (_, record) => (
         <>

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

@@ -108,8 +108,7 @@ const CompanyTabList = ({
         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>
@@ -122,7 +121,7 @@ const CompanyTabList = ({
     {
       title: '优先级',
       dataIndex: 'priority',
-      width: '15%',
+      width: 80,
       headerCellStyle: {
         backgroundColor: '#fafafa'
       },
@@ -131,8 +130,7 @@ const CompanyTabList = ({
         <Dropdown
           overlay={priorityMenu(text, record.id)}
           trigger="click"
-          className="hover:cursor-pointer"
-        >
+          className="hover:cursor-pointer">
           <span>
             {text} <DownOutlined />
           </span>
@@ -191,7 +189,7 @@ const CompanyTabList = ({
     {
       title: '手机',
       dataIndex: 'telephone',
-      width: '15%',
+      width: 110,
       ellipsis: true,
       headerCellStyle: {
         backgroundColor: '#fafafa'
@@ -201,7 +199,7 @@ const CompanyTabList = ({
     {
       title: 'QQ',
       dataIndex: 'qq',
-      width: '15%',
+      width: 110,
       ellipsis: true,
       headerCellStyle: {
         backgroundColor: '#fafafa'
@@ -220,16 +218,14 @@ const CompanyTabList = ({
             <Text delete type="secondary">
               <span
                 onClick={() => showLongleDrawer(record.id)}
-                className="cursor-pointer hover:text-hex-967bbd"
-              >
+                className="cursor-pointer hover:text-hex-967bbd">
                 {clientName}
               </span>
             </Text>
           ) : (
             <span
               onClick={() => showLongleDrawer(record.id)}
-              className="text-primary cursor-pointer hover:text-hex-967bbd"
-            >
+              className="text-primary cursor-pointer hover:text-hex-967bbd">
               {clientName}
             </span>
           )}
@@ -238,7 +234,7 @@ const CompanyTabList = ({
     },
     {
       title: '产品',
-      width: 240,
+      width: 230,
       dataIndex: 'product',
       render: (_, record) => (
         <>
@@ -254,7 +250,7 @@ const CompanyTabList = ({
     },
     {
       title: '销售状态',
-      width: 60,
+      width: 90,
       dataIndex: 'sellStatus',
       render: (_, record) => (
         <>
@@ -272,7 +268,7 @@ const CompanyTabList = ({
       title: '维护状态',
       dataIndex: 'preserveStatus',
       key: 'preserveStatus',
-      width: 60,
+      width: 90,
       ellipsis: true,
       render: (_, record) => (
         <>
@@ -314,8 +310,7 @@ const CompanyTabList = ({
       render: (text, record) => (
         <span
           onClick={() => showDrawerBusiness(record.id)}
-          className="text-primary cursor-pointer hover:text-[#967bbd]"
-        >
+          className="text-primary cursor-pointer hover:text-[#967bbd]">
           {text}
         </span>
       )