import React,{Component} from "react";
import {Modal, Table, Tooltip} from "antd";

class CorrespondingDetails extends Component{
    constructor(props) {
        super(props);
        this.state={
            columns:[
                {
                    title: "申报项目",
                    dataIndex: "project",
                    key: "project",
                },
                {
                    title: "咨询师",
                    dataIndex: "consultant",
                    key: "consultant",
                },
                {
                    title: "申报批次",
                    dataIndex: "declareBatch",
                    key: "declareBatch",
                },
                {
                    title: "证书编号",
                    dataIndex: "certificationNo",
                    key: "certificationNo",
                },
            ]
        }
    }

    render() {
        return (
            <Modal
                className="customeDetails"
                footer=""
                title='申报项目对应列表'
                width="800px"
                visible={this.props.visible}
                onOk={this.props.onCancel}
                onCancel={this.props.onCancel}
                maskClosable={false}
            >
                <div>
                    <Table
                        bordered
                        columns={this.state.columns}
                        dataSource={this.props.detailsInfor || []}
                        pagination={false}
                    />
                </div>
            </Modal>
        )
    }
}

export default CorrespondingDetails;
