lanjianrong 5 سال پیش
والد
کامیت
41f613a63e
1فایلهای تغییر یافته به همراه11 افزوده شده و 11 حذف شده
  1. 11 11
      src/pages/workbench/Dashboard/components/ReminderList.jsx

+ 11 - 11
src/pages/workbench/Dashboard/components/ReminderList.jsx

@@ -1,14 +1,14 @@
 import React from 'react'
-import { Button } from 'antd'
+// import { Button } from 'antd'
 import consts from '@/consts'
-import { useDispatch, connect } from 'umi'
+import { connect } from 'umi'
 import ProTable from '@ant-design/pro-table'
 import { queryReminderList } from '@/services/dashboard'
-import styles from '@/pages/Customer/Company/components/ConnectCompany/index.less'
+// import styles from '@/pages/Customer/Company/components/ConnectCompany/index.less'
 import CustomModal from '@/components/Modal/src/components/CustomModal'
 
 const ReminderList = props => {
-  const dispatch = useDispatch()
+  // const dispatch = useDispatch()
   const { dataType, reminderCyclical } = props
   // const [state, setState] = useState({
   //   params: { dataType, reminderCyclical }
@@ -146,11 +146,11 @@ const ReminderList = props => {
     2: { title: '商机' }
   }
 
-  const closeModal = () => {
-    dispatch({
-      type: 'single/changeModal'
-    })
-  }
+  // const closeModal = () => {
+  //   dispatch({
+  //     type: 'single/changeModal'
+  //   })
+  // }
 
   return (
     <CustomModal title={titleMap[dataType].title}>
@@ -175,13 +175,13 @@ const ReminderList = props => {
           toolBarRender={false}
         />
       </div>
-      <div className={styles.modalFooter}>
+      {/* <div className={styles.modalFooter}>
         <div className="text-right">
           <Button type="button" onClick={closeModal}>
             关闭
           </Button>
         </div>
-      </div>
+      </div> */}
     </CustomModal>
   )
 }