map
ZZJ
2021-10-29 0bb459c121f04f573230fa98de5ffc75b53f9960
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
<template>
  <div class="helemetHead">
      <headCard v-for="(item,index) in cardData"
      :key="index"
      :number="item.number"
      :info="item.info"
      :color="item.color"
      :src="cardImage[index]"
      />
 
      <helemetEchart />
 
  </div>
</template>
 
<script>
import headCard from '@/pages/internetEquipment/components/headCard'
import helemetEchart from '@/pages/internetEquipment/components/helemetEchart'
 
export default {
    data (){
        return {
            cardData: [
                {number:233,info:"设备总量",color:"#4E94FF"},
                {number:34,info:"本月新增",color:"#FFAA44"},
                {number:45,info:"今日预警",color:"#FF6464"},
            ],
            cardImage: [
                '/images/InternetDevice/Group 441.png',
                '/images/InternetDevice/Group 367.png',
                '/images/InternetDevice/Group 368.png',
            ]
        }
    },
    components :{
        headCard,
        helemetEchart
    }
 
}
</script>
 
<style scoped lang="scss">
.helemetHead {
    display: flex;
 
    .head-card {
        margin-right: 10px;
    }
 
    .helemet-echart {
        margin-left: 10px;
        width: 570px;
        height: 90px;
        box-shadow: 0px 2px 10px rgba(141, 164, 187, 0.25);
        border-radius: 15px;
    }
}
</style>