zhangzengfei
2021-05-21 08897690839edae6546d56661c95d78629f70ecb
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
87
88
89
90
91
92
93
94
95
96
97
98
99
<template>
  <div class="panoramic-view">
    <div class="top-nav">
      <div class="logo">
        <div class="icon"></div>
        <a class="title">长春全景追踪</a>
      </div>
      <el-menu
        :default-active="actMenuIndex"
        class="el-menu-demo"
        mode="horizontal"
        @select="checkMenu"
      >
        <el-menu-item index="0">历史记录查询</el-menu-item>
        <el-menu-item index="1">位置标定</el-menu-item>
        <el-menu-item index="2">轨迹图</el-menu-item>
        <el-menu-item index="3">关联摄像机</el-menu-item>
      </el-menu>
    </div>
    <div class="act-view">
      <template v-if="actMenuIndex=='0'">
        <History />
      </template>
      <template v-if="actMenuIndex=='1'">
        <label-mark></label-mark>
      </template>
      <template v-if="actMenuIndex=='2'">
        <trace-plot ref="tracePlot"></trace-plot>
      </template>
      <template v-if="actMenuIndex=='3'">
        <relate-camera></relate-camera>
      </template>
    </div>
  </div>
</template>
 
<script>
import LabelMark from '../components/LabelMark';
import TracePlot from '../components/TracePlot';
import RelateCamera from '../components/RelateCamera';
import History from '../components/History';
export default {
  components: { LabelMark, TracePlot, RelateCamera, History },
  data() {
    return {
      actMenuIndex: '0',
    }
  },
  methods: {
    checkMenu(key, keyPath) {
      this.actMenuIndex = key;
    }
  }
}
</script>
 
<style lang="scss">
.panoramic-view {
  min-width: 1399px;
  overflow: hidden;
  height: 100%;
  .top-nav {
    display: flex;
    background: rgba(28, 26, 96, 1);
    .logo {
      width: 310px;
      display: flex;
      align-items: center;
      .icon {
        width: 50px;
      }
      .title {
        text-decoration: none;
        margin-left: 10px;
        font-size: 17px;
        color: #fff;
        letter-spacing: 5px;
      }
    }
    .el-menu--horizontal {
      border-bottom: 0;
      background: rgba(28, 26, 96, 1);
    }
    .el-menu--horizontal > .el-menu-item {
      border-bottom: 0;
      color: #fff;
      &:hover {
        color: #fff;
        background: rgb(24, 35, 182);
      }
    }
    .el-menu--horizontal > .el-menu-item.is-active {
      //border-bottom: 0;
      background-color: rgba(61, 73, 225, 1);
      color: #fff;
    }
  }
}
</style>