/*
 *    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 stateDic=[
  {label:'待安保处审核',value:'0'},
  {label:'审核通过',value:'1'},
]

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
	  {
      label: '班级名称',
      prop: 'className',
      search:true,
      rules: [{
        required: true,
        trigger: 'blur',
        message: "请填写班级名称"
      }]
    },
    {
      label: '培训项目',
      search:true,
      prop: 'projectName',
      rules: [{
        required: true,
        trigger: 'blur',
        message: "请填写培训项目"
      }]
    },
    {
      label: '负责人',
      prop: 'chargePeople',
      hide:true,
      formslot:true,
      rules: [{
        required: true,
        trigger: 'blur',
        message: "请选择负责人"
      }]
    },
    {
      label: '负责人',
      prop: 'teacherName',
      display:false,
      search:true,
    },
    {
      label: '电话',
      prop: 'phone',
      display:false,
    },
    {
      label: '部门',
      prop: 'deptName',
      display:false,
    },
    {
      label: '开始日期',
      prop: 'startDate',
      search:true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd'
    },
    {
      label: '结束日期',
      prop: 'endDate',
      search:true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd'
    },
    {
      label: '预计人数',
      prop: 'nums',
      type:'number'
    },
    {
      label: '已报人数',
      prop: 'realNums',
      display:false,
      slot: true,
    },
    {
      label: '二维码',
      prop: 'code',
      slot: true,
      display:false
    },
    {
      label:'状态',
      prop: 'state',
      type:'select',
      search:true,
      dicData:stateDic,
      props:{
        label:'label',
        value:'value',
      }
    },
	  {
      label: '创建时间',
      prop: 'createTime',
      display:false,
    },
  ]
}
