lanjianrong 4 years ago
parent
commit
148a9cc93b

+ 4 - 4
src/pages/Customer/Business/index.jsx

@@ -96,7 +96,7 @@ const Business = ({ dispatch, groupList, shouldUpdate, loading, refreshGroupList
       render: (text, record) => (
         <span
           onClick={() => showDrawer(record.id)}
-          className="text-primary cursor-pointer hover:text-[#967bbd]"
+          className="text-primary cursor-pointer hover:text-hex-967bbd"
         >
           {text}
         </span>
@@ -110,7 +110,7 @@ const Business = ({ dispatch, groupList, shouldUpdate, loading, refreshGroupList
         record.customerId && (
           <span
             onClick={() => showDrawer(record.customerId, true)}
-            className="text-primary cursor-pointer hover:text-[#967bbd]"
+            className="text-primary cursor-pointer hover:text-hex-967bbd"
           >
             {text}
           </span>
@@ -168,7 +168,7 @@ const Business = ({ dispatch, groupList, shouldUpdate, loading, refreshGroupList
   }
   return (
     <div className="h-full w-full flex flex-row justify-between">
-      <div className="h-full w-3/20 rounded-4px shadow-card">
+      <div className="h-full w-1/5 rounded-4px shadow-card">
         <div className="p-4 border-b-1 border-solid border-black border-opacity-10 bg-[#f7f9fa] flex justify-around items-center">
           <div className="w-1/2 text-md">商机漏斗</div>
           <div className="w-1/2">
@@ -191,7 +191,7 @@ const Business = ({ dispatch, groupList, shouldUpdate, loading, refreshGroupList
           </div>
         </div>
       </div>
-      <div className="w-17/20">
+      <div className="w-4/5">
         <div className="ml-8 bg-white shadow-card">
           <BasicTable
             actionRef={tRef}

+ 1 - 0
src/pages/Customer/Company/components/ConnectCompany/index.jsx

@@ -85,6 +85,7 @@ const ConnectCompany = ({ dataId, onSelect, preUrl, defaultAddibleValue }) => {
   }
 
   const handleListScroll = () => {
+    if (!scrollRef.current) return
     // 未滚动到底部
     if (
       scrollRef.current.scrollHeight - scrollRef.current.clientHeight <=