/**
 * 预防检查任务单搜索配置
 */
import type { SearchConfig } from '@/views/disaster/types';
import { TASK_TYPE_OPTIONS, TASK_STAGE_OPTIONS_MANAGEMENT } from '../constants/task-execution';
import { ACTIVE_STATUS_OPTIONS } from '@/views/disaster/constant';

// 任务管理搜索配置
export const TASK_MANAGEMENT_SEARCH_CONFIG: SearchConfig[] = [
  {
    label: '检查类型',
    prop: 'taskType',
    component: 'ElSelect',
    selectOptions: TASK_TYPE_OPTIONS,
    componentProps: {
      placeholder: '请选择检查类型',
    },
  },
  {
    label: '生效状态',
    prop: 'activeStatus',
    component: 'ElSelect',
    selectOptions: ACTIVE_STATUS_OPTIONS,
    componentProps: {
      placeholder: '请选择生效状态',
    },
  },
  {
    label: '检查阶段',
    prop: 'taskStage',
    component: 'ElSelect',
    selectOptions: TASK_STAGE_OPTIONS_MANAGEMENT,
    componentProps: {
      placeholder: '请选择检查阶段',
    },
  },
];
