import type { SearchConfig } from '@/types/basic-search';
import { EMERGENCY_PROCEDURE_STATUS_OPTIONS } from '../constant';

export const PROCEDURE_LIST_SEARCH_CONFIG: SearchConfig[] = [
  {
    label: '应急事件类型：',
    prop: 'emergencyType',
    slot: 'emergencyType',
  },
  {
    label: '事件名称：',
    prop: 'procedureName',
    component: 'ElInput',
    componentProps: {
      placeholder: '请输入事件名称',
    },
  },
  {
    label: '事件启动时间：',
    prop: 'procedureStartTime',
    component: 'ElDatePicker',
    componentProps: {
      type: 'datetimerange',
      format: 'YYYY-MM-DD HH:mm:ss',
      rangeSeparator: '-',
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间',
    },
  },
  {
    label: '状态：',
    prop: 'status',
    component: 'ElSelect',
    selectOptions: EMERGENCY_PROCEDURE_STATUS_OPTIONS,
    componentProps: {
      placeholder: '全部',
      clearable: true,
    },
  },
];
