<template>
  <div class="search-box">
    <section class="select-box">
      <div class="select-box--item">
        <span>灾害类型：</span>
        <el-select v-model="selectDisasterType" filterable placeholder="请选择灾害类型">
          <el-option v-for="item in DISASTER_TYPE" :key="item.value" :label="item.label" :value="item.value" />
        </el-select>
      </div>
      <div class="select-box--item">
        <span>灾害等级：</span>
        <el-select v-model="selectDisasterLevel" placeholder="请选择灾害等级">
          <el-option v-for="item in DISASTER_LEVEL" :key="item.value" :label="item.label" :value="item.value" />
        </el-select>
      </div>
      <div class="select-box--item">
        <span>生效状态：</span>
        <el-select v-model="selectStatus" placeholder="请选择状态">
          <el-option
            v-for="item in ACTIVE_STATUS_OPTIONS_MANAGEMENT"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          />
        </el-select>
      </div>
      <!-- <div class="select-box--item">
        <span>创建时间：</span>
        <el-date-picker
          type="datetimerange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          format="YYYY-MM-DD HH:mm:ss"
          date-format="YYYY/MM/DD ddd"
          time-format="A hh:mm:ss"
          v-model="dateRange"
        />
      </div> -->
    </section>
    <section class="search-btn">
      <el-button type="primary">查询</el-button>
      <el-button>重置</el-button>
    </section>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  import { ACTIVE_STATUS_OPTIONS_MANAGEMENT, DISASTER_TYPE, DISASTER_LEVEL } from '@/views/disaster/constant';
  const selectDisasterType = ref('');
  const selectDisasterLevel = ref('');
  const selectStatus = ref('');
  // const dateRange = ref<string[]>([]);
</script>

<style lang="scss" scoped>
  @use '@/views/disaster/style/search.scss' as *;
</style>
