/*
 *    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'
  }
]

const SIGN_TYPE=[
  {label:"正常签到",value:"1"},
  {label:"无法签到",value:"2"}
]

const ABNORMAL_CONFIRM=[
  {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: [],
  selection: true,
  selectable:(row,index)=>{
    return index===1;
  },
  column: [
    {
      label: '学号',
      prop: 'stuNo',
      search:true
    },
    {
      label: '姓名',
      prop: 'realName',
      search:true
    },
    {
      label: '学院名称',
      prop: 'deptName',
    },
    // {
    //   label: '地名',
    //   prop: 'placeName'
    // },
    {
      label: '公司名称',
      prop: 'companyName'
    },
    {
      label: '打卡位置',
      prop: 'placeName'
    },
	  {
      label: '偏差距离(米)',
      prop: 'distance'
    },
    {
      label: '偏差状态',
      prop: 'inRange',
      slot:true,
    },
    {
      label: '签到时间',
      prop: 'createTime'
    },
    {
      label: '签到类型',
      prop: 'type',
      type:'select',
      search:true,
      dicData:SIGN_TYPE
    },
    {
      label: '签到异常确认',
      prop: 'teacherDeal',
      type:'select',
      search:true,
      dicData:ABNORMAL_CONFIRM
    },
    {
      label: '备注',
      prop: 'remarks'
    },
  ]
}
