wms-antdvue/.svn/pristine/16/1617463f18a0c82151a35f9e15214ea330a474ab.svn-base
2024-11-07 16:33:03 +08:00

66 lines
1.1 KiB
Plaintext

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,
},
];