import { BasicColumn } from '/@/components/Table/src/types/table';
import { FormSchema } from '/@/components/Form';

export function getBasicColumns(): BasicColumn[] {
  return [
    {
      title: '处理完成时间',
      dataIndex: 'time',
      key: 'time',
    },
    {
      title: '延时',
      dataIndex: 'delay',
      key: 'delay',
    },
    {
      title: '重复时段数',
      dataIndex: 'repeat',
      key: 'repeat',
    },
    {
      title: '批处理个数',
      dataIndex: 'batchsize',
      key: 'batchsize',
    },
    
  ];
}
export const tenantFormSchema: FormSchema[] = [
  {
    field: 'time',
    label: '起始时间',
    component: 'DatePicker',
    colProps: { span: 22 },
    required: true,
    componentProps: {
      showTime: {
        valueFormat: 'YYYY-MM-DD HH:mm:ss',
        format: 'YYYY-MM-DD HH:mm:ss',
      },
    },
  },
  {
    field: 'delay',
    label: '延时',
    component: 'InputNumber',
    colProps: { span: 22 },
    required: true,
    componentProps: {
      maxLength: 30,
    },
  },
  {
    field: 'repeat',
    label: '重复时段数',
    component: 'InputNumber',
    colProps: { span: 22 },
    required: true,
    componentProps: {
      maxLength: 30,
    },
  },
  {
    field: 'batchsize',
    label: '批处理个数',
    component: 'InputNumber',
    colProps: { span: 22 },
    required: true,
    componentProps: {
      maxLength: 30,
    },
  },
  
];
