/*
 *    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 typeDic=[
  {label:'驻校单位',value:'0'},
  {label:'培训单位',value:'1'},
  {label:'二期单位',value:'2'},
]

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
	  {
      label: '主键',
      prop: 'id',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
	  {
      label: '创建人',
      prop: 'createBy',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
	  {
      label: '创建时间',
      prop: 'createTime',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
	  {
      label: '更新人',
      prop: 'updateBy',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
	  {
      label: '更新时间',
      prop: 'updateTime',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
	  {
      label: '删除标志位',
      prop: 'delFlag',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },

	  {
      label: '租户id',
      prop: 'tenantId',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
	  {
      label: '排序',
      prop: 'sort',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
    {
      label: '类型',
      prop: 'companyType',
      span:24,
      search: false,
      dicData:typeDic,
      display: false,
      type:'select',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入类型"
      }]
    },
	  {
      label: '单位名称',
      prop: 'companyName',
      span:24,
      search: true,
        rules: [{
      required: true,
      trigger: 'blur',
      message:"请输入单位名称"
    }]
    },
    {
      label: '开始时段',
      prop: 'allowStartTime',

      type: 'date',
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd",
      span:24,
    },
    {
      label: '截止时段',
      prop: 'allowEndTime',

      type: 'date',
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd",
      span:24,
    },
    // {
    //   label: '管理员',
    //   prop: 'userName',
    //   formslot: true,
    //   span:24,
    //   hide:true,
    // },
    // {
    //   label: '管理员',
    //   prop: 'realName',
    //   display:false,
    //   addDisplay:false,
    //   editDisabled:true,
    //   editDisplay:false,
    //   visdiplay:false
    // },
    {
      label: '人数',
      prop: 'nums',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
    {
      label: '已上报人数',
      prop: 'okNums',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
    {
      label: '未上报人数',
      prop: 'noOkNums',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
    {
      label: '备注',
      prop: 'remarks',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
  ]
}
