<template>
  <div class="gltj-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="gltj-back-img" :src="getImgUrl('preview/guanLiTongJi.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: '892' },
  { title: '规章制度数量', num: '14' },
  { title: '操作规范', num: '98' },
  { title: '专项检查次数', num: '242' },
  { title: '季节性检查次数', num: '498' },
  { title: '节假日检查次数', num: '456' },
  { title: '国家局检查次数', num: '598' },
  { title: '安全宣传活动组织', num: '598' },
]);
</script>

<style lang="scss" scoped>
.gltj-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;
      text-align: center;
       .gltj-back-img {
        position: absolute;

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