<template>
  <!-- 数据总览 -->
  <div class="dataScreening">
    <div class="top-l-l" style="width:130px;">
      <div class="top-l-l-t">
        <p class="null-p"></p>
        <p class="for-p" v-for="(item,index) in newData.checkNum">{{item}}</p>
        <p class="text-p">次</p>
        <p class="null-p"></p>
      </div>
      <div class="top-l-l-m">2024年</div>
      <div class="top-l-l-b">学院自查</div>
    </div>
    <div class="line"></div>
    <div class="top-l-r">
      <div class="top-l-r-li">
        <img class="top-l-r-li-t" src="@/assets/ZDimages/securityCheck/icon_gzzl_jcxms@1x.png"/>
        <div class="top-l-r-li-m"><i>{{newData.checkItemsNum}}</i><i>项</i></div>
        <div class="top-l-r-li-b">检查项目数</div>
      </div>
      <div class="top-l-r-li">
        <img class="top-l-r-li-t" src="@/assets/ZDimages/securityCheck/icon_gzzl_xfzgtzs@1x.png"/>
        <div class="top-l-r-li-m"><i>{{newData.noticeNum}}</i><i>项</i></div>
        <div class="top-l-r-li-b">下发整改通知书</div>
      </div>
    </div>
  </div>
</template>

<script>
  import {
    securityCollegeStatisticsCollegeCheck,
  } from '@/api/safetyCheck/index'
  export default {
    name: 'dataScreening',
    props:{
      propsData:{},
    },
    data(){
      return{
        newData:{
          checkNum:'',
          checkItemsNum:'',
          noticeNum:'',
        },

      }
    },
    created(){

    },
    mounted(){
      this.securityCollegeStatisticsCollegeCheck();
    },
    methods: {
      securityCollegeStatisticsCollegeCheck(){
        let obj = {
          source:this.propsData.source,
          schoolAdmin:this.propsData.schoolAdmin,
          deptId:this.propsData.deptId,
          subIds:this.propsData.subIds,
        }
        securityCollegeStatisticsCollegeCheck(obj).then(response => {
          this.$set(this,'newData',{
            checkNum:response.data.checkNum+'',
            checkItemsNum:response.data.checkItemsNum,
            noticeNum:response.data.noticeNum,
          });
        });
      },
    }
  }
</script>

<style scoped lang="scss">
  .dataScreening{
    height: 138px;
    display: flex;
    justify-content: flex-start;
    width: 366px;
    height: 138px;
    background: #FFFFFF;
    box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.1);
    border-radius: 10px 10px 10px 10px;
    .top-l-l{
      overflow: hidden;
      .top-l-l-t{
        display: flex;
        justify-content: flex-start;
        margin: 24px 0 0 0;
        .null-p{
          flex:1;
        }
        .for-p{
          font-style: normal;
          width: 20px;
          height: 26px;
          background: url("../../../assets/ZDimages/securityCheck/icon_gzzl_xyxc@1x.png");
          background-size: 100%;
          margin-right: 5px;
          font-weight: 700;
          font-size: 20px;
          color: #0183FA;
          line-height: 26px;
          text-align: center;
        }
        .text-p{
          font-weight: 400;
          font-size: 16px;
          color: #333333;
          line-height: 24px;
          text-align: center;
        }
      }
      .top-l-l-m{
        font-weight: 400;
        font-size: 16px;
        color: #333333;
        line-height: 24px;
        margin: 22px 0 0 0;
        text-align: center;
      }
      .top-l-l-b{
        font-weight: 400;
        font-size: 14px;
        color: #333333;
        line-height: 24px;
        margin: 2px 0 0 0;
        text-align: center;
      }
    }
    .line{
      width: 1px;
      height:110px;
      border: 1px dashed #D8D8D8;
      margin-top: 14px;
    }
    .top-l-r{
      display: flex;
      justify-content: flex-start;
      margin-top: 22px;
      .top-l-r-li{
        width: 102px;
        text-align: center;
        margin-right: 5px;
        .top-l-r-li-t{
          width: 34px;
          height: 34px;
        }
        .top-l-r-li-m{
          margin-top: 6px;
          >i:nth-of-type(1){
            font-style: normal;
            font-weight: 700;
            font-size: 18px;
            color: #FFA60C;
            line-height: 24px;
            margin-right: 6px;
          }
          >i:nth-of-type(2){
            font-style: normal;
            font-weight: 400;
            font-size: 16px;
            color: #333333;
            line-height: 24px;
          }
        }
        .top-l-r-li-b{
          font-weight: 400;
          font-size: 14px;
          color: #333333;
          line-height: 24px;
          text-align: center;
          margin-top: 6px;
        }
      }
    }
  }

</style>
