/*
 *    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'
    // },
	  // {
    //   label: '创建人',
    //   prop: 'createBy'
    // },
	  // {
    //   label: '创建时间',
    //   prop: 'createTime'
    // },
	  // {
    //   label: '更新人',
    //   prop: 'updateBy'
    // },
	  // {
    //   label: '更新时间',
    //   prop: 'updateTime'
    // },
	  // {
    //   label: '删除标记',
    //   prop: 'delFlag'
    // },
	  // {
    //   label: '备注',
    //   prop: 'remarks'
    // },
	  {
      label: '所属招聘会',
      prop: 'jobFairId',
      labelWidth:120,
      type:'select',
      dicUrl:'/work/jobfair/getJobFairList',
      props:{
        label:'title',
        value:'id'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择招聘会"
      }]
    },
	  {
      label: '组织机构代码',
      prop: 'orgCode',
      labelWidth:120,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入组织机构代码"
      }]
    },
	  {
      label: '岗位名称',
      prop: 'stationTitle',
      labelWidth:120,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入岗位名称"
      }]
    },
	  {
      label: '专业名称',
      prop: 'majorCode',
      labelWidth:120,
      type:'select',
      dicUrl: '/basic/major/list',
      filterable:true,
      props: {
        label: 'majorName',
        value: 'majorCode'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入主营业务"
      }]
    },
	  {
      label: '需要男生人数',
      prop: 'needMaleNum',
      labelWidth:120,
      formslot: true,
    },
	  {
      label: '需要女生人数',
      prop: 'needFemaleNum',
      labelWidth:120,
      formslot: true,
    },
	  {
      label: '到岗时间',
      prop: 'stationTime',
      labelWidth:120,
      type:'datetime',
      valueFormat:'yyyy-MM-dd HH:mm',
      format:'yyyy-MM-dd HH:mm',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择到岗时间"
      }]
    },
  ]
}
