import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; import { Select, Input, Button, Banner, Radio, Tooltip, Table } from '@douyinfe/semi-ui'; import { IconSearch } from '@douyinfe/semi-icons'; import '../style.less' import moment from 'moment' const ReserveItemsReporting = (props) => { const [downloadUrl, setDownloadUrl] = useState(null); const [warningBanner, setWarningBanner] = useState(null); const columns = [ { title: '序号', dataIndex: 'index', render: (text, record, index) => index + 1 }, { title: '部门', dataIndex: 'department', }, { title: '销售经理', dataIndex: 'salesManager', }, { title: '项目名称', dataIndex: 'projectName', }, { title: '客户名称', dataIndex: 'customerName', }, { title: '项目类型', dataIndex: 'projectType', }, { title: '项目状态', dataIndex: 'projectState', }, { title: '项目描述', dataIndex: 'projectDescribe', }, { title: '初次提交时间', dataIndex: 'creationTime', }, { title: '储备项目周期', dataIndex: 'reserveProjectCycle', }, { title: '最新更新时间', dataIndex: 'lastUpdateTime', }, { title: '最近拜访时间', dataIndex: 'lastVisitTime', }, { title: '拜访间隔周期(天)', dataIndex: 'intervalPeriodTime', }, { title: '操作', dataIndex: 'action', render: (text, record, indexe) => () }, ]; const data = []; const exportAll = () => { const { dispatch, actions } = props; dispatch(actions.businessManagement.getFilingReport()).then(res => { const { payload } = res; if (payload && payload.url) { setDownloadUrl(`${payload.url}/datacenter/reserve`); } else { setWarningBanner("导出地址有误,导出失败"); } }); } return ( <>