/*
 *    Copyright (c) 2018-2025, cyweb All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 */
const YES_OR_NO=[
  {label:"是",value:"1"},
  {label:"否",value:"0"},
]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  menu:false,
  column: [
	  {
      label: '访客姓名',
      prop: 'realName',
      search:true
    },
    {
      label: '电话',
      prop: 'phone',
      search:true
    },
    {
      label: '单位',
      prop: 'unit',
      search:true
    },
    {
      label: '身份证',
      prop: 'idCard',
      search:true
    },
    {
      label: '访问部门',
      prop: 'deptName',
      search:true
    },
    {
      label: '受访人工号',
      prop: 'accessPeople',
      search:true
    },
    {
      label: '受访人姓名',
      prop: 'accessPeopleName',
      search:true
    },
	  {
      label: '进出时间',
      prop: 'createTime',
      type:'date',
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
    // {
    //   label: '进出时间',
    //   prop: 'comDate',
    //   type:'datetimerange',
    //   hide:true,
    //   format:'yyyy-MM-dd HH:mm:ss',
    //   valueFormat:'yyyy-MM-dd HH:mm:ss',
    //   search:true
    // },
	  {
      label: '机器码',
      prop: 'machineNo'
    },
	  {
      label: '位置',
      prop: 'machineAddress'
    },
    {
      label: '非法进出',
      prop: 'isIllegal',
      dicData:YES_OR_NO,
      search:true,
      type:'select',
      props:{
        label:"label",
        value:"value"
      }
    },
    {
      label: '照片记录',
      prop: 'avatar',
      slot:true
    },
  ]
}
