吉安感知网项目-前端
shuishen
2026-02-11 13f2e88c4ebfd91775c9783d74220bd05e4337f9
feat:反无调整
1 files modified
2 files added
174 ■■■■ changed files
applications/drone-command/src/assets/images/active-menu-item.png patch | view | raw | blame | history
applications/drone-command/src/assets/images/menu-item.png patch | view | raw | blame | history
applications/drone-command/src/page/index/top/index.vue 174 ●●●● patch | view | raw | blame | history
applications/drone-command/src/assets/images/active-menu-item.png
applications/drone-command/src/assets/images/menu-item.png
applications/drone-command/src/page/index/top/index.vue
@@ -1,11 +1,20 @@
<template>
  <div class="avue-top">
    <div class="top-bar__title">
      <img :src="logoUrl" alt="">
      <span>低空飞行监管子系统</span>
  <header class="header-container">
    <div class="content-wrap">
      <div class="logo-title-wrap">
        <img :src="logoUrl" alt="Logo"></img>
        <p class="title">低空飞行监管子系统</p>
    </div>
    <div class="top-bar__right">
      <div class="header-right">
        <nav class="nav-menu">
          <div v-for="(item, index) in topMenus" :key="index" class="nav-item"
            :class="{ active: item.active }" @click="handleMenuClick(item)">
            <span>{{ item.label }}</span>
          </div>
        </nav>
        <div class="icon-group">
      <div class="top-user">
        <div class="icon-box">
         <img class="gateway" @click="jumpMH" src="@/assets/images/mh.png" alt="进入门户" title="进入门户">
@@ -33,6 +42,8 @@
      </div>
    </div>
  </div>
    </div>
  </header>
</template>
<script>
@@ -69,6 +80,35 @@
  data () {
    return {
      logoUrl: logo,
      activeMenu: 'drone-control',
      topMenus: [
        {
          key: 'twin-supervision',
          label: '孪生监管',
          path: '/flight-supervision/#/brain',
        },
        {
          key: 'airspace-collaboration',
          label: '空域协同',
          path: '/flight-supervision/#/space',
        },
        {
          key: 'air-traffic',
          label: '空中交通',
          path: '/flight-supervision/#/activity',
        },
        {
          key: 'information-service',
          label: '信息服务',
          path: '/flight-supervision/#/infoService',
        },
        {
          key: 'drone-control',
          label: '无人机管控',
          path: '',
          active: true,
        },
      ],
    }
  },
  filters: {},
@@ -102,40 +142,59 @@
      })
    },
    jumpMH () {
      window.open(`${window.location.origin}/droneWeb/#/gateway`, '_blank')
    },
    handleMenuClick (item) {
      this.activeMenu = item.key
      if (!item.path) return
      window.open(`${window.location.origin}${item.path}`, '_blank')
    },
  },
}
</script>
<style lang="scss" scoped>
.avue-top {
  display: flex;
  justify-content: space-between;
  height: 100%;
.header-container {
  position: relative;
  height: 110px;
  background: url('@/assets/images/topContainer/top-bg.png') center / 100% 100% no-repeat !important;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 2;
  .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  pointer-events: none;
}
.top-bar__left {
  flex: 0 0 auto;
}
.top-bar__title {
  margin-top: 16px;
  margin-left: 30px;
  flex: 1;
  .content-wrap {
    position: absolute;
    inset: 0;
  display: flex;
  align-items: center;
  height: pxToVh(48);
    z-index: 1;
    padding: 0 40px;
    .logo-title-wrap {
      display: flex;
      align-items: center;
      transform: translateY(-10px);
  img {
    margin-right: 17px;
    width: 50px;
    height: 50px;
        width: 70px;
        height: 63px;
        vertical-align: middle;
  }
  span {
      .title {
        margin-left: 16px;
        margin-top: 0;
        margin-bottom: 0;
    width: 353px;
    height: 43px;
    font-family: PangMen;
@@ -150,15 +209,67 @@
  }
}
.top-bar__right {
  margin-right: 28px;
  padding-top: 16px;
  flex: 0 0 auto;
  display: flex !important;
  align-items: flex-start;
  height: 100%;
    .header-right {
      display: flex;
      align-items: center;
      margin-left: auto;
      margin-top: -25px;
  pointer-events: auto;
      .nav-menu {
        display: flex;
        margin-right: 30px;
        gap: 0px;
        .nav-item {
          width: 136px;
          height: 34px;
  box-sizing: border-box;
          text-align: center;
          color: #afafe0;
          text-decoration: none;
          font-size: 20px;
          transition: color 0.3s;
          padding: 0;
          background: url('@/assets/images/menu-item.png') no-repeat center / 136px 34px;
          cursor: pointer;
          margin: 0 10px;
          display: flex;
          align-items: center;
          justify-content: center;
          padding-bottom: 10px;
          line-height: 1;
          font-family: YouSheBiaoTiHei;
          &:hover {
            color: #fff;
          }
          &.active {
            color: #fff;
            background: url('@/assets/images/active-menu-item.png') no-repeat center / 136px 34px;
            span {
              background: linear-gradient(180deg,
                  #fff 22.11%,
                  #ffffff 86.69%);
              background-size: contain;
              background-clip: text;
              -webkit-text-fill-color: transparent;
              text-shadow: 0px 0px 13px 0px #5da6ef73;
            }
          }
        }
      }
      .icon-group {
        display: flex;
        align-items: center;
        margin-right: 20px;
        gap: 15px;
  .icon-box {
    margin-top: 6px;
@@ -204,4 +315,7 @@
.el-dropdown-link:hover {
  color: #409EFF;
}
    }
  }
}
</style>