<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/changSuosb.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: '42' },
  { title: '建筑物', num: '7' },
  { title: '车辆', num: '65' },
  { title: '驾驶员', num: '32' },
  { title: '安全标识', num: '456' },
  { title: '安全器材', num: '65' },
  { title: '安全设备设施', num: '32' },
  { title: '生产设备', num: '455' },
]);
</script>

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

  .tab-content {
    position: relative;
    padding: 0.52vh;
    width: 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: 1.2vw;

        .qyjbqk-back-img {
          position: absolute;
          // opacity: 0.9;
          top: 0;
          left: 0;
          // width: 100%;
          // height: 31px;
          width: 100%;
          height: 31px;
        }
      }
    }
  }
}
</style>
