/*
 *    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"
import {number} from "echarts/src/export";

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dialogHeight:600,
  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: 'remarks'
    // },
    {
      label: '学年',
      prop: 'schoolYear',
      type:'select',
      labelWidth:120,
      addDisplay:false,
      editDisabled:true,
      // search:true,
      dicUrl:'/basic/basicyear/queryAllSchoolYear',
      props:{
        label:'year',
        value:'year'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择学年"
      }
      ]
    },
    {
      label: '学期',
      prop: 'schoolTerm',
      labelWidth:120,
      type:'select',
      addDisplay:false,
      editDisabled:true,
      // search:true,
      dicUrl:'/admin/dict/item/type/school_term',
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择学期"
      }]
    },
    {
      label: '开课部门',
      prop: 'deptCode',
      type:"select",
      dicUrl: '/basic/basicdept/getDeptList?teachFlag=1',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
      hide:true,
      search:true,
      addDisplay:false,
      editDisplay:false,
      visdiplay:false
    },
	  {
      label: '班号',
      prop: 'classCode',
      searchFilterable:true,
      filterable:true,
      labelWidth:120,
      search:true,
      type:'select',
      dicUrl:'/basic/basicclass/listByRole',
      props:{
        label: 'classNo',
        value: 'classCode',
      },
      rules:[{
        required:true,
        trigger:'blur',
        message:'请选择班号'
      }]
    },

	  {
      label: '总人数',
      prop: 'totalCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写总人数"
      }]
    },
	  {
      label: '男生人数',
      prop: 'boyCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写男生人数"
      }]
    },
	  {
      label: '女生人数',
      prop: 'girlCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写女生人数"
      }]
    },
	  {
      label: '男(住宿)',
      prop: 'boyDormCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写男(住宿)人数"
      }]
    },
	  {
      label: '女(住宿)',
      prop: 'girlDormCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写女(住宿)人数"
      }]
    },
	  {
      label: '留校察看人数',
      prop: 'keepSchoolCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写留校观察人数"
      }]
    },
	  {
      label: '记过人数',
      prop: 'gigCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写记过人数"
      }]
    },
	  {
      label: '严重警告人数',
      prop: 'seriousWarningCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写严重警告人数"
      }]
    },
	  {
      label: '警告人数',
      prop: 'warningCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写警告人数"
      }]
    },
	  {
      label: '撤销处分人数',
      prop: 'revokeCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写撤销处分人数"
      }]
    },
	  {
      label: '退学人数',
      prop: 'dropCnt',
      labelWidth:120,
      type:'number',
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写退学人数"
      }]
    },
    {
      label:'总结报告',
      prop:'summary',
      hide:true,
      formslot:true,
      type:'textarea',
      span: 24,
      rules: [{
        required: true,
        message: '请填写总结报告',
        trigger: 'blur'
      }]
    },
	  {
      label: '状态',
      prop: 'status',
      labelWidth:120,
      search:true,
      addDisplay:false,
      editDisplay:false,
      type:'select',
      dicUrl:'/admin/dict/item/type/status_type',
      props:{
        value:'value',
        label:'label',
      }
    },
  ]
}
