<template>
  <div class="dataImport-container">
    <div class="dataImport-seccion">
      <!-- :class="index==0?'box-container':'box-container2'" -->
      <div class="box-container" v-for="(item,index) in dataList" :key="index">
        <div class="box-children" @click="sjzlSubsystem(item.type)">
          <img :src="item.img" alt="">
          <div class="literal-description">
            <p>{{item.name}}</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { type } from 'os'

export default {
  name: 'YunnanReportUiDataImport',

  data() {
    return {
      dataList:[
      {type:3,name:'数据导入子系统', img:require('../assets/images/state.png')},
        {type:1,name:'数据整理子系统', img:require('../assets/images/sjzlzxt.png')},
        {type:2,name:'区域知识产权统计监测子系统', img:require('../assets/images/zscqzxt.png')},

      ]
    };
  },

  mounted() {

  },

  methods: {
    sjzlSubsystem(type){
      if(type==1){
        this.$tab.openPage("数据整理", "/dPatentDataCollationInfo");
      }else if(type==2) {
        this.$tab.openPage("概况统计", "/patentstatist/patentvalid/rzlViewStatisticsInfo");
      }else{
        this.$tab.openPage("数据导入", "/dataImport");
      }
    }
  },
};
</script>

<style lang="scss" scoped>
.dataImport-container {
  width: 100%;
  min-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25vh 0;
.dataImport-seccion{
  display: flex;
  padding: 10px;
  justify-content: space-evenly;
  width: 100%;
  margin: 0 auto;
  .box-container {
    width: 160px;
    background-color: #2a8eed;
    border-radius: 10px;
    cursor: pointer;
    .box-children {
      padding: 22px;
      text-align: center;
      img {
        width: 65px;
        height: 65px;
      }
      .literal-description {
        margin-top: 5px;
        p {
          padding: 0;
          margin: 0;
          color: #fff;
          font-size: 14px;
        }
        &>p:nth-child(2) {
          padding: 5px 0;
          font-size: 12px;
          display: flex;
          justify-content: space-between;
        }
      }
    }
  }
  .box-container2 {
    width: 160px;
    background-color: #cccccc;
    border-radius: 10px;
    cursor: pointer;
    .box-children {
      padding: 22px;
      text-align: center;
      img {
        width: 65px;
        height: 65px;
      }
      .literal-description {
        margin-top: 5px;
        p {
          padding: 0;
          margin: 0;
          color: #fff;
          font-size: 14px;
        }
        &>p:nth-child(2) {
          padding: 5px 0;
          font-size: 12px;
          display: flex;
          justify-content: space-between;
        }
      }
    }
  }
  .box-container2:hover{
    background-color: #2a8eed;
  }
}
}

</style>
