<template>
  <div class="page">
    <el-form :model="search" ref="headerForm" label-width="100px" size="mini">
      <div>
        <el-button type="primary" size="mini" icon="el-icon-menu">全宗节点</el-button>
      </div>
      <el-form-item label="归档年度：">
        <el-date-picker
          v-model="search.year"
          style="width: 150px;"
          type="year"
          placeholder="选择年">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="归档时间：">
        <el-date-picker
          v-model="search.time"
          style="width: 260px;"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期">
        </el-date-picker>
      </el-form-item>
      <div class="btn">
        <el-button type="primary" size="mini">立即统计</el-button>
        <el-button type="primary" size="mini">导出excel</el-button>
        <el-button type="primary" size="mini">打印</el-button>
        <el-button type="primary" size="mini" @click="check">检测</el-button>
      </div>
    </el-form>
  </div>
</template>

<script>
  export default {
    data() {
      return {};
    },
    props: {
      search: {
        type: Object,
        default: () => {},
      },
    },
    methods: {
      searchClick() {
        this.$emit("searchClick");
      },
      check(){
        this.$emit('check')
      }
    },
  };

</script>

<style lang="scss" scoped>
  .page {
    width: 100%;
    background-color: #fff;
    padding: 10px 10px 0 10px;
    box-sizing: border-box;

    .el-form {
      display: flex;
      flex-wrap: wrap;

      .el-form-item {
        margin-bottom: 10px;
      }

      .btn {
        margin-left: 10px;
      }
    }
  }

</style>
