import { FormSchema } from '/@/components/Table';

export const standardFormSchema: FormSchema[] = [
  {
    field: 'typename',
    label: '类型名称',
    component: 'Input',
    required: true,
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入类型名称',
    },
  },
  {
    field: 'typecode',
    label: '类型代码',
    component: 'Input',
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入用户名类型代码',
    },
  },
];
export const parameterInfoFormSchema: FormSchema[] = [
  {
    field: 'name',
    label: '指标名称',
    component: 'Select',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'thresholdType',
    label: '指标名称',
    component: 'Select',
    required: true,
    colProps: { span: 12 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'level',
    label: '等级',
    component: 'Select',
    required: true,

    colProps: { span: 12 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'specialThreshold',
    label: '特定阈值',
    component: 'RadioGroup',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      options: [
        { label: '是', value: 1 },
        { label: '否', value: 0 },
      ],
    },
  },
  {
    field: 'threshold',
    label: '阈值',
    component: 'Input',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
    },
  },
];
export const messageSettingFormSchema: FormSchema[] = [
  {
    field: 'messagePush',
    label: '推送消息',
    component: 'RadioGroup',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      options: [
        { label: '是', value: 1 },
        { label: '否', value: 0 },
      ],
    },
  },
  {
    field: 'messageTitle',
    label: '消息标题',
    component: 'Input',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
    },
  },
  {
    field: 'messagePush',
    label: '消息内容',
    component: 'InputTextArea',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      rows: 3,
    },
  },
];
export const validFormSchema: FormSchema[] = [
  {
    field: 'validDate',
    label: '有效日期',
    component: 'RadioGroup',
    required: true,
    colProps: { span: 16 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      options: [
        { label: '全年', value: 1 },
        { label: '指定日期', value: 0 },
      ],
    },
  },
  // {
  //   field: 'date',
  //   label: '',
  //   component: 'DatePicker',
  //   required: true,
  //   colProps: { span: 8 },
  //   componentProps: {
  //     maxLength: 255,
  //     placeholder: '',
  //   },
  // },
  {
    field: 'validTime',
    label: '有效时段',
    component: 'RadioGroup',
    required: true,
    colProps: { span: 16 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      options: [
        { label: '全天', value: 1 },
        { label: '指定时段', value: 0 },
      ],
    },
  },
  // {
  //   field: 'time',
  //   label: '',
  //   component: 'TimePicker',
  //   required: true,
  //   colProps: { span: 8 },
  //   componentProps: {
  //     maxLength: 255,
  //     placeholder: '',
  //   },
  // },
];
