import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  /**
  {
    title: '事件ID',
    align: "center",
    dataIndex: 'eventId'
  },
  
  {
    title: '事件类型',
    align: "center",
    dataIndex: 'eventTp_dictText'
  },
  {
    title: '处理方法',
    align: "center",
    dataIndex: 'content'
  },
  */
  {
    title: '姓名',
    align: "center",
    dataIndex: 'uname'
  },
  {
    title: '所属机构',
    align: "center",
    dataIndex: 'org'
  },
  {
    title: '部门',
    align: "center",
    dataIndex: 'depart'
  },
  {
    title: '职位',
    align: "center",
    dataIndex: 'position'
  },
  {
    title: '所在层级',
    align: "center",
    dataIndex: 'perLevel'
  },
  /**
  {
    title: '处理步骤',
    align: "center",
    dataIndex: 'step'
  },
  */
  {
    title: '联系方式',
    align: "center",
    dataIndex: 'tel'
  },
  {
    title: '职责',
    align: "center",
    dataIndex: 'duty'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: "事件ID",
    field: 'eventId',
    component: 'Input',
    colProps: {span: 6},
  },
  
];

//表单数据
export const formSchema: FormSchema[] = [
  /** 
  {
    label: '事件ID',
    field: 'eventId',
    component: 'InputNumber',
  },
  {
    label: '事件类型',
    field: 'eventTp',
    component: 'InputNumber',
  },
  {
    label: '处理方法',
    field: 'content',
    component: 'Input',
  },
  */
  {
    label: '姓名',
    field: 'uname',
    component: 'Input',
  },
  {
    label: '所属机构',
    field: 'org',
    component: 'Input',
  },
  {
    label: '部门',
    field: 'depart',
    component: 'Input',
  },
  {
    label: '职位',
    field: 'position',
    component: 'Input',
  },
  {
    label: '所在层级',
    field: 'perLevel',
    component: 'Input',
  },
  /**
  {
    label: '处理步骤',
    field: 'step',
    component: 'InputNumber',
  },
  */
  {
    label: '联系方式',
    field: 'tel',
    component: 'Input',
  },
  {
    label: '职责',
    field: 'duty',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
