<template>
  <div>
    <div ref="lxHeader">
      <lx-header icon="md-apps" text="填报总览" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
        <slot>
          <el-date-picker
            v-model="select.year"
            @change="changeYear"
            type="year"
            placeholder="选择总览年份">
          </el-date-picker>
        </slot>
      </lx-header>
    </div>
    <div class="content">
      <div>
        <div>{{viewlist.count_category_type?viewlist.count_category_type:0}}</div>
        <div>清单类型</div>
      </div>
      <div>
        <div>{{viewlist.count_category?viewlist.count_category:0}}</div>
        <div>填报清单项</div>
      </div>
      <div>
        <div>{{viewlist.count_person?viewlist.count_person:0}}</div>
        <div>“一把手”和领导班子</div>
      </div>
      <div>
        <div>{{viewlist.count_record?viewlist.count_record:0}}</div>
        <div>条填报记录</div>
      </div>
      <div>
        <div>{{viewlist.count_record_missed?viewlist.count_record_missed:0}}</div>
        <div>超期未报</div>
      </div>
    </div>
  </div>
</template>

<script>
  import {overview} from "@/api/fill/index"
  export default{
    data(){
      return{
        select:{
          year:''
        },
        viewlist:{}
      }
    },
    created(){
      this.getOverview()
    },
    methods:{
      changeYear(e){},
      getOverview(){
        overview({
          year:this.select.year
        }).then(res=>{
          this.viewlist = res
        })
      }
    },
  }
</script>

<style scoped>
  .content{
    display: flex;
    justify-content: space-between;
    text-align: center;
  }
  .content>div{
    border:1px solid #333;
    width:18%;
    padding:60px 0;
    background-color: #fff;
    font-size: 18px;
  }
  .content>div>div:first-child{
    font-size: 30px;
  }
</style>
