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

export const columns: BasicColumn[] = [
  {
    title: '序号',
    dataIndex: 'id',
  },
  {
    title: '具体性质',
    dataIndex: 'specificNature',
  },
  {
    title: '面积',
    dataIndex: 'area',
  },
  {
    title: '详细位置',
    dataIndex: 'detailedLocation',
  },
  {
    title: '房屋结构',
    dataIndex: 'structure',
  },
  {
    title: '房屋使用期限',
    dataIndex: 'houseUseTerm',
  },
  {
    title: '流转期限',
    dataIndex: 'circulationTerm',
  },
  {
    title: '价格',
    dataIndex: 'price',
  },
  {
    title: '现状描述',
    dataIndex: 'currentStatusDescription',
  },
  {
    title: '权属人',
    dataIndex: 'owner',
  },
  {
    title: '联系电话',
    dataIndex: 'contactNumber',
  },
  {
    title: '备注',
    dataIndex: 'remarks',
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'key',
    label: '序号',
    component: 'Input',
    colProps: { span: 8 },
  },
];
export const defaultImage = {
  fileName: '',
  fileSize: '',
  path: '',
  type: 0,
  lng: '',
  lat: '',
  angle: 0,
  tag: ''
}
export const defaultVideo = {
  fileName: '',
  fileSize: '',
  path: '',
  type: 0,
  lng: '',
  lat: '',
  angle: 0,
  tag: ''
}
export const defaultGeom =  {
  geom: '',
  area: 0
}
export const defaultValue = {
  id: 0,
  serialNumber: '',
  status: '',
  specificNature: '',
  area: '',
  landUseTerm: '',
  circulationTerm: '',
  price: '',
  currentStatusDescription: '',
  owner: '',
  contactNumber: '',
  remarks: '',
  detailedLocation: '',
  images: [],
  videos: [],
  geoms: []
}
