/*
 *    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: 'schoolYear',
      editDisabled:true,
    },
    {
      label: '学期',
      prop: 'schoolTerm',
      editDisabled:true,
    },
    {
      label: '系部代码',
      prop: 'deptCode',
      type:'select',
      search:true,
      filterable:true,
      searchFilterable:true,
      editDisabled:true,
      dicUrl: '/basic/basicdept/getDeptListByLevelTwo',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },rules: [{
        required: true,
        message: '部门不能为空',
        trigger: 'blur'
      }
      ]
    },
    {
      label: '班级代码',
      prop: 'classCode',
      search:true,
      editDisabled:true,
      type:"select",
      dicUrl:'/basic/basicclass/list',
      props:{
        label: 'classNo',
        value: 'classCode',
      },
    },
    {
      label: '学号',
      prop: 'stuNo',
      search:true,
      editDisabled:true,
    },
    {
      label: '姓名',
      prop: 'realName',
      editDisabled:true,
    },
	  {
      label: '请假开始时间',
      prop: 'startTime'
    },
	  {
      label: '请假结束时间',
      prop: 'endTime'
    },
	  {
      label: '请假事由',
      prop: 'reason'
    },

	  {
      label: '班主任',
      prop: 'classTeach',
      editDisabled:true,
    },
	  {
      label: '联系方式',
      prop: 'stuPhote',
      editDisabled:true,
    },
    {
      label: '备注',
      prop: 'remarks'
    },
  ]
}
export const stuOption={
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '班级代码',
      prop: 'classCode',
      type:"select",
      dicUrl:'/basic/basicclass/list',
      props:{
        label: 'classNo',
        value: 'classCode',
      },
    },
    {
      label: '学号(后6位)',
      prop: 'stuNo',
      search:true,
    },
    {
      label: '姓名',
      prop: 'realName'
    },

    {
      label: '班主任',
      prop: 'classMasterName'
    },
    {
      label: '备注',
      prop: 'remarks'
    },
  ]
}
