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

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

export const columns: BasicColumn[] = [
  {
    title: '主键id',
    dataIndex: 'id',
    ifShow: false,
  },
  {
    title: '单位名称',
    dataIndex: 'name',
  },

  {
    title: '联系人',
    dataIndex: 'contacts',
  },
  {
    title: '联系电话',
    dataIndex: 'contactsPhone',
  },
  {
    title: '接受报警短信手机',
    dataIndex: 'alarmPhone',
  },
];

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: '联系人',
    field: 'contacts',
    required: true,
    component: 'Input',
  },
  {
    label: '联系电话',
    field: 'contactsPhone',
    required: true,
    component: 'Input',
  },
  {
    label: '接受报警短信手机',
    field: 'alarmPhone',
    required: true,
    component: 'Input',
  },
  // {
  //   label: '行政区域',
  //   field: 'area',
  //   required: true,
  //   component: 'Input',
  // },
];
