/*
 *    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: [],

  border: true,
  stripe: true,
  menuAlign: 'center',
  menuWidth: 150,
  align: 'center',
  refreshBtn: false,
  showColumn: false,
  viewBtn: false,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  filterBtn: false,
  expandAll: true,
  tree: true,
  page: false,
  column: [

    {
      label: '部门编码',
      prop: 'deptCode',
      align: 'left',
      slot: true,
      rules: [{
        required: true,
        message: '请输入部门编码',
        trigger: 'blur'
      }]

    },
    {
      label: 'id',
      prop: 'id',
      hide: true,
      addDisplay: false,
      editDisabled: false,
      editDisplay: false,
      visdiplay: false
    },
    {
      label: '父级节点',
      prop: 'parentCode',
      type: 'tree',
      dicUrl: '/basic/basicdept/tree',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
      hide: true,

    },
    {
      label: '部门名称',
      prop: 'deptName',
      hide: true,
      rules: [{
        required: true,
        message: '请输入部门名称',
        trigger: 'blur'
      }]
    },
    {
      label: '排序',
      prop: 'sort',
      rules: [{
        required: true,
        message: '请输入排序',
        trigger: 'blur'
      }]
    },
    {
      label: '是否为二级学院',
      prop: 'secondFlag',
      labelWidth: 135,
      type: 'radio',
      dicUrl: '/admin/dict/item/type/yes_no',
      props: {
        label: 'label',
        value: 'value'
      },
      rules: [{
        required: true,
        message: '请选择',
        trigger: 'blur'
      }]
    },
    {
      label: '是否为培训部门',
      prop: 'trainFlag',
      labelWidth: 135,
      type: 'radio',
      dicUrl: '/admin/dict/item/type/yes_no',
      props: {
        label: 'label',
        value: 'value'
      },
      rules: [{
        required: true,
        message: '请选择',
        trigger: 'blur'
      }]
    },
    {
      label: '是否为教学部门',
      prop: 'teachFlag',
      labelWidth: 135,
      type: 'radio',
      dicUrl: '/admin/dict/item/type/yes_no',
      props: {
        label: 'label',
        value: 'value'
      },
      rules: [{
        required: true,
        message: '请选择',
        trigger: 'blur'
      }]
    },
  ]
}


