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

export const siteInfoFormSchema: FormSchema[] = [
  {
    field: 'sitecode',
    label: '站点编号',
    component: 'Input',
    required: false,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '系统自动生成',
      disabled: true,
    },
  },
  {
    field: 'siteName',
    label: '站点名称',
    component: 'Input',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入站点名称',
    },
  },
  {
    field: 'siteNumber',
    label: '站点编码',
    component: 'Input',
    required: false,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入站点编码',
    },
  },
  {
    field: 'siteType',
    label: '站点类型',
    component: 'Select',
    required: false,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择站点类型',
    },
  },
  {
    field: 'component',
    label: '所属行业',
    component: 'Select',
    required: false,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'area',
    label: '所属行政区',
    component: 'Select',
    required: false,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'siteGroup',
    label: '站点分类',
    component: 'Input',
    required: false,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入站点分组',
    },
  },
  {
    field: 'siteGroup',
    label: '坐标',
    component: 'Input',
    required: false,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入站点分组',
    },
  },
  {
    field: 'remark',
    label: '备注',
    component: 'InputTextArea',
    required: false,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入站点分组',
      rows: 5,
    },
  },
];
export const columns: BasicColumn[] = [
  {
    title: '站点指标',
    dataIndex: 'site',
    width: 200,
  },
  {
    title: '设备指标',
    dataIndex: 'device',
    width: 200,
  },
  {
    title: '显示顺序',
    dataIndex: 'index',
    width: 380,
  },
  {
    title: '是否显示',
    dataIndex: 'show',
    width: 180,
  },
];
