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
<template>
  <div class="car-container">
    <wrapper-title :title="'车辆设备数据'" :path="'/monitorServe/car'"></wrapper-title>
 
    <div class="car-content">
      <div class="data-plane">
        <dv-border-box-13 class="plane">
          <div class="data-item">
            <div class="data-icon">
              <img src="@/assets/images/screen/icon/icon1.png" alt="" class="width-img">
            </div>
            <div class="data-info">
              <div class="data-lable">设备总数</div>
              <div class="data-num type1" v-roll>{{ 1123 }}</div>
            </div>
          </div>
        </dv-border-box-13>
 
        <dv-border-box-13 class="plane">
          <div class="data-item">
            <div class="data-icon">
              <img src="@/assets/images/screen/icon/icon2.png" alt="" class="width-img">
            </div>
            <div class="data-info">
              <div class="data-lable">正常数</div>
              <div class="data-num type2" v-roll>{{ 2000 }}</div>
            </div>
          </div>
        </dv-border-box-13>
 
        <dv-border-box-13 class="plane">
          <div class="data-item">
            <div class="data-icon">
              <img src="@/assets/images/screen/icon/icon2.png" alt="" class="width-img">
            </div>
            <div class="data-info">
              <div class="data-lable">异常数</div>
              <div class="data-num type3" v-roll>{{ 1000 }}</div>
            </div>
          </div>
        </dv-border-box-13>
      </div>
 
    </div>
  </div>
 
</template>
 
<script>
import WrapperTitle from '../wrapper-title/index';
export default {
  name: 'ScreenCar',
  components: {
    WrapperTitle
  },
  data() {
    return {
      dataList: {
        state: { '01:00': 1000, '02:00': 2131, '03:00': 1233, '04:00': 2132, '05:00': 3211, '06:00': 213, '07:00': 123, '08:00': 566 },
        state2: { '01:00': 900, '02:00': 1131, '03:00': 1533, '04:00': 2132, '05:00': 3011, '06:00': 13, '07:00': 113, '08:00': 566 },
      },
    }
  },
 
  methods: {
  },
 
  mounted() {
  },
  beforeDestroy() {
  },
}
</script>
 
<style lang="scss" scoped>
.car-container {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
}
 
.car-content {
  flex: 1;
  background:  url('../../../../assets/images/screen/cardBg.png');
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
 
  .plane {
    margin-bottom: 10px;
  }
 
  .data-plane {
    .data-item {
      width: 100%;
      padding: 10px 20px;
      display: flex;
      align-items: center;
 
      .data-icon {
        width: 40px;
        margin: 0 20px;
      }
 
      .data-info {
        flex: 1;
        color: #5b83bd;
        font-size: 16px;
 
        .data-num {
          margin-top: 5px;
          font-size: 24px;
          color: #fff;
        }
 
        .type1 {
          color: #287cfa;
        }
        .type2 {
          color: #0cd81d;
        }
        .type3 {
          color: #e20c0c
        }
      }
    }
  }
 
  #faceChart {
    width: 100%;
    height: 300px;
  }
}
 
.width-img {
  width: 100%;
}
</style>