2023西安数博会CIM演示-【前端】-Web
AdaKing88
2023-08-21 bc03b832caa49bbcd2674fe4cae3701b5059bf95
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
100
101
102
103
104
105
106
107
108
<template>
  <div class="lifeline">
    <!-- <div class="changeBox">
      <div
        :style="{ color: typeIdx == 0 ? '#5EB4FF' : '#fff' }"
        @click="handleChangeMenu(0)"
      >
        风险监测
      </div>
      <div
        :style="{ color: typeIdx == 1 ? '#5EB4FF' : '#fff' }"
        @click="handleChangeMenu(1)"
      >
        预警分析
      </div>
    </div> -->
    <div class="aside" style="margin-left: 30px">
      <left-charts v-if="typeIdx == 0"></left-charts>
      <warn-left-charts v-if="typeIdx == 1"></warn-left-charts>
    </div>
    <div class="aside" style="margin-right: 30px">
      <right-charts v-if="typeIdx == 0"></right-charts>
      <warn-right-charts v-if="typeIdx == 1"></warn-right-charts>
    </div>
  </div>
</template>
 
<script>
import LeftCharts from "@/views/xianCim/lifeline/LeftCharts1";
import RightCharts from "@/views/xianCim/lifeline/RightCharts1";
import WarnLeftCharts from "@/views/xianCim/warnAnalysis/LeftCharts1";
import WarnRightCharts from "@/views/xianCim/warnAnalysis/RightCharts1";
export default {
  name: "lifeline",
  components: {
    LeftCharts,
    RightCharts,
    WarnLeftCharts,
    WarnRightCharts,
  },
  data() {
    return {
      typeIdx: 0,
    };
  },
  methods: {
    handleChangeMenu(type) {
      this.typeIdx = type;
      // this.$router.push("/xianCim/UEView/warnAnalysis")
    },
  },
};
</script>
 
<style scoped lang="less">
.lifeline {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 100;
  top: 0px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  pointer-events: none;
 
  .changeBox {
    position: absolute;
    top: 80px;
    right: calc(25% + 50px);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
 
    div {
      padding: 15px;
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 10px;
      background: no-repeat url("~@/assets/img/riskMonitor/integrated/monitorOverview/nameBg.png");
      background-size: 100% 100%;
      cursor: pointer;
      color: #fff;
    }
  }
 
  .aside {
    width: 25%;
    height: auto;
    //border: solid 1px red;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    padding-bottom: 60px;
    font-size: 50px;
    color: aliceblue;
    gap: 10px;
    background: rgba(18, 41, 75, 0.5);
    border-radius: 10px;
 
  }
 
  .selColor {
    color: red;
    background: red;
  }
}
</style>