/*
 * @Author: your name
 * @Date: 2021-09-18 16:06:51
 * @LastEditTime: 2021-09-22 16:22:29
 * @LastEditors: Please set LastEditors
 * @Description: 表格的配置
 * @FilePath: \hyyfClient\src\views\BioSafety\personAdmin\table.config.js
 */
export const titles = ['人员列表', '门禁记录', '人员列表']

const tableItems1 = [
  {
    prop: 'serialNumber',
    label: '编号',
    minWidth: '100',
    slotName: 'serialNumber'
  },
  {
    prop: 'photo',
    label: '人员图片',
    minWidth: '150',
    slotName: 'photo'
  },
  {
    prop: 'name',
    label: '姓名',
    minWidth: '150',
    slotName: 'name'
  },
  {
    prop: 'phone',
    label: '联系电话',
    minWidth: '150',
    slotName: 'phone'
  },
  {
    prop: 'region',
    label: '负责区域',
    minWidth: '150',
    slotName: 'region'
  },
  {
    prop: 'role',
    label: '职位',
    minWidth: '100',
    slotName: 'role'
  },
  {
    prop: 'account',
    label: '账号',
    minWidth: '150',
    slotName: 'account'
  },
  {
    prop: 'password',
    label: '密码',
    minWidth: '150',
    slotName: 'password'
  },
  {
    label: '操作',
    minWidth: '150',
    slotName: 'handler'
  }
]

const tableItems2 = [
  {
    prop: 'time',
    label: '时间',
    minWidth: '100',
    slotName: 'time'
  },
  {
    prop: 'photo',
    label: '人员图片',
    minWidth: '150',
    slotName: 'photo'
  },
  {
    prop: 'name',
    label: '姓名',
    minWidth: '150',
    slotName: 'name'
  },
  {
    prop: 'enterRegion',
    label: '进入区域',
    minWidth: '150',
    slotName: 'enterRegion'
  },
  {
    prop: 'region',
    label: '负责区域',
    minWidth: '150',
    slotName: 'region'
  },
  {
    prop: 'status',
    label: '状态',
    minWidth: '100',
    slotName: 'status'
  },
  {
    prop: 'backlist',
    label: '黑名单',
    minWidth: '150',
    slotName: 'backlist'
  },
  {
    label: '操作',
    minWidth: '150',
    slotName: 'handler'
  }
]

const tableItems3 = [
  {
    prop: 'photo',
    label: '人员图片',
    minWidth: '150',
    slotName: 'photo'
  },
  {
    prop: 'name',
    label: '姓名',
    minWidth: '150',
    slotName: 'name'
  },
  {
    prop: 'location',
    label: '位置',
    minWidth: '150',
    slotName: 'location'
  },
  {
    prop: 'region',
    label: '负责区域',
    minWidth: '150',
    slotName: 'region'
  },
  {
    label: '操作',
    minWidth: '150',
    slotName: 'handler'
  }
]

export const tableItems = [tableItems1, tableItems2, tableItems3]

export const tableShows = {
  showIndex: false, showSelect: true
}
