import { BasicColumn, FormSchema } from '/@/components/Table';
import { DescItem } from '/@/components/Description';
export const columns: BasicColumn[] = [
  {
    title: '任务名称',
    dataIndex: 'jobName',
  },
  {
    title: '任务分组',
    dataIndex: 'jobGroup',
  },
  {
    title: '调用目标字符串',
    dataIndex: 'invokeTarget',
  },
  {
    title: '日志信息',
    dataIndex: 'jobMessage',
  },
  {
    title: '状态',
    dataIndex: 'status',
  },
  {
    title: '开始时间',
    dataIndex: 'startTime',
    width: 150,
    fixed: 'right',
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'jobName',
    label: '任务名称',
    component: 'Input',
    componentProps: {
      placeholder: '请输入表名称',
    },
  },
];

export const viewSchema: DescItem[] = [
  {
    label: '任务名称',
    field: 'jobName',
  },
  {
    label: '任务分组',
    field: 'jobGroup',
  },
  {
    label: '调用目标字符串',
    field: 'invokeTarget',
  },
  {
    label: '任务状态',
    field: 'status',
  },
  {
    label: '日志信息',
    field: 'jobMessage',
  },
  {
    label: '创建时间',
    field: 'startTime',
  },
  {
    label: '异常信息',
    field: 'exceptionInfo',
  },
];
