import { Badge } from 'antd'; export default function() { return [ { title: '合同名称', dataIndex: 'contractName', key: 'contractName', }, { title: '合同类型', dataIndex: 'contractType', key: 'contractType', }, { title: '企业档案编号', dataIndex: 'comFileNo', key: 'comFileNo', }, // { // title: '甲方名称', // dataIndex: 'firstPartyName', // key: 'firstPartyName', // }, { title: '乙方名称', dataIndex: 'secondPartyName', key: 'secondPartyName', }, // { // title: '丙方名称', // dataIndex: 'thirdPartyName', // key: 'thirdPartyName', // }, { title: '合同有效期', dataIndex: 'effectEndDate', render: (text, record) => { return `${record.effectStartDate}~${record.effectEndDate}`; } }, { title: '合同状态', dataIndex: 'contractEffect', key: 'contractEffect', // width: 100, render: (text, record) => { let status = ''; switch (true) { case text == '未生效': status = 'warning'; break; case text == '有效': status = 'success'; break; case text == '终止': status = 'error'; } return (
{text}
); } }, // { // title: '操作', // dataIndex: 'op', // key: 'op', // render: () => { // return ( // 移除关联 // ) // } // }, ]; }