import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Form';
import { projectInfoList } from '@/api/basicInfo/projectsInfo';
import { getDictOptions } from '@/utils/dict';

export const formSchemas: FormSchema[] = [
  {
    label: '名称',
    field: 'name',
    component: 'Input',
  },

];

export const columns: BasicColumn[] = [
  {
    title: '用户ID',
    dataIndex: 'id',
    ifShow:false
  },
  {
    title: '名称',
    dataIndex: 'name',
  },
  {
    title: '路径',
    dataIndex: 'address',
  },
  {
    title: '备注',
    dataIndex: 'remark',
  },
];

export const modalSchemas: FormSchema[] = [
  {
    label: '用户ID',
    field: 'id',
    required: false,
    component: 'Input',
      show: false,
  },
  {
    label: '名称',
    field: 'name',
    required: true,
    component: 'Input',
  },
  {
    label: '路径',
    field: 'address',
    required: true,
    component: 'Input',
  },
  {
    label: '区域code',
    field: 'areaCode',
    required: true,
    slot: 'areaCode',
  },
  {
    label: '备注',
    field: 'remark',
    required: false,
    component: 'Input',
  },
];

export const energyModalSchemas: FormSchema[] = [
  {
    label: '主键id',
    field: 'id',
    required: false,
    component: 'Input',
    show: false,
  },

  {
    label: '节能停梯间隔(s) 多个;分隔',
    field: 'remark',
    required: false,
    component: 'InputTextArea',
    colProps: { span: 24 },
  },
];
