Przeglądaj źródła

fix: 仪表盘服务提醒表格调整

outaozhen 5 lat temu
rodzic
commit
e258e1474b

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

@@ -17,12 +17,12 @@ const ReminderList = props => {
     {
       title: '联系人名称',
       dataIndex: 'clientName',
-      width: '15%'
+      width: '7%'
     },
     {
       title: '地区',
       dataIndex: 'districtName',
-      width: '15%'
+      width: '12%'
     },
     {
       title: '手机',
@@ -37,7 +37,7 @@ const ReminderList = props => {
     {
       title: '服务内容',
       dataIndex: 'serviceContent',
-      width: '20%',
+      width: '27%',
       ellipsis: true
     },
     {
@@ -48,7 +48,7 @@ const ReminderList = props => {
     {
       title: '备忘内容',
       dataIndex: 'memoContent',
-      width: '20%',
+      width: '27%',
       ellipsis: true
     }
   ]
@@ -61,7 +61,7 @@ const ReminderList = props => {
     {
       title: '地区',
       dataIndex: 'districtName',
-      width: '15%'
+      width: '12%'
     },
     {
       title: '电话',
@@ -76,7 +76,7 @@ const ReminderList = props => {
     {
       title: '服务内容',
       dataIndex: 'serviceContent',
-      width: '20%',
+      width: '25%',
       ellipsis: true
     },
     {
@@ -87,7 +87,7 @@ const ReminderList = props => {
     {
       title: '备忘内容',
       dataIndex: 'memoContent',
-      width: '20%',
+      width: '25%',
       ellipsis: true
     }
   ]
@@ -168,6 +168,8 @@ const ReminderList = props => {
               total: data.total
             }
           }}
+          scroll={{ y: 400 }}
+          pagination={{ defaultPageSize: 10 }}
           search={false}
           toolBarRender={false}
         />

+ 1 - 1
src/pages/workbench/Dashboard/index.jsx

@@ -34,7 +34,7 @@ const Dashboard = () => {
   // 展示服务弹窗详情
   const handleReminderList = (dataType, reminderCyclical) => {
     setModalProps({
-      width: '50vw',
+      width: '90vw',
       modalRender: () => <ReminderList dataType={dataType} reminderCyclical={reminderCyclical} />,
       onCancel: () => toggleModal()
     })