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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<template>
  <div id="outViews">
 
    <div class="cityCenterContent">
      <div class="topBtnRow">
        <div class="topBtn" :style="{ backgroundImage: 'url(' + (active1 ? coverImgUrl : uncoverImgUrl) + ')' }"
          @click="clickBtn1()">
          建设阶段</div>
        <div class="topBtn" :style="{ backgroundImage: 'url(' + (active2 ? coverImgUrl : uncoverImgUrl) + ')' }"
          @click="clickBtn2()">
          招商阶段</div>
      </div>
 
      <div class="cityCenter" v-show="active1 || active2">
        <div class="content1" v-show="active1">
 
          <QualitySafety />
          <InvestmentProgress />
        </div>
        <div class="content2" v-show="active2">
          <deviceState />
          <!-- <productInfo /> -->
 
        </div>
 
      </div>
    </div>
 
 
 
 
 
  </div>
</template>
 
<script>
import deviceState from "./deviceStateNew.vue"
import productInfo from "../outViews/productInfo.vue"
import QualitySafety from "../outViews/QualitySafetyNew.vue"
import InvestmentProgress from "../outViews/InvestmentProgressNew.vue"
export default {
  name: "",
  components: {
    deviceState,
    productInfo,
    QualitySafety,
    InvestmentProgress,
  },
  data() {
    return {
      coverImgUrl: require('../../assets/img/topBtnBackActive.png'),
      uncoverImgUrl: require('../../assets/img/topBtnBack.png'),
      active1: false,
      active2: false
    }
  },
  methods: {
    clickBtn1() {
      this.active2 = false
      this.active1 = !this.active1
      this.$nextTick(() => [
        window.dispatchEvent(new Event('resize'))//初始化echarts
      ])
    },
    clickBtn2() {
      this.active1 = false
      this.active2 = !this.active2
      this.$nextTick(() => [
        window.dispatchEvent(new Event('resize'))//初始化echarts
      ])
    }
  },
 
}
</script>
 
<style scoped lang="scss">
#outViews {
  position: absolute;
  z-index: 10;
  height: 100%;
  width: 100%;
  top: 0px;
  pointer-events: none;
 
  .cityCenterContent {
    width: 675.5px;
    height: 867.5px;
    margin-left: 105px;
    margin-top: 64px;
 
    .topBtnRow {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 20px;
      pointer-events: all;
      display: flex;
      flex-direction: row;
      justify-content: center;
 
      .topBtn {
        height: 33px;
        width: 200px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        font-size: 11px;
        color: #e0e5fa;
        cursor: pointer;
 
        background-image: url("~@/assets/img/topBtnBack.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
      }
    }
 
    .cityCenter {
      margin-top: 10px;
      width: 675.5px;
      height: 837.5px;
      background-image: url('~@/assets/img/city_center_back.png');
      background-repeat: no-repeat;
      background-size: 100% 100%;
 
      .content1 {
        position: relative;
        height: 100%;
        width: 100%;
        pointer-events: all;
        display: flex;
        flex-direction: column;
      }
 
      .content2 {
        position: relative;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        pointer-events: all;
      }
    }
  }
 
 
}
</style>