/*
 *    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: '租户id',
    //   prop: 'tenantId'
    // },
	 //  {
    //   label: '排序',
    //   prop: 'sort'
    // },
    {
      label: '审核状态',
      prop: 'state',
      search:true,
      dicUrl:'/admin/dict/item/type/professional_state',
      type:'select',
      props:{
        label:'label',
        value:'value'
      },
      addDisplay:false,
      editDisplay:false,
    },
    {
      label: "驳回理由",
      prop: "backReason",
    },
	  {
      label: '工号',
      prop: 'teacherNo',
      labelWidth:100,
      search:true

    },
    {
      label: '姓名',
      prop: 'realName',
      labelWidth:100,
      search:true

    },
    {
      label: '毕业时间',
      prop: 'graduateTime',
      labelWidth:100,
      type:'datetime',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
    {
      label: '学位',
      prop: 'degreeConfigId',
      labelWidth:100,
      type:'select',
      dicUrl: '/professional/professionalacademicdegreeconfig/getDegreeList',
      props: {
        label: 'degreeName',
        value: 'id'
      }

    },
	  {
      label: '学历',
      prop: 'qualificationConfigId',
      labelWidth:100,
      type:'select',
      dicUrl: '/professional/academicqualificationsconfig/getQualificationList',
      props: {
        label: 'qualificationName',
        value: 'id'
      }
    },
	{
	  label: '教育类型',
	  prop: 'type',
     type:'select',
	  props:{
	    label:'name',
	    value:'id'
	  },
	  dicUrl:'/professional/professionalacademiceducationtypeconfig/getAllTypeList',
	  addDisplay: false,
	  editDisabled: false,
	},
	  {
      label: '毕业学校',
      prop: 'graduateSchool',
      labelWidth:100,
      hide:true
    },
	  {
      label: '所学专业',
      prop: 'major',
      labelWidth:100,
      hide:true
    },
	  {
      label: '证书编号',
      prop: 'certificateNumber',
      row:true,
      labelWidth:100,
      span:24
    },

    {
      label: '学历证书附件',
      prop: 'qualificationImg',
      labelWidth:200,
      formslot:true,
      slot:true
    },
    {
      label: '学位证书附件',
      prop: 'degreeImg',
      labelWidth:200,
      formslot:true,
      slot:true
    },
    {
      label: '创建时间',
      prop: 'createTime',
      type:'datetime',
      format:'yyyy-MM-dd',
      addDisplay:false,
      editDisplay:false
    },
    {
      label: '备注',
      prop: 'remarks',
      labelWidth:100,
      type:"textarea",
      span:24,
      hide:true
    },
	  // {
   //    label: '学位证书附件',
   //    prop: 'degreeImg',
   //    type: 'upload',
   //    labelWidth:100,
   //    loadText: '附件上传中，请稍等',
   //    span: 24,
   //    tip: '只能上传jpg/png文件，且不超过500kb',
   //    action: '/professional/file/upload',
   //    propsHttp: {
   //      res: 'data',
   //      name:'fileName',
   //    },
   //    hide:true
   //  },

	 //  {
    //   label: '',
    //   prop: 'educationId'
    // },
  ]
}
