forked from drone/command-center-dashboard

chenyao
2025-03-28 b4ba7ef43a97b02a3af5bff339a66f3f6443fe0e
src/layout/Header.vue
@@ -1,11 +1,12 @@
<template>
  <div class="header">
    <div class="h-left">
      <div class="left-item active">首页</div>
      <div class="left-item active" @click="router.push('/')">首页</div>
      <div class="left-item">集群调度</div>
      <div class="left-item">任务管理</div>
      <div class="left-item" @click="router.push('/taskManage')">任务管理</div>
      <div class="left-item">航线规划</div>
    </div>
    <div class="big-title">江西省指挥调度平台</div>
    <div class="h-right">
      <div class="right-item">AI识别分析</div>
      <div class="right-item">综合分析</div>
@@ -13,26 +14,20 @@
      <div class="right-item">系统运维</div>
    </div>
  </div>
  <div :style="{ background: '#2bc03f', height: hToV(50), width: wToR(50) }">test</div>
</template>
<script>
import { hToV, wToR } from '@/utils/pxConver';
export default {
  methods: { wToR, hToV },
  mounted() {
  },
};
<script setup>
const router = useRouter()
</script>
<style scoped lang="scss">
.header {
  width: calc(100% - 57px - 59px);
  margin-left: 57px;
  padding-top: 38px;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  // position: relative;
  .h-left {
    display: flex;
@@ -45,7 +40,7 @@
      background: url(@/assets/images/header-left.png) no-repeat;
      background-size: 100% 100%;
      margin-right: 3px;
      font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
      font-family: YouSheBiaoTiHei, YouSheBiaoTiHei,serif;
      font-weight: 400;
      font-size: 18px;
      color: #ffffff;
@@ -60,7 +55,22 @@
      background-size: 100% 100%;
    }
  }
  .big-title {
    position: relative;
    top: -12px;
    width: 500px;
    height: 58px;
    font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
    font-weight: 400;
    font-size: 45px;
    color: #FFFFFF;
    line-height: 53px;
    letter-spacing: 11px;
    text-shadow: 0px 4px 1px rgba(19,80,143,0.66), 0px 0px 18px rgba(130,165,255,0.4), inset 0px 0px 2px rgba(255,255,255,0.8);
    text-align: center;
    font-style: normal;
    text-transform: none;
  }
  .h-right {
    display: flex;
    justify-content: space-between;
@@ -72,7 +82,7 @@
      background: url(@/assets/images/header-right.png) no-repeat;
      background-size: 100% 100%;
      margin-right: 3px;
      font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
      font-family: YouSheBiaoTiHei, YouSheBiaoTiHei,serif;
      font-weight: 400;
      font-size: 18px;
      color: #ffffff;