/*
 *    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.
 *
 */
const DIC = {
  //后勤/财务/学工/教务/6个学院/其他
  deptCode: [{
    label: '后勤',
    value: '230'
  },{
    label: '安全保卫处',
    value: '240'
  }, {
    label: '财务',
    value: '200'
  }, {
    label: '学工',
    value: '180'
  }, {
    label: '教务',
    value: '170'
  }, {
    label: '智能装备学院',
    value: '11'
  }, {
    label: '智能制造学院',
    value: '12'
  }, {
    label: '信息服务学院',
    value: '13'
  }, {
    label: '医药康养学院',
    value: '14'
  }, {
    label: '交通运输学院',
    value: '15'
  }, {
    label: '新能源学院',
    value: '16'
  }, {
    label: '其他',
    value: '0'
  }],

}
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '反馈部门',
      prop: 'deptCode',
      search:true,
      type:'select',
      dicData:DIC.deptCode,
      minWidth: 100,
    },
    {
      label: '姓名',
      prop: 'name',
      search:true,
      editDisabled:true,
      minWidth: 80,
    },
    {
      label: '班级',
      prop: 'className',
      editDisabled:true,
      minWidth: 120,
    },
    {
      label: '电话',
      prop: 'phone',
      search:true,
      editDisabled:true,
      minWidth: 120,
    },

	  {
      label: '登记时间',
      prop: 'createTime',
      addDisplay:false,
      editDisplay:false,
      minWidth: 150,
    },
    {
      label: '是否联系',
      prop: 'isContact',
      search:true,
      type: "select",
      fixed: "left",
      minWidth: 70,
      rules: [{
        required: true,
        message: "请选择状态",
        trigger: "blur"
      }],
      dicData: [{
        label: '待联系',
        value: "0"
      },{
        label: '已联系',
        value: "1"
      }, {
        label: '未接通',
        value: "3"
      }]
    },
    {
      label: '联系人',
      prop: 'clName',
      fixed: "left",
      search:true,
      editDisabled:true,
    },
    {
      label: '反馈内容',
      prop: 'feedback',
      // overHidden: true,
      type:"textarea",
      fixed: "left",
      span: 24,
      minWidth: 350,
      editDisabled:true,
      rules: [{
        required: true,
        message: "请选择反馈内容",
        trigger: "blur"
      }],
    },
	  {
      label: '反馈处理',
      prop: 'remarks',
      fixed: "left",
      // overHidden: true,
      type:"textarea",
      span: 24,
      minWidth: 300,
    },
  ]
}
