forked from drone/command-center-dashboard

罗广辉
2025-03-27 81baaa36ffadbcdb76eba7fce76dbb81a9603048
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<template>
  <div class="header">
    <div class="h-left">
      <div class="left-item active">首页</div>
      <div class="left-item">集群调度</div>
      <div class="left-item">任务管理</div>
      <div class="left-item">航线规划</div>
    </div>
    <div class="h-right">
      <div class="right-item">AI识别分析</div>
      <div class="right-item">综合分析</div>
      <div class="right-item">数据中心</div>
      <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>
 
<style scoped lang="scss">
.header {
  width: calc(100% - 57px - 59px);
  margin-left: 57px;
  padding-top: 38px;
  display: flex;
  justify-content: space-between;
 
  .h-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
 
    .left-item {
      width: 105px;
      height: 39px;
      background: url(@/assets/images/header-left.png) no-repeat;
      background-size: 100% 100%;
      margin-right: 3px;
      font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
      font-weight: 400;
      font-size: 18px;
      color: #ffffff;
      line-height: 42px;
      text-align: center;
      font-style: normal;
      text-transform: none;
    }
 
    .active {
      background: url(@/assets/images/header-active.png) no-repeat;
      background-size: 100% 100%;
    }
  }
 
  .h-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
 
    .right-item {
      width: 105px;
      height: 39px;
      background: url(@/assets/images/header-right.png) no-repeat;
      background-size: 100% 100%;
      margin-right: 3px;
      font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
      font-weight: 400;
      font-size: 18px;
      color: #ffffff;
      line-height: 42px;
      text-align: center;
      font-style: normal;
      text-transform: none;
    }
  }
}
</style>