import { h } from 'vue'; import { Tag } from 'ant-design-vue'; export const columns = [ { title: 'ID', dataIndex: 'id', width: 100, }, { title: '任务名称', dataIndex: 'jobName', }, { title: '任务分组', dataIndex: 'jobGroup', }, { title: '任务触发器', dataIndex: 'jobTrigger', }, { title: '执行表达式', dataIndex: 'cronExpression', }, { title: '执行策略', dataIndex: 'executePolicyText', }, { title: '同步任务', dataIndex: 'isSync', customRender({ record }) { return h( Tag, { color: record.isSync == 1 ? 'processing' : 'warning', }, { default: () => (record.isSync == 1 ? '同步' : '异步'), }, ); }, }, { title: 'URL', dataIndex: 'url', }, { title: '状态', key:'status', dataIndex:'status' }, { title: '备注', dataIndex: 'note', }, { title: '操作', fixed:'right', dataIndex: 'action', key: 'action', width: 330, }, ];