import { FormSchema } from '/@/components/Table';
import { BasicColumn } from '/@/components/Table';

export const eventCorrelationForm: FormSchema[] = [
  {
    field: 'areaBelongs',
    label: '所属领域',
    component: 'Select',
    required: true,
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'industryBelongs',
    label: '所属行业',
    component: 'Select',
    required: true,
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'eventType',
    label: '关联事件类型',
    component: 'Select',
    required: true,
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'eventLevel',
    label: '关联事件级别',
    component: 'Select',
    required: true,
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'areaBelongs',
    label: '事件所属区域',
    component: 'Select',
    required: true,
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'alarmLevel',
    label: '关联报警等级',
    component: 'Select',
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'alarmRiskLevel',
    label: '报警风险等级',
    component: 'Select',
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'alarmType',
    label: '关联报警类型',
    component: 'Select',
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'forewarnLevel',
    label: '关联预警级别',
    component: 'Select',
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'forewarnRiskLevel',
    label: '预警风险等级',
    component: 'Select',
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'forewarnType',
    label: '关联预警类型',
    component: 'Select',
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'isCorrelationPlan',
    label: '是否关联预案',
    component: 'Switch',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'planName',
    label: '预案名称',
    component: 'Select',
    required: true,
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
    ifShow: ({ values }) => Reflect.get(values, 'isCorrelationPlan'),
  },
  {
    field: 'planCallLevel',
    label: '响应级别',
    component: 'Select',
    required: true,
    colProps: { span: 14 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择,可多选',
      mode: 'multiple',
    },
    ifShow: ({ values }) => Reflect.get(values, 'isCorrelationPlan'),
  },
];
// 专家表格信息
export const expertColumn: BasicColumn[] = [
  {
    title: '专家姓名',
    dataIndex: 'name',
    width: 100,
  },
  {
    title: '性别',
    dataIndex: 'sex',
    width: 100,
  },
  {
    title: '年龄',
    dataIndex: 'age',
    width: 100,
  },
  {
    title: '职务',
    dataIndex: 'duty',
    width: 100,
  },
  {
    title: '职称',
    dataIndex: 'professionalTitles',
    width: 100,
  },
  {
    title: '联系方式',
    dataIndex: 'contact',
    width: 100,
  },
  {
    title: '学历',
    dataIndex: 'degree',
    width: 100,
  },
  {
    title: '学位',
    dataIndex: 'graduate',
    width: 100,
  },

  {
    title: '所属单位',
    dataIndex: 'affiliation',
    width: 100,
  },
  {
    title: '工作状态',
    dataIndex: 'workStatus',
    width: 100,
  },
  {
    title: '邮箱',
    dataIndex: 'email',
    width: 100,
  },
  {
    title: '备注',
    dataIndex: 'remark',
    width: 100,
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: 100,
  },
];
