/*
 *    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,
  selection:true,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '比赛年份',
      prop: 'competingYear',
      search:true,
      type:'year',
      valueFormat:'yyyy',
      rules: [{
        required: true,
        message: "请选择比赛年份",
        trigger: "blur"
      }]
    },
	  {
      label: '赛事名称',
      prop: 'name',
      search:true,
      rules: [{
        required: true,
        message: "请填写赛事名称",
        trigger: "blur"
      }]
    },
	  {
      label: '参赛项目',
      prop: 'projectName',
      span:24,
      rules: [{
        required: true,
        message: "请填写参赛项目名称",
        trigger: "blur"
      }]
    },
    {
      label: '比赛开始时间',
      prop: 'competingTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      editDisplay:false,
      addDisplay:false,
    },
    {
      label: '比赛结束时间',
      prop: 'competingEndTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      editDisplay:false,
      addDisplay:false,
    },
    {
      label: '比赛时间',
      span:24,
      prop: 'competingTimes',
      type: 'daterange',
      hide:true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间',
      rules: [{
        required: true,
        message: "请选择比赛时间范围",
        trigger: "blur"
      }]
    },
	  {
      label: '主办单位',
      prop: 'organizer',
      span:24,
      rules: [{
        required: true,
        message: "请填写主办单位",
        trigger: "blur"
      }]
    },
	  {
      label: '通知文件',
      prop: 'notificationFile',
      span:24,
      hide:true,
      slot:true,
      formslot:true
    },
    {
      label: '备注',
      prop: 'remarks',
      type: 'textarea',
      span: 24,
      minRows: 2

    },
  ]
}
