
import { Button, Popconfirm } from 'antd'
import FormPage from '../../components/FormPage'
import { extendRule, initFilter, guid } from "../../utils/common";

//用户组列表页
export default {
    btnRelatedDetail: ({ record, close, loadData, login, dispatch }) => {
        const closeF = () => {
            close();
            loadData();
        };

        const data = {
            id: (record ? record.ID : ''),
            close: closeF,
            rules: [{ field: 'ID', operator: 1, value: (record ? record.ID : '') },
                    { field: 'PARENT_ID', operator: 2, value: guid() }]
        };
        return {
            content: <FormPage formCode={'MM013'} data={data} />
        }
    }

}
