Forráskód Böngészése

feat: 仪表盘坏比数据badge未引入报错

lanjianrong 4 éve
szülő
commit
2c72b4f88e

+ 9 - 4
src/pages/workbench/Dashboard/components/RatioPanels.jsx

@@ -8,6 +8,7 @@ import ClientDetail from '@/pages/Customer/Client/components/ClientDetail'
 import CompanyDetail from '@/pages/Customer/Company/components/CompanyDetail'
 import { cardTypeMap } from '../consts'
 import { useModal } from '@/components/Modal'
+import { Badge } from 'antd'
 
 const dataTypeEunm = {
   0: {
@@ -83,7 +84,8 @@ const ServiceRatioPanels = ({ staffIds, cyclical, dataPermission }) => {
       render: (text, record) => (
         <span
           onClick={() => showDrawer(record[activeKeyMap[state.activeKey].id])}
-          className="text-primary cursor-pointer hover:text-[#967bbd]">
+          className="text-primary cursor-pointer hover:text-[#967bbd]"
+        >
           {text}
         </span>
       )
@@ -217,7 +219,8 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
         render: (clientName, record) => (
           <span
             onClick={() => showDrawer(record.id)}
-            className="text-primary cursor-pointer hover:text-[#967bbd]">
+            className="text-primary cursor-pointer hover:text-[#967bbd]"
+          >
             {clientName}
           </span>
         )
@@ -230,7 +233,8 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
         render: (companyName, record) => (
           <span
             className="text-primary cursor-pointer hover:text-[#967bbd]"
-            onClick={() => showDrawerComapny(record.companyId)}>
+            onClick={() => showDrawerComapny(record.companyId)}
+          >
             {companyName}
           </span>
         )
@@ -281,7 +285,8 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
         render: (companyName, record) => (
           <span
             onClick={() => showDrawerComapny(record.id)}
-            className="text-primary cursor-pointer hover:text-[#967bbd]">
+            className="text-primary cursor-pointer hover:text-[#967bbd]"
+          >
             {companyName}
           </span>
         )