<script setup lang="ts">
const queryForm = defineModel<any>("queryForm", { required: true });

defineEmits<{
  load: [];
  resetQuery: [];
}>();
</script>

<template>
  <el-form :inline="true" :model="queryForm">
    <!-- <el-form-item label="项目ID">
      <el-input-number v-model="queryForm.projectId" :min="1" />
    </el-form-item> -->
    <el-form-item label="项目名称">
      <el-input v-model="queryForm.projectName" placeholder="模糊匹配项目名称" />
    </el-form-item>
    <el-form-item label="会议主题">
      <el-input v-model="queryForm.topic" placeholder="模糊匹配会议主题" />
    </el-form-item>
    <el-form-item label="会议状态">
      <el-select v-model="queryForm.meetingStatus" clearable placeholder="全部" style="width: 160px">
        <el-option label="未开始" value="NOT_STARTED" />
        <el-option label="进行中" value="IN_PROGRESS" />
        <el-option label="已完成" value="COMPLETED" />
        <el-option label="已取消" value="CANCELED" />
        <el-option label="已延期" value="DELAYED" />
        <el-option label="已冻结" value="FROZEN" />
      </el-select>
    </el-form-item>
    <el-form-item label="审核状态">
      <el-select v-model="queryForm.auditStatus" clearable placeholder="全部" class="w-input-sm">
        <el-option label="待审核" value="PENDING" />
        <el-option label="审核中" value="IN_REVIEW" />
        <el-option label="审核通过" value="APPROVED" />
        <el-option label="审核拒绝" value="REJECTED" />
      </el-select>
    </el-form-item>
    <!-- <el-form-item>
      <el-checkbox v-model="queryForm.includeDeleted">包含已删除</el-checkbox>
    </el-form-item> -->
    <!-- <el-form-item label="当前审核节点">
      <el-input v-model="queryForm.currentAuditNode" placeholder="如：INIT_REVIEW" />
    </el-form-item> -->
    <!-- <el-form-item label="当前审核人ID">
      <el-input-number v-model="queryForm.currentAuditorUserId" :min="1" />
    </el-form-item> -->
    <!-- <el-form-item label="会议时间">
      <el-date-picker
        v-model="queryForm.meetingTimeRange"
        type="datetimerange"
        range-separator="至"
        start-placeholder="开始时间"
        end-placeholder="结束时间"
        value-format="YYYY-MM-DD HH:mm:ss"
      />
    </el-form-item>
    <el-form-item label="最后提交时间">
      <el-date-picker
        v-model="queryForm.lastSubmitRange"
        type="datetimerange"
        range-separator="至"
        start-placeholder="开始时间"
        end-placeholder="结束时间"
        value-format="YYYY-MM-DDTHH:mm:ss"
      />
    </el-form-item> -->
    <el-form-item>
      <el-button type="primary" @click="$emit('load')">查询</el-button>
      <el-button @click="$emit('resetQuery')">重置</el-button>
    </el-form-item>
  </el-form>

  <el-divider />

  <!-- <el-form :inline="true">
    <el-form-item>
      <el-button @click="$emit('load')">刷新</el-button>
    </el-form-item>
  </el-form> -->
</template>
