Преглед на файлове

feat: 仪表盘弹窗增加标题和调整列

outaozhen преди 5 години
родител
ревизия
fdc57f9eef
променени са 1 файла, в които са добавени 19 реда и са изтрити 7 реда
  1. 19 7
      src/pages/workbench/Dashboard/components/ReminderList.jsx

+ 19 - 7
src/pages/workbench/Dashboard/components/ReminderList.jsx

@@ -37,7 +37,8 @@ const ReminderList = props => {
     {
       title: '服务内容',
       dataIndex: 'serviceContent',
-      width: '20%'
+      width: '20%',
+      ellipsis: true
     },
     {
       title: '备忘时间',
@@ -47,7 +48,8 @@ const ReminderList = props => {
     {
       title: '备忘内容',
       dataIndex: 'memoContent',
-      width: '20%'
+      width: '20%',
+      ellipsis: true
     }
   ]
   const customerColumns = [
@@ -74,7 +76,8 @@ const ReminderList = props => {
     {
       title: '服务内容',
       dataIndex: 'serviceContent',
-      width: '20%'
+      width: '20%',
+      ellipsis: true
     },
     {
       title: '备忘时间',
@@ -84,7 +87,8 @@ const ReminderList = props => {
     {
       title: '备忘内容',
       dataIndex: 'memoContent',
-      width: '20%'
+      width: '20%',
+      ellipsis: true
     }
   ]
   const businessColumns = [
@@ -106,7 +110,8 @@ const ReminderList = props => {
     {
       title: '服务内容',
       dataIndex: 'serviceContent',
-      width: '25%'
+      width: '25%',
+      ellipsis: true
     },
     {
       title: '备忘时间',
@@ -116,7 +121,8 @@ const ReminderList = props => {
     {
       title: '备忘内容',
       dataIndex: 'memoContent',
-      width: '25%'
+      width: '25%',
+      ellipsis: true
     }
   ]
   const dataMap = {
@@ -134,6 +140,12 @@ const ReminderList = props => {
     }
   }
 
+  const titleMap = {
+    0: { title: '联系人' },
+    1: { title: '客户' },
+    2: { title: '商机' }
+  }
+
   const closeModal = () => {
     dispatch({
       type: 'single/changeModal'
@@ -141,7 +153,7 @@ const ReminderList = props => {
   }
 
   return (
-    <CustomModal>
+    <CustomModal title={titleMap[dataType].title}>
       <div className="mx-4">
         <ProTable
           size="small"