/*
 *    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,
  showSummary:true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  sumColumnList:[
    {
      name:'classNum',
      type:'sum'
    },
    {
      name:'schoolNum',
      type:'sum'
    },
    {
      name:'replacementNum',
      type:'sum'
    },
    {
      name:'changeNum',
      type:'sum'
    },
    {
      name:'allPeople',
      type:'sum'
    },
    {
      name:'subtotalSchool',
      type:'sum'
    },
    {
      name:'registerSchool',
      type:'sum'
    },
    {
      name:'borrowingSchool',
      type:'sum'
    },
    {
      name:'manSchool',
      type:'sum'
    },
    {
      name:'womanSchool',
      type:'sum'
    },
    {
      name:'subtotalReplacement',
      type:'sum'
    },
    {
      name:'manReplacement',
      type:'sum'
    },
    {
      name:'womanReplacement',
      type:'sum'
    },
    {
      name:'subtotalChange',
      type:'sum'
    },
    {
      name:'manChange',
      type:'sum'
    },
    {
      name:'womanChange',
      type:'sum'
    },
    {
      name:'subtotalAccommodation',
      type:'sum'
    },
    {
      name:'manAccommodation',
      type:'sum'
    },
    {
      name:'womanAccommodation',
      type:'sum'
    }
  ],
  column: [
    {
      label: '主键',
      prop: 'id',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
	  {
      label: '创建人',
      prop: 'createBy',
      hide: true,
    },
	  {
      label: '创建时间',
      prop: 'createTime',
      hide: true,
    },
	  {
      label: '更新人',
      prop: 'updateBy',
      hide: true,
    },
	  {
      label: '更新时间',
      prop: 'updateTime',
      hide: true,
    },
	  {
      label: '删除标志位',
      prop: 'delFlag',
      hide: true,
    },
	  {
      label: '部门名称',
      prop: 'deptName'
    },
	  {
      label: '部门编码',
      prop: 'deptCode'
    },
	  {
      label: '总班级数',
      prop: 'classNum'
    },
	  {
      label: '在校班级数',
      prop: 'schoolNum'
    },
	  {
      label: '顶岗班级数',
      prop: 'replacementNum'
    },
	  {
      label: '更岗班级数',
      prop: 'changeNum'
    },
	  {
      label: '总人数',
      prop: 'allPeople'
    },
	  {
      label: '小计(在校)',
      prop: 'subtotalSchool'
    },
	  {
      label: '注册(在校)',
      prop: 'registerSchool'
    },
	  {
      label: '借读(在校)',
      prop: 'borrowingSchool'
    },
	  {
      label: '男(在校)',
      prop: 'manSchool'
    },
	  {
      label: '女(在校)',
      prop: 'womanSchool'
    },
	  {
      label: '小计(顶岗)',
      prop: 'subtotalReplacement'
    },
	  {
      label: '男(顶岗)',
      prop: 'manReplacement'
    },
	  {
      label: '女(顶岗)',
      prop: 'womanReplacement'
    },
	  {
      label: '小计(更岗)',
      prop: 'subtotalChange'
    },
	  {
      label: '男(更岗)',
      prop: 'manChange'
    },
	  {
      label: '女(更岗)',
      prop: 'womanChange'
    },
	  {
      label: '小计(住宿)',
      prop: 'subtotalAccommodation'
    },
	  {
      label: '男(住宿)',
      prop: 'manAccommodation'
    },
	  {
      label: '女(住宿)',
      prop: 'womanAccommodation'
    },
  ]
}
