/*
 *    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,
  dic: [],
  column: [
    {
      label: '学年',
      prop: 'schoolYear',
      dicUrl:'/basic/basicyear/queryAllSchoolYear',
      props:{
        label:"year",
        value:"year"
      },
      search:true,
      type:'select'
    },
    {
      label: '学期',
      prop: 'schoolTerm',
      dicData:global.LEARN_TERM,
      props:{
        label:"label",
        value:"value"
      },
      search:true,
      type:'select'
    },
	  {
      label: '工号',
      prop: 'teacherNo'
    },
	  {
      label: '姓名',
      prop: 'teacherName'
    },
	  {
      label: '行政部门',
      prop: 'teacherDeptName',
      minWidth: 100
    },
	  {
      label: '教学部门',
      prop: 'deptName',
      minWidth: 100
    },
	  {
      label: '课程名称',
      prop: 'courseName',
      minWidth: 200
    },
	  {
      label: '班级',
      prop: 'className',
      minWidth: 120
    },
    {
      label: "分值",
      prop: "score"
    },
	  {
      label: '原因',
      prop: 'reason',
      slot:true
    },
	  {
      label: '措施',
      prop: 'measure',
      slot:true
    },
    {
      label: '驳回理由',
      prop: 'backReason',
      slot:true
    },
    {
      label: '状态',
      prop: 'status',
      dicData:global.TEACHER_EVALUATE_STATUS,
      type:'select',
      search:true
    }
  ]
}
