import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
// 专家组列表
export const opinionColumns: BasicColumn[] = [
    {
        title: '姓名',
        dataIndex: 'zjxm',
        align: 'center'
    },
    {
        title: '工作单位',
        dataIndex: 'gzdw',
        align: 'center'
    },
    {
        title: '职务',
        dataIndex: 'zczw',
        align: 'center'
    },
    {
        title: '联系电话',
        dataIndex: 'lxdh',
        align: 'center'
    },
    {
        title: '邮箱',
        dataIndex: 'mail',
        align: 'center'
    },
    {
        title: '是否组长',
        dataIndex: 'isHead',
        customRender: ({ record }: any) => {
            return record.isHead == 1 ? '是' : '否'
        },
        align: 'center'
    },

]
// 参会人员信息
export const participantsColumns: BasicColumn[] = [
    {
        title: '姓名',
        dataIndex: 'zjxm',
        align: 'center'
    },
    {
        title: '工作单位',
        dataIndex: 'gzdw',
        align: 'center'
    },
    {
        title: '职务',
        dataIndex: 'zczw',
        align: 'center'
    },
    {
        title: '联系电话',
        dataIndex: 'lxdh',
        align: 'center'
    },
    {
        title: '邮箱',
        dataIndex: 'mail',
        align: 'center'
    },
]
// 下达指导意见
export const AdviceFormSchema: FormSchema[] = [
    { label: '污染地块ID', field: 'wrdkid', required: true, component: 'Input', show: false },
    { label: '下单意见', field: 'clyj', required: true, component: 'Input' },
    {
        label: '文件',
        field: 'clyjfj',
        required: true,
        component: 'JUpload',
        componentProps: {
            showUploadList: false,
        },
    },
]
