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

export const columns: BasicColumn[] = [
  {
    title: '学校ID',
    align: 'center',
    dataIndex: 'schoolId',
  },
  {
    title: '宿舍名称',
    align: 'center',
    dataIndex: 'dormName',
  },
  {
    title: '校区ID',
    align: 'center',
    dataIndex: 'campusId',
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    label: '学校ID',
    field: 'schoolId',
    component: 'InputNumber',
    colProps: { span: 6 },
  },
  {
    label: '宿舍名称',
    field: 'dormName',
    component: 'Input',
    colProps: { span: 6 },
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '学校ID',
    field: 'schoolId',
    component: 'InputNumber',
    required: true,
  },
  {
    label: '宿舍名称',
    field: 'dormName',
    component: 'Input',
    required: true,
  },
  {
    label: '校区ID',
    field: 'campusId',
    component: 'InputNumber',
  },
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];

export function getBpmFormSchema(_formData): FormSchema[] {
  return formSchema;
}

