<template>
  <div class="full nav-page">
    <div class="flex flex-wrap">
      <div class="radius-base nav-card">数据管理</div>
      <router-link v-show="hasPermissions('/data/marking')" to="/data/marking">
        <div class="radius-base fill-blank m-l-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('/data/paper')" to="/data/paper">
        <div class="radius-base fill-blank m-l-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/导入培训卷RF卷.png" alt="" />
            <div class="m-t-extra-base nav-title">导入培训卷/RF卷</div>
          </div>
        </div>
      </router-link>
      <router-link v-show="hasPermissions('/data/export')" to="/data/export">
        <div class="radius-base fill-blank m-l-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/CET成绩导出.png" alt="" />
            <div class="m-t-extra-base nav-title">CET成绩导出</div>
          </div>
        </div>
      </router-link>
    </div>
  </div>
</template>

<script setup lang="ts" name="DataManageNav">
/** 数据管理导航页 */
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>
