data.tsx 1.15 KB
import { FormSchema } from '/@/components/Form';
import {findDictItemByCode} from "/@/api/system/dict";

export const step1Schemas: FormSchema[] = [
  {
    field: 'name',
    label: '配置名称',
    required: true,
    component:'Input',
    componentProps:{
      maxLength:30
    }
  },
  {
    field: 'deviceType',
    label: '队列优先级',
    component: 'ApiSelect',
    componentProps: {
      api:findDictItemByCode,
      params:{
        dictCode:"queen_execute_sequence"
      },
      labelField:'itemText',
      valueField:'itemValue',
    },
  },
  {
    label: '备注',
    field: 'remark',
    component: 'InputTextArea',
  }
];

export const step2Schemas: FormSchema[] = [
  {
    field: 'transportType',
    component: 'Select',
    label: '传输方式',
    defaultValue: 'DEFAULT',
    componentProps:{
      options: [
        {label: '默认', value: "DEFAULT"},
      ],
    }
  },
];

export const step3Schemas: FormSchema[] = [
  {
    field: 'transportType',
    component: 'Select',
    label: '报警规则',
    defaultValue: 'DEFAULT',
    componentProps:{
      options: [
        {label: '默认', value: "DEFAULT"},
      ],
    }
  },
];