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

export const formSchemas: FormSchema[] = [
  {
    label: '项目编号',
    field: 'code',
    component: 'Input',
  },
  {
    label: '项目名称',
    field: 'name',
    component: 'Input',
  },
  {
    label: '区域编号',
    field: 'areaCode',
    component: 'Input',
  },
];

export const columns: BasicColumn[] = [
  {
    title: '主键id',
    dataIndex: 'id',
  },
  {
    title: '项目编号',
    dataIndex: 'code',
  },
  {
    title: '项目名称',
    dataIndex: 'name',
  },
  {
    title: '区域编号',
    dataIndex: 'areaCode',
  },
  {
    title: '备注',
    dataIndex: 'remark',
  },
];

export const modalSchemas: FormSchema[] = [
  {
    label: '主键id',
    field: 'id',
    required: false,
    component: 'Input',
    show: false,
  },
  {
    label: '项目编号',
    field: 'code',
    required: true,
    component: 'Input',
  },
  {
    label: '项目名称',
    field: 'name',
    required: true,
    component: 'Input',
  },
  {
    label: '区域编号',
    field: 'areaCode',
    required: true,
    component: 'Input',
  },
  {
    label: '备注',
    field: 'remark',
    required: true,
    component: 'Input',
  },
];
