Просмотр исходного кода

feat: 仪表盘新增联系人弹窗详情

outaozhen 5 лет назад
Родитель
Сommit
477c64ed0f

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

@@ -212,8 +212,8 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
     0: [
       {
         dataIndex: 'clientName',
-        title: '客户名称',
-        width: '10%',
+        title: '联系人名称',
+        width: '13%',
         render: (clientName, record) => (
           <span
             onClick={() => showDrawer(record.id)}

+ 4 - 2
src/pages/workbench/Dashboard/index.jsx

@@ -45,6 +45,9 @@ const Dashboard = () => {
   // 展示卡片详情
   const handleRatioCard = dataType => {
     setModalProps({
+      zIndex: '1100',
+      closable: true,
+      onClose: () => toggleModal(),
       width: '90vw',
       modalRender: () => (
         <RatioPanels
@@ -53,8 +56,7 @@ const Dashboard = () => {
           retioCyclical={state.params.cyclical}
           dataPermission={state.params.dataPermission}
         />
-      ),
-      onCancel: () => toggleModal()
+      )
     })
     toggleModal()
   }