youdaopingsection.vue
1.94 KB
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
<template>
<div>
<titlesection title="道闸/诱导屏"></titlesection>
<ul class="flexfm ydp-dz-wrap">
<li>
<div>
<div class="bg-wrap">
<p class="dznum-total">{{ dzNum|formatNum }}</p>
<p class="name">道闸</p>
</div>
</div>
<div>
<div class="bg-wrap">
<p class="ydpnum-total">{{ ydpNum|formatNum }}</p>
<p class="name">诱导屏</p>
</div>
</div>
</li>
<li>
<allPieChart :chart-data="pieChartData"/>
</li>
</ul>
</div>
</template>
<script>
import titlesection from '../components/titlesection'
import allPieChart from '../components/allPieChart'
import {fetchList} from '../api/api'
export default {
name: 'youdaopingsection',
components: {
titlesection,
allPieChart
},
data() {
return {
pieChartData: [35, 55],
dzNum: '23454',
ydpNum: '4454'
}
},
created() {
},
methods: {
getList() {
fetchList()
.then(res => {
console.log(res);
});
},
}
}
</script>
<style lang="scss" scoped>
.ydp-dz-wrap{
display: flex;
text-align: center;
padding: 0 23px;
li{
height: 100%;
flex: 1;
&:nth-of-type(1)>div{
height: 50%;
.bg-wrap{
width: 115px;
height: 59px;
padding: 13px 0 0 0;
position: relative;
top:50%;
left: 50%;
transform: translate(-50%,-50%);
background:url("../assets/img/bg-wrap.png") no-repeat;
.dznum-total,.ydpnum-total{
@include fonttextStyle(20px);
}
.dznum-total{
background-image: $fontBlue;
}
.ydpnum-total{
background-image: $fontOrange;
}
.name{
padding-top: 5px;
font-size: 12px;
color: #fff;
}
}
}
}
}
</style>