/*
 *    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.
 *
 */

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,
      editDisplay:false,
    },
	  {
      label: '招生计划名称',
      prop: 'groupName',
      labelWidth:120,
      search:true,
      rules: [{
        required: true,
        message: '招生计划名称不能为空',
        trigger: 'blur'
      },
        {
          min: 3,
          max: 100,
          message: '长度在 3 到 100 个字符',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '年份',
      prop: 'year',
      type: 'year',
      labelWidth:120,
      addDisplay:true,
      editDisplay: false,
      format:'yyyy',
      valueFormat:'yyyy',
      rules: [{
        required: true,
        message: '请输入年份',
        trigger: 'blur'
      }]
    },
    {
      label: '创建时间',
      prop: 'createDate',
      type:'datetime',
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      addDisplay:false,
      editDisplay: false
    },
    {
      label: '报名开始时间',
      prop: 'startDate',
      type:'datetime',
      labelWidth:120,
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      addDisplay:true,
      rules: [{
        required: true,
        message: '请输入报名开始时间',
        trigger: 'blur'
      }]
    },
    {
      label: '报名截止时间',
      prop: 'endDate',
      type:'datetime',
      labelWidth:120,
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      addDisplay:true,
      rules: [{
        required: true,
        message: '请输入报名截止时间',
        trigger: 'blur'
      }]
    },
    {
      label: '维护开始时间',
      prop: 'maintenanceStartDate',
      type:'datetime',
      labelWidth:120,
      editDisplay: false,
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      addDisplay:true,
      rules: [{
        required: true,
        message: '请输入报名截止时间',
        trigger: 'blur'
      }]
    },
    {
      label: '维护结束时间',
      prop: 'maintenanceEndDate',
      type:'datetime',
      labelWidth:120,
      editDisplay: false,
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      addDisplay:true,
      rules: [{
        required: true,
        message: '请输入报名截止时间',
        trigger: 'blur'
      }]
    },
	  {
      label: '代办费',
      prop: 'feeAgency',
      type:'number',
      labelWidth:120,
      precision:0,
      rules: [{
        required: true,
        message: '请输入代办费',
        trigger: 'blur'
      }]
    },
    {
      label: '初中生报名',
      prop: 'czSignStart',
      labelWidth:120,
      editDisplay: true,
      addDisplay: false,
      type:"select",
      dicUrl: '/admin/dict/item/type/yes_no',
      rules: [{
        required: true,
        message: '请输入初中生报名',
        trigger: 'blur'
      }]
    },
    {
      label: '高中生报名',
      prop: 'gzSignStart',
      labelWidth:120,
      editDisplay: true,
      addDisplay: false,
      type:"select",
      dicUrl: '/admin/dict/item/type/yes_no',
      rules: [{
        required: true,
        message: '请输入高中生报名',
        trigger: 'blur'
      }]
    },
    {
      label: '技职校报名',
      prop: 'jzxSignStart',
      labelWidth:120,
      editDisplay: true,
      addDisplay: false,
      type:"select",
      dicUrl: '/admin/dict/item/type/yes_no',
      rules: [{
        required: true,
        message: '请输入技职校报名',
        trigger: 'blur'
      }]
    },
  ]
}
