/*
 *    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 skillLevel=[
  {label:"1级-高级技师",value:"1"},
  {label:"2级-技师",value:"2"},
  {label:"3级-高级工",value:"3"},
  {label:"4级-中级工",value:"4"},
  {label:"5级-初级工",value:"5"}
]

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  selection: true,
  reserveSelection:false,
  dic: [],
  column: [
	  {
      label: '计划名称',
      prop: 'planName',
      search:true,
      minWidth:200,
      rules: [{
        required: true,
        message: "请填写年级",
        trigger: "blur"
      }]
    },
    {
      label: '系部',
      prop: 'deptName',
      search:true,
      minWidth:100,
      fixed:true
    },
    {
      label: '班级',
      prop: 'classNo',
      search:true,
      minWidth:55,
      fixed:true
    },
	  {
      label: '姓名',
      prop: 'realName',
      display:false,
      search:true,
      minWidth:80,
      fixed:true
    },
    {
      label: '学号',
      prop: 'stuNo',
      fixed:true,
      search:true,
      editDisabled:true,
      minWidth:110,
      rules: [{
        required: true,
        message: "请填写学号",
        trigger: "blur"
      }]
    },
	  {
      label: '准考证号',
      prop: 'examNo',
      minWidth:200,
    },
	  {
      label: '职业',
      prop: 'occupation',
      rules: [{
        required: true,
        message: "请填写职业",
        trigger: "blur"
      }],
      minWidth:200,
    },
	  {
      label: '工种',
      prop: 'workType',
      rules: [{
        required: true,
        message: "请填写工种",
        trigger: "blur"
      }],
      minWidth:200
    },
	  {
      label: '工种级别',
      prop: 'workLevel',
      dicData:skillLevel,
      type: 'select',
      search:true,
      rules: [{
        required: true,
        message: "请填写职业工种级别",
        trigger: "blur"
      }],
      minWidth:100
    },
	  // {
    //   label: '考生来源',
    //   prop: 'stuSource'
    // },
	  {
      label: '职业年限',
      prop: 'occupationYear'
    },
	  {
      label: '证书编号',
      prop: 'cardNo',
      search:true,
      rules: [{
        required: true,
        message: "请填写证书编号",
        trigger: "blur"
      }],
      width:200
    },
	  {
      label: '发证日期',
      prop: 'certificateDate',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      minWidth:100
    },
	  {
      label: '发证机构',
      prop: 'certificateOrg',
      minWidth:200
    },
	  {
      label: '考试结果',
      prop: 'examResult',
    },
	  {
      label: '理论成绩',
      prop: 'theoryScore',
    },
	  {
      label: '技能考核',
      prop: 'techScore'
    },
	  {
      label: '综合评审',
      prop: 'finalScore'
    },
	  {
      label: '创建时间',
      prop: 'createTime',
      display:false,
      minWidth: 150
    },

  ]
}
