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

export const accountFormSchema: FormSchema[] = [
  {
    field: 'title',
    label: '',
    slot: 'title',
    component: 'Input',
  },
  {
    field: 'id',
    label: 'id',
    component: 'Input',
    show: false,
    componentProps: {
      maxLength: 36,
    },
  },
  {
    field: 'lymc',
    label: '流域名称',
    component: 'Input',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'titleL',
    label: '',
    slot: 'titleL',
    component: 'Input',
  },
  {
    field: 'startLocationLon',
    label: '起点坐标',
    component: 'Input',
    required: true,
    colProps: { span: 6 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'startLocationX',
    label: '起点-X',
    component: 'Input',
    colProps: { span: 6 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'startLocationY',
    label: '起点-Y',
    component: 'Input',
    colProps: { span: 6 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'startLocationZ',
    label: '起点-Z',
    component: 'Input',
    colProps: { span: 6 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'endLocationLat',
    label: '终点坐标',
    component: 'Input',
    required: true,
    colProps: { span: 6 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'endLocationX',
    label: '终点-X',
    component: 'Input',
    colProps: { span: 6 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'endLocationY',
    label: '终点-Y',
    component: 'Input',
    colProps: { span: 6 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'endLocationZ',
    label: '终点-Z',
    component: 'Input',
    colProps: { span: 6 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'note',
    label: '备注',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      rows: 4,
      allowClear: false,
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'fanwei',
    label: '范围',
    component: 'Input',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'icon',
    label: '',
    slot: 'map',
    component: 'Input',
    // componentProps: {
    //   maxLength: 255,
    // },
  },
  {
    field: 'titleT',
    label: '',
    slot: 'titleT',
    component: 'Input',
  },
  {
    field: 'qxgkNjy',
    label: '年降雨',
    component: 'Input',
    required: true,
    colProps: { span: 12 },
    componentProps: {
      placeholder: '请输入（小数点后两位）',
    },
  },
  {
    field: 'qxgkQw',
    label: '气温',
    component: 'Input',
    required: true,
    colProps: { span: 12 },
    componentProps: {
      placeholder: '请输入（小数点后两位）',
    },
  },
  {
    field: 'dztjFyptzzq',
    label: '反应谱特征周期',
    component: 'Input',
    colProps: { span: 24 },
    componentProps: {
      placeholder: '请输入（小数点后六位）',
    },
  },
  {
    field: 'dztjDzgs',
    label: '地震概述',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'dztjDztj',
    label: '地形地貌',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'dztjDcyx',
    label: '地层岩性',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'dztjGzgk',
    label: '构造概况',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'dztjXgz',
    label: '新构造',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'dztjSwdztj',
    label: '水文地质条件',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'dztjWldztj',
    label: '物理地质条件',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'dztjDzld',
    label: '地震烈度',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'dztjDzdfzjsd',
    label: '地震动峰加速度',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'qxgkSsqhd',
    label: '所属气候带',
    component: 'InputTextArea',
    colProps: { span: 24 },
    componentProps: {
      maxLength: 500,
      placeholder: '请输入',
    },
  },
  {
    field: 'file',
    label: '上传附件',
    slot: 'upload',
    component: 'Input',
    // componentProps: {
    //   maxLength: 255,
    // },
  },
];
