/*
 *    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,
  column: [
	 //  {
    //   label: '主键',
    //   prop: 'id'
    // },
	 //  {
    //   label: '创建人',
    //   prop: 'createBy'
    // },
	 //  {
    //   label: '更新人',
    //   prop: 'updateBy'
    // },
	 //  {
    //   label: '更新时间',
    //   prop: 'updateTime'
    // },
	 //  {
    //   label: '删除标志位',
    //   prop: 'delFlag'
    // },
	 //  {
    //   label: '备注',
    //   prop: 'remarks'
    // },
	 //  {
    //   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',
      search:true
    },
    {
      label: '姓名',
      prop: 'realName',
      search:true

    },
	  {
      label: '职称',
      prop: 'professionalTitleConfigId',
      type: 'select',
      dicUrl: 'professional/professionaltitlelevelconfig/getProfessionalTitleList',
      search:true,
      props: {
        label: 'professionalTitle',
        value: 'id'
      }
    },
    {
      label: '专业技术职务 ',
      prop: 'majorStation',
      type: 'select',
      dicUrl: '/professional/professionalmajorstation/getMajorStationList',
      search:true,
      filterable:true,
      props: {
        label: 'majorStationName',
        value: 'id'
      }
    },
	  {
      label: '变动时间',
      prop: 'changedTime',
      type:'datetime',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
	  {
      label: '取证时间',
      prop: 'certificateTime',
      type:'datetime',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      addDisplay:false,
      editDisplay:false,
      hide:true
    },
	  {
      label: '证书编号',
      prop: 'certificateNumber',
      hide:true
    },
	  // {
    //   label: '证明材料',
    //   prop: 'evidence',
    //   type: 'upload',
    //   loadText: '附件上传中，请稍等',
    //   span: 24,
    //   tip: '只能上传jpg/png文件，且不超过500kb',
    //   action: '/professional/file/upload',
    //   propsHttp: {
    //     res: 'data',
    //     name:'fileName',
    //   },
    //   hide:true,
    // },


    {
      label: '证明材料',
      prop: 'evidence',
      row:true,
      formslot:true,
      slot:true,
      span:24,
    },
    {
      label: '备注',
      prop: 'remarks',
      type:"textarea",
      span:24,
      hide:true
    },

     {
      label: '创建时间',
      prop: 'createTime',
      type:'datetime',
      format:'yyyy-MM-dd',
      addDisplay:false,
      editDisplay:false
    },

  ]
}
