<template>
  <div class="qyjbqk-container">
    <TitleTab title="企业基本情况" />
    <div class="tab-content">
      <img class="tab-back-img" :src="getImgUrl('preview/tabBack.png')" alt="暂时无图">
      <!-- 内容展示 -->
      <div class="show-container">
        <div class="qy-item-container" v-for="item in showArr">
          <img class="qyjbqk-back-img" :src="getImgUrl('preview/Group1.png')" alt="">
          {{ item.title }}：{{ item.num }}
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, defineProps } from 'vue';
import TitleTab from '../TitleTab.vue';
import { getImgUrl } from "@/utils/tools.js"

const props = defineProps({
  /**标题 */
  title: {
    type: String,
    default: ''
  }
})
const showArr = ref([
  { title: '企业名称', num: '15000' },
  { title: '直属单位', num: '14' },
  { title: '专职安全员', num: '430' },
  { title: '复烤厂', num: '66' },
  { title: '注安(消)人员', num: '430' },
  { title: '物流中心', num: '450' },
  { title: '专业持证人员', num: '123' },
  { title: '烟叶站(点)', num: '450' },
]);
</script>

<style lang="scss" scoped>
.qyjbqk-container {
  height: 100%;

  .tab-content {
    position: relative;
    padding: 0.52vh;
    width: 100%;
    // height: 100%;
    height: 18vh;
    .tab-back-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0.8;
    }
    .show-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      padding: 0.4vh;
      gap: 0.5vh;
      height: 100%;
      overflow-y: auto;

      .qy-item-container {
        position: relative;
       width: 10.5vw;
       height: 3.33vh;
       padding-top: 0.5vh;
       padding-left: 1vw;
       .qyjbqk-back-img {
        position: absolute;

        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
       }
      }
    }
  }
}
</style>
