import ConfirmButton from '../../components/common/ConfirmButton';
import { message } from "antd/lib/index";
import React from 'react';
import FormPage from '../../components/FormPage';


export default {
    sendToIdentifyUser: ({ record, close, loadData, getLoadParam, login, btn, dispatch }) => {
        const confirmRevert = () => {
            dispatch({
                type: 'app/getDataByGet',
                url: 'FO/FOTechDisclosureFrom/PublishToIdentify?ID='+record.ID,
                onComplete: (ret) => {
                    if (ret) {
                        message.success('执行成功');
                        loadData();
                    }
                }
            })
        };
        const isReturn = record.FORM_STATUS >=1;
        return {
            content: <ConfirmButton isConfirm={true} confirmTitle="确认通知被交底人?" onClick={confirmRevert}
                type={'default'} icon={'check-circle'} size="small" title={btn.LABEL} disabled={isReturn} />
        }
    },
};

