Kaynağa Gözat

feat: 联系人客户弹窗

outaozhen 5 yıl önce
ebeveyn
işleme
f0854d270b

+ 1 - 1
src/pages/Customer/Company/index.jsx

@@ -137,7 +137,7 @@ const Company = props => {
         height: '100vh',
         overflowY: 'hidden'
       },
-      children: <CompanyDetail id={id} orderIds={state.orderIds} />
+      children: <CompanyDetail dataId={id} orderIds={state.orderIds} />
     })
     toggleDrawer()
   }

+ 2 - 3
src/pages/Customer/Contact/index.jsx

@@ -17,6 +17,7 @@ import { useTableScroll } from '@/hooks/useAutoTable'
 import { apiAddClient, queryContact } from '@/services/contact'
 import { LabelModeType } from '../Company/components/PersonLabel'
 import { apiBatchLink } from '@/services/customer'
+import styles from './index.less'
 
 const Contact = props => {
   const { toggleDrawer, setDrawerProps } = useModal()
@@ -159,9 +160,7 @@ const Contact = props => {
       width: 150,
       ellipsis: true,
       render: (companyName, record) => (
-        <span
-          onClick={() => showDrawerComapny(record.id)}
-          className="text-primary cursor-pointer hover:text-[#967bbd]">
+        <span onClick={() => showDrawerComapny(record.companyId)} className={styles.textPurple}>
           {companyName}
         </span>
       ),

+ 6 - 0
src/pages/Customer/Contact/index.less

@@ -0,0 +1,6 @@
+.textPurple {
+  :global(.ant-typography) {
+    color: #886ab5;
+    cursor: pointer;
+  }
+}