import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; import { Select, Input, Table, Spin, Button } from '@douyinfe/semi-ui'; import { RESERVEITEM_TYPE } from '../constants'; import '../style.less' const ReserveItemsDepSummary = (props) => { const { dispatch, actions, isRequesting, reserveItemReport } = props; const [downloadUrl, setDownloadUrl] = useState(null); const [downloadKey, setDownloadKey] = useState(null); useEffect(() => { dispatch(actions.businessManagement.getReserveItemReport(RESERVEITEM_TYPE.depSummary)); }, []); const exportReport = (url) => { setDownloadUrl(`/_file-server${url}`); setDownloadKey(Math.random()); } const columns = [ { title: '序号', dataIndex: 'name', render: (text, record, index) => index + 1 }, { title: '时间', dataIndex: 'date', }, { title: '名称', dataIndex: 'path', }, { title: '操作', dataIndex: 'action', render: (text, record, indexe) => () }, ]; return ( <>
业务管理
/
项目报表
/
部门储备项目汇总表
部门储备项目汇总表
SUMMARY OF DEPARTMENTAL RESERVE ITEMS
{ downloadUrl ?