// import React, { useEffect, useState } from 'react'; // import { connect } from 'react-redux'; // import { Spin, Drawer, Button } from 'antd'; // import '../style.less'; // import { EditableProTable } from '@ant-design/pro-table'; // const CompileDrawer = (props) => { // const { dispatch, actions, user, loading, visible, checkRow, close, reportRectifyDetail, checkAction } = props // const [requesting, setRequesting] = useState(false) // const [dataSource, setDataSource] = useState([]) // const { report } = actions // const isCheck = checkAction == 'check' // useEffect(() => { // if (checkRow.day) { // dispatch(report.reportRectifyDetail(checkRow.day, checkRow.depId)) // } // }, [checkRow]) // useEffect(() => { // let data = reportRectifyDetail // let i = 1 // for (let d of data) { // d.index_ = i++ // } // setDataSource(data) // }, [reportRectifyDetail]) // return ( // { // close() // }} // visible={visible} // width={'82%'} // > // // r.id) // }} // toolBarRender={() => [ // isCheck ? '' : // // ]} // > // // // // ) // } // function mapStateToProps (state) { // const { auth, global, members, reportRectifyDetail } = state; // return { // loading: reportRectifyDetail.isRequesting, // user: auth.user, // actions: global.actions, // members: members.data, // reportRectifyDetail: reportRectifyDetail.data || [] // }; // } // export default connect(mapStateToProps)(CompileDrawer);