|
@@ -1,10 +1,15 @@
|
|
|
import React, { useState, useEffect } from 'react'
|
|
import React, { useState, useEffect } from 'react'
|
|
|
|
|
+import { Button } from 'antd'
|
|
|
import consts from '@/consts'
|
|
import consts from '@/consts'
|
|
|
|
|
+import { useDispatch } from 'dva'
|
|
|
import { connect } from 'dva'
|
|
import { connect } from 'dva'
|
|
|
import ProTable from '@ant-design/pro-table'
|
|
import ProTable from '@ant-design/pro-table'
|
|
|
import { queryReminderList } from '@/services/dashboard'
|
|
import { queryReminderList } from '@/services/dashboard'
|
|
|
|
|
+import { CloseOutlined } from '@ant-design/icons'
|
|
|
|
|
+import styles from './index.less'
|
|
|
|
|
|
|
|
const ReminderList = props => {
|
|
const ReminderList = props => {
|
|
|
|
|
+ const dispatch = useDispatch()
|
|
|
const { visible, dataId = '' } = props
|
|
const { visible, dataId = '' } = props
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
|
loading: false,
|
|
loading: false,
|
|
@@ -23,6 +28,12 @@ const ReminderList = props => {
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
visible && initData(dataId)
|
|
visible && initData(dataId)
|
|
|
}, [visible])
|
|
}, [visible])
|
|
|
|
|
+
|
|
|
|
|
+ const closeModal = () => {
|
|
|
|
|
+ dispatch({
|
|
|
|
|
+ type: 'single/changeModal'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
const columns = [
|
|
const columns = [
|
|
|
{
|
|
{
|
|
|
title: '客户名称',
|
|
title: '客户名称',
|
|
@@ -62,15 +73,29 @@ const ReminderList = props => {
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
return (
|
|
return (
|
|
|
- <div>
|
|
|
|
|
- <ProTable
|
|
|
|
|
- rowKey={record => record.rank}
|
|
|
|
|
- columns={columns}
|
|
|
|
|
- // dataSource={}
|
|
|
|
|
- search={false}
|
|
|
|
|
- toolBarRender={false}
|
|
|
|
|
- pagination={false}
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <div className={['ant-modal-content', styles.modalContainer].join(' ')}>
|
|
|
|
|
+ <div className={styles.modalHeader}>
|
|
|
|
|
+ <span className={styles.closeIcon}>
|
|
|
|
|
+ <CloseOutlined onClick={closeModal} />
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="mx-4">
|
|
|
|
|
+ <ProTable
|
|
|
|
|
+ rowKey={record => record.rank}
|
|
|
|
|
+ columns={columns}
|
|
|
|
|
+ // dataSource={}
|
|
|
|
|
+ search={false}
|
|
|
|
|
+ toolBarRender={false}
|
|
|
|
|
+ pagination={false}
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className={styles.modalFooter}>
|
|
|
|
|
+ <div className="text-right">
|
|
|
|
|
+ <Button type="button" onClick={closeModal}>
|
|
|
|
|
+ 关闭
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|