浏览代码

feat: 卡片弹窗,客户信息,增加 对应单位信息(可点击查看详情)

outaozhen 5 年之前
父节点
当前提交
bd8e9e5dc7
共有 2 个文件被更改,包括 11 次插入2 次删除
  1. 3 0
      src/global.less
  2. 8 2
      src/pages/workbench/Dashboard/components/RatioPanels.jsx

+ 3 - 0
src/global.less

@@ -176,6 +176,9 @@ input:-webkit-autofill:active {
 .ant-select-selection-item {
   text-overflow: unset;
 }
+.ant-typography {
+  color: inherit;
+}
 // .react-resizable {
 //   background-clip: padding-box !important;
 // }

+ 8 - 2
src/pages/workbench/Dashboard/components/RatioPanels.jsx

@@ -6,7 +6,6 @@ import consts from '@/consts'
 import { servicelogEnum } from '@/pages/Customer/Company/components/CompanyDetail/LowerList'
 import ClientDetail from '@/pages/Customer/Client/components/ClientDetail'
 import CompanyDetail from '@/pages/Customer/Company/components/CompanyDetail'
-import { Badge } from 'antd'
 import { cardTypeMap } from '../consts'
 import { useModal } from '@/components/Modal'
 
@@ -226,8 +225,15 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
       {
         dataIndex: 'companyName',
         title: '单位名称',
+        width: '16%',
         ellipsis: true,
-        width: '16%'
+        render: (companyName, record) => (
+          <span
+            className="text-primary cursor-pointer hover:text-[#967bbd]"
+            onClick={() => showDrawerComapny(record.companyId)}>
+            {companyName}
+          </span>
+        )
       },
       {
         dataIndex: 'districtName',