/*
 *    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,
  dialogWidth:'90%',
  dialogHeight:'90%',
  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: 'createDate',
      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: 'updateDate',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
	  {
      label: '删除标记',
      prop: 'delFlag',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },

	  {
      label: '活动名称',
      prop: 'activityName',
      span: 24,
      labelWidth:120,
      rules: [{
        required: true,
        message: "请填写活动名称",
        trigger: "blur"
      }]
    },
    // {
    //   label: '活动主题',
    //   prop: 'activityTheme',
    //   labelWidth:120,
    //   span:24
    // },
	  {
      label: '报名开始时间',
      prop: 'startTime',
      type: 'datetime',
      format:'yyyy-MM-dd hh:mm:ss',
      valueFormat:'yyyy-MM-dd hh:mm:ss',
      labelWidth:120,
      rules: [{
        required: true,
        message: "请选择报名开始时间",
        trigger: "blur"
      }]
    },
	  {
      label: '报名结束时间',
      prop: 'endTime',
      type: 'datetime',
      format:'yyyy-MM-dd hh:mm:ss',
      valueFormat:'yyyy-MM-dd hh:mm:ss',
      labelWidth:120,
      rules: [{
        required: true,
        message: "请选择报名结束时间",
        trigger: "blur"
      }]
    },
    {
      labelWidth:120,
      label: '封面图',
      prop: 'activityCover',
      hide:true,
      slot:true,
      formslot:true,
      span: 24,
    },
    {
      labelWidth:120,
      label: '内页图',
      prop: 'imageUrl',
      hide:true,
      slot:true,
      formslot:true,
      span: 24,
    },
    {
      label: '活动简介',
      prop: 'activityMeta',
      type:'textarea',
      labelWidth:120,
      span:24,
    },
	  {
      label: '活动内容',
      prop: 'activityDesc',
      labelWidth:120,
      span:24,
      height:500,
      formslot:true,
      slot:true,
      hide:true
    },

    {
      label: '备注',
      prop: 'remarks',
      labelWidth:120,
      span:24,
    },
  ]
}
