/*
 *    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: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  selection: true,
  reserveSelection:false,
  dic: [],
  width:1920,
  dialogHeight:700,
  column: [
    {
      label:'学院',
      prop:'deptName',
      // search:true,
      addDisplay:false,
      editDisplay: false,
      clearable:true
    },
    {
      label:'专业',
      prop: 'majorName',
      addDisplay:false,
      editDisplay: false,
      // type:'select',
      // dicUrl: '/basic/major/getMajorNameList',
      // props: {
      //   label: 'majorName',
      //   value: 'majorCode'
      // },
    },
    {
      label: '班级',
      prop: 'className',
      // search:true,
    },
    {
      label: '学号',
      prop: 'stuNo',
      // search:true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:true,
      visdiplay:false
    },
    {
      label: '姓名',
      prop: 'realName',
      // search:true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:true,
      visdiplay:false
    },
    {
      label: '性别',
      prop: 'gender',
      addDisplay:false,
      editDisplay: false,
      type:"select",
      dicUrl: '/admin/dict/item/type/sexy',
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      label: '身份证号',
      prop: 'idCard',
      // search:true,
      addDisplay:false,
      editDisplay: false,
    },
    {
      label: '中职卡号',
      prop: 'bankCard',
      // search:true,
      hide:true,
      addDisplay:false,
      editDisplay: false,
    },
    {
      label: '家庭住址',
      prop: 'liveAddress',
      // search:true,
      hide:true,
      addDisplay:false,
      editDisplay: false,
    },
    {
      label: '班主任',
      prop: 'teacherNo',
      addDisplay:false,
      editDisplay: false,
      type:'select',
      filterable:true,
      dicUrl:'/professional/teacherbase/TeacherBaseList',
      props:{
        label:'realName',
        value:'teacherNo'
      },
    },
    {
      label: '住宿',
      prop: 'roomNo',
      addDisplay:false,
      editDisplay: false,
      // type: 'select',
      // search:true,
      // dicUrl: '/admin/dict/item/type/yes_no',
      // props:{
      //   label:'label',
      //   value:'value'
      // },
    },
    {
      label: '文化程度',
      prop: 'education',
      addDisplay:false,
      editDisplay: false,
      type:"select",
      dicUrl: '/admin/dict/item/type/pre_school_education',
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      label: '学籍状态',
      prop: 'enrollStatus',
      addDisplay:false,
      editDisplay: false,
      type:"select",
      dicUrl: '/admin/dict/item/type/enroll_status',
      props:{
        label:'label',
        value:'value'
      },
      // search:true
    },
    {
      label: '个人电话',
      prop: 'phone',
      addDisplay:false,
      editDisplay: false,
    },
    {
      label: '户籍所在地',
      prop: 'householdAddress',
      addDisplay:false,
      editDisplay: false,
    },

	  {
      label: '班级',
      prop: 'classCode',
      // search:true,
      hide:true,
      type:"select",
      dicUrl:'/basic/basicclass/list',
      props:{
        label: 'classNo',
        value: 'classCode',
      },
      slot:true
    },

    {
      label: '学生状态',
      prop: 'stuStatus',
      type:'select',
      dicUrl:'/admin/dict/item/type/student_status',
      props:{
        label:'label',
        value:'value'
      },
      // search:true
    },
    {
      label: '是否班干部',
      prop: 'isClassLeader',
      // search:true,
      addDisplay:false,
      editDisplay:false,
      type:'select',
      dicUrl:'/admin/dict/item/type/yes_no',
      props:{
        label:'label',
        value:'value'
      }
    },
    {
      label: '是否允许进出',
      prop: 'isInout',
      // search:true,
      addDisplay:false,
      editDisplay:false,
      type:'select',
      dicUrl:'/admin/dict/item/type/yes_no',
      props:{
        label:'label',
        value:'value'
      }
    },
    {
      label: '资料完成度',
      prop: 'completeRate',
      display:false
      // slot:true,
    },
    {
      width: 300,
      label: '头像',
      prop: 'imageUrl',
      hide:true,
      // slot:true,
      formslot:true
    },
  ],
  group:[
    {
      icon:'el-icon-info',
      label: '基础信息',
      prop: 'sjlb',
      column:[
        {
          label: '学号',
          prop: 'stuNo',
          search:true,
          addDisplay:false,
          editDisabled:true,
          editDisplay:true,
          visdiplay:false
        },
        {
          label: '姓名',
          prop: 'realName',
          search:true,
          addDisplay:false,
          editDisabled:true,
          editDisplay:true,
          visdiplay:false
        },
        {
          label: '班级',
          prop: 'classNo',
          search:true,
          addDisplay:false,
          editDisabled:true,
          editDisplay:true,
          visdiplay:false
        },

        {
          label: '学生状态',
          prop: 'stuStatus',
          type:'select',
          dicUrl:'/admin/dict/item/type/student_status',
          props:{
            label:'label',
            value:'value'
          },
          addDisplay:false,
          editDisabled:true,
          editDisplay:true,
          visdiplay:false
        },
        {
          width: 300,
          label: '头像',
          prop: 'imageUrl',
          // slot:true,
          formslot:true
        },
      ]
    },
    {
      icon:'el-icon-info',
      label: '拓展信息',
      prop: 'sjlb',
      column: [
        {
          label: '曾用名',
          prop: 'oldName'
        },
        {
          label: '身份证号',
          prop: 'idCard'
        },
        {
          label: '出生年月',
          prop: 'birthday',
          type:'datetime',
          format:'yyyy-MM-dd'
        },
        {
          label: '户口所在地',
          prop: 'householdAddress'
        },
        {
          label: '政治面貌',
          prop: 'politicsStatus',
          type:'select',
          cell: true,
          dicUrl:`/basic/basicpoliticsstatusbase/getPoliticsStatusDict`,
          props:{
            label:'name',
            value:'id',
          }
        },
        {
          label: '民族',
          prop: 'national',
          type:'select',
          dicUrl:'/basic/basicnation/getNationalList',
          props:{
            label:'nationName',
            value:'nationCode'
          },
        },
        {
          label: '辩色力',
          prop: 'colourSense'
        },
        {
          label: '裸眼视力（左）',
          prop: 'eyeLeft'
        },
        {
          label: '裸眼视力（右）',
          prop: 'eyeRight'
        },
        {
          label: '身高',
          prop: 'height'
        },
        {
          label: '体重',
          prop: 'weight'
        },
        {
          label: '需关爱类型',
          prop: 'careType',
          type: 'select',
          dicUrl: '/admin/dict/item/type/care_type',
          props:{
            label:'label',
            value:'value'
          }
        },
        {
          label: '电子邮箱',
          prop: 'email'
        },
        {
          label: 'qq/微信号',
          prop: 'qq'
        },
        {
          label: '本人电话',
          prop: 'phone'
        },
        {
          label: '退伍军人',
          prop: 'veteran',
          type: 'select',
          dicUrl: '/admin/dict/item/type/veteran_status',
          props:{
            label:'label',
            value:'value'
          }
        },
        {
          label: '既往病史',
          prop: 'seekText'
        },
        {
          label: '本人特长',
          prop: 'advantage'
        }
      ]
    },
  ]
}

export const tableStuOption = {
  border: true,
  index: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  reserveSelection:false,
  dic: [],
  width:1920,
  dialogHeight:700,
  column: [
    {
      label:'学院',
      prop:'deptName',
      addDisplay:false,
      editDisplay: false,
    },
    {
      label:'专业',
      prop: 'majorName',
      addDisplay:false,
      editDisplay: false,
    },
    {
      label: '班级',
      prop: 'className',
    },
    {
      label: '学号',
      prop: 'stuNo',
      search:true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:true,
      visdiplay:false
    },
    {
      label: '姓名',
      prop: 'realName',
      search:true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:true,
      visdiplay:false
    },
    {
      label: '身份证',
      prop: 'idCard',
      search:true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:true,
      visdiplay:false
    },
    {
      label: '电话',
      prop: 'phone',
      search:true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:true,
      visdiplay:false
    },
    {
      label: '家长电话',
      prop: 'jzPhone',
      search:true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:true,
      visdiplay:false
    },
    {
      label: '性别',
      prop: 'gender',
      addDisplay:false,
      editDisplay: false,
      type:"select",
      dicUrl: '/admin/dict/item/type/sexy',
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      label: '宿舍号',
      prop: 'roomNo',
      addDisplay:false,
      editDisplay: false,
    },
    {
      label: '班主任',
      prop: 'teacherNo',
      addDisplay:false,
      editDisplay: false,
      type:'select',
      filterable:true,
      dicUrl:'/professional/teacherbase/TeacherBaseList',
      props:{
        label:'realName',
        value:'teacherNo'
      },
    },
    {
      label: '班主任电话',
      prop: 'telPhone',
    },

    {
      label: '学籍状态',
      prop: 'enrollStatus',
      addDisplay:false,
      editDisplay: false,
      type:"select",
      dicUrl: '/admin/dict/item/type/enroll_status',
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      label: '学生状态',
      prop: 'stuStatus',
      type:'select',
      dicUrl:'/admin/dict/item/type/student_status',
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      width: 300,
      label: '头像',
      prop: 'headImg',
      slot:true,
    },
  ],
}
