/*
 *    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: 'id'
    // },
	  // {
    //   label: '创建人',
    //   prop: 'createBy'
    // },
	  // {
    //   label: '创建时间',
    //   prop: 'createTime'
    // },
	  // {
    //   label: '更新人',
    //   prop: 'updateBy'
    // },
	  // {
    //   label: '更新时间',
    //   prop: 'updateTime'
    // },
	  // {
    //   label: '删除标记',
    //   prop: 'delFlag'
    // },
	  // {
    //   label: '租户ID',
    //   prop: 'tenantId'
    // },

	  {
      label: '班号',
      prop: 'virtualClassNo',
      // search:true,
      addDisplay:false,
      editDisplay:false
    },
    {
      label: '班主任',
      prop: 'classMasterCode',
      addDisplay:false,
      editDisplay:false,
      hide:true,
      // type:"select",
      // dicUrl:'/professional/teacherbase/TeacherBaseList',
      // props:{
      //   label:'realName',
      //   value:'teacherNo'
      // },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择班主任"
      }]
    },
    {
      label:'班主任',
      prop:'realName',
      addDisplay:false,
      editDisplay:false
    },
    {
      label: '班级',
      prop: 'classCode',
      hide:true,
      search:true,
      searchFilterable:true,
      formslot: true,
      type:'select',
      dicUrl:'/basic/basicclass/listByRole',
      props:{
        label: 'classNo',
        value: 'classCode',
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择班级"
      }]
    },
	  {
      label: '考核项目',
      prop: 'assessmentCategory',
      formslot: true,
      // search:true,
      type:'select',
      dicUrl:'/stuwork/assessmentcategory/list',
      props:{
        label:'category',
        value:'id'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择考核项目"
      }]
    },
	  {
      label: '考核指标',
      prop: 'assessmentPoint',
      formslot: true,
      // search:true,
      type:'select',
      dicUrl:'/stuwork/assessmentpoint/list',
      props:{
        label:'pointName',
        value:'id'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择考核指标"
      }]
    },
	  {
      label: '类型',
      prop: 'type',
      search:true,
      type:'select',
      dicUrl:'/admin/dict/item/type/class_master_type',
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择类型"
      }]
    },
    {
      label: '分数',
      prop: 'score',
      type:'number',
      minRows:0,
      maxRows:30,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入分数"
      }]
    },
    {
      label:'考核日期',
      prop:'recordDate',
      // addDisplay:false,
      editDisplay:false,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd',
      rules: [{
        required: true,
        trigger: "blur",
        message: "请填写日期"
      }]
    },
    {
      label: '考核人',
      prop: 'createBy',
      addDisplay:false,
      editDisplay: false,
      // type:'select',
      // dicUrl:'/professional/teacherbase/TeacherBaseList',
      // props:{
      //   label:'realName',
      //   value:'teacherNo'
      // },
    },
    {
      label: '情况说明',
      prop: 'remarks',
      type:'textarea',
      // addDisplay:false,
      editDisplay:false,
      span:24
    },
    {
      label:'开始时间',
      prop:'startTime',
      search:true,
      hide:true,
      addDisplay:false,
      editDisplay:false,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },
    {
      label:'结束时间',
      prop:'endTime',
      search:true,
      hide:true,
      addDisplay:false,
      editDisplay:false,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },

    // {
    //   label:'明细',
    //   prop:'outerId',
    //   addDisplay:false,
    //   editDisplay:false
    // },
  ]
}
