/*
 *    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.
 *
 */
import global from "@/components/tools/commondict"

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  menu:false,
  dic: [],
  column: [
	  // {
    //   label: '入学年份',
    //   prop: 'enterYear'
    // },
    {
      label: '学院',
      prop: 'deptName'
    },
	  {
      label: '班级',
      prop: 'classNo'
    },
	  {
      label: '班级状态',
      prop: 'classStatus',
      type:'select',
      dicUrl:'/admin/dict/item/type/student_status'
    },
	  {
      label: '学年',
      prop: 'schoolYear'
    },
	  {
      label: '学期',
      prop: 'schoolTerm'
    },
	  {
      label: '姓名',
      prop: 'realName',
      search:true
    },
	  {
      label: '课程名称',
      prop: 'courseName'
    },
    {
      label: '学号',
      prop: 'stuNo',
      hide:true,
      search:true
    },
	  {
      label: '课程类型',
      prop: 'courseType',
      type:'select',
      dicUrl: '/ems/coursetype/list',
      props: {
        label: 'courseTypeName',
        value: 'id'
      },
      hide:true
    },
    {
      label:'课程性质',
      prop: 'propertiesName'
    },


	  // {
    //   label: '考核方式',
    //   prop: 'courseEvaluationMode',
    //   type:'select',
    //   dicUrl: '/ems/courseevaluationmode/list',
    //   props: {
    //     label: 'courseEvaluationModeName',
    //     value: 'id'
    //   },
    // },
	  {
      label: '总评',
      prop: 'totalMark',
      slot:true
    },
    // {
    //   label: '总评异常',
    //   prop: 'totalAbnormalType'
    // },
    {
      label: '补考',
      prop: 'makeUpScore',
      slot:true
    },
    // {
    //   label: '补考异常',
    //   prop: 'makeUpAbnormalType'
    // },
    {
      label: '重修',
      prop: 'rebuildScore',
      slot:true
    },
    // {
    //   label: '重修异常',
    //   prop: 'rebuildAbnormalType'
    // },
	  {
      label: '学分',
      prop: 'point'
    }
  ]
}
