<template>
  <div class="full nav-page">
    <div class="flex flex-wrap">
      <div class="radius-base m-b-base m-r-base nav-card">质量统计</div>
      <router-link v-show="hasPermissions('/quality/self-check')" to="/quality/self-check">
        <div class="radius-base fill-blank m-b-base m-r-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/自查一致性分析.png" alt="" />
            <div class="m-t-extra-base nav-title">自查一致性分析</div>
          </div>
        </div>
      </router-link>
      <router-link v-show="hasPermissions('/subjective-check')" to="/subjective-check">
        <div class="radius-base fill-blank m-b-base m-r-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/主观题校验.png" alt="" />
            <div class="m-t-extra-base nav-title">主观题校验</div>
          </div>
        </div>
      </router-link>
      <router-link v-show="hasPermissions('/quality/ending-check')" to="/quality/ending-check">
        <div class="radius-base fill-blank m-b-base m-r-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/科目进度收尾.png" alt="" />
            <div class="m-t-extra-base nav-title">科目进度收尾</div>
          </div>
        </div>
      </router-link>
      <router-link v-show="hasPermissions('/quality/spot-check')" to="/quality/spot-check">
        <div class="radius-base fill-blank m-b-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/抽查情况统计.png" alt="" />
            <div class="m-t-extra-base nav-title">抽查情况统计</div>
          </div>
        </div>
      </router-link>
    </div>
  </div>
</template>

<script setup lang="ts" name="QualityNav">
/** 质量统计导航页 */
import useNavPermissions from '@/hooks/useNavPermissions'

const { hasPermissions } = useNavPermissions()
</script>

<style scoped lang="scss">
.nav-page {
  padding: 160px;
  .nav-card {
    width: 420px;
    height: 180px;
    background: url(@img/nav-page-card.png) no-repeat center center / cover;
    padding: 32px;
    font-size: 22px;
    color: $color--white;
  }
  .nav-item {
    width: 200px;
    height: 180px;
    text-align: center;
    display: flex;
    place-items: center;
    cursor: pointer;
    &:hover {
      box-shadow: 0px 0px 8px $ShadowColor;
    }
    .nav-img {
      width: 64px;
      height: 64px;
    }
    .nav-title {
      color: $PrimaryPlusFontColor;
      font-size: $MediumFont;
    }
  }
}
</style>
