/*
 * @Author: your name
 * @Date: 2021-09-18 15:19:29
 * @LastEditTime: 2021-12-06 13:35:36
 * @LastEditors: Please set LastEditors
 * @Description: 筛选条件的 formItems 和 propFormData
 * @FilePath: \hyyfClient\src\views\BioSafety\personAdmin\queryCondition.config.js
 */
import { timeDate } from '../../../utils/index'

const formItems1 = [
  {
    type: 'input',
    label: '输入搜索：',
    placeholder: '请输入完整车牌号',
    field: 'name'
  }
]

const propFormData1 = {
  name: ''
}

const formItems2 = [
  // {
  //   type: 'select',
  //   label: '位置：',
  //   placeholder: '请选择位置',
  //   field: 'region',
  //   options: []
  // },
  {
    type: 'datepicker',
    label: '时间：',
    placeholder: ['开始时间', '结束时间'],
    field: 'time'
  }
]

const propFormData2 = {
  // region: '',
  time: [timeDate(new Date().getTime() - 1000*60*60*24), timeDate(new Date().getTime())]
}

const formItems3 = [
  // {
  //   type: 'select',
  //   label: '输入搜索：',
  //   placeholder: '请选择地点',
  //   field: 'place',
  //   options: []
  // },
  {
    type: 'datepicker',
    label: '时间：',
    placeholder: ['开始时间', '结束时间'],
    field: 'time'
  }
]

const propFormData3 = {
  // place: '',
  time: [timeDate(new Date().getTime() - 1000*60*60*24), timeDate(new Date().getTime())]
}

export const formItems = [formItems1, formItems2, formItems3]
export const propFormData = [propFormData1, propFormData2, propFormData3]
