sfysection.vue
1.98 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
<template>
<div>
<titlesection title="收费员"></titlesection>
<totalsection :totalNum="totalVal"></totalsection>
<ul class="flexfm sfy-wrap">
<li>
<div class="sign">
<p class="signnum">{{ signNum|formatNum }}</p>
<p class="text">签到</p>
</div>
</li>
<li>
<div class="nosign">
<p class="signnum">{{ nosignNum|formatNum }}</p>
<p class="text">未签到</p>
</div>
</li>
</ul>
</div>
</template>
<script>
import titlesection from '../components/titlesection'
import totalsection from '../components/total'
import { tollAddress } from '../api/api'
export default {
name: 'sfysection',
components: {
titlesection,
totalsection
},
data() {
return {
totalVal: '',
signNum: '',
nosignNum: ''
}
},
created() {
this.getList()
},
methods: {
getList() {
tollAddress({
orgIds: this.GLOBAL.paramsvariables
}).then((response)=>{
let data = response.data.data
this.totalVal = (data.allTollCollector).toString()
this.signNum = data.signInTollCollector
this.nosignNum = data.unSignInTollCollector
})
},
}
}
</script>
<style lang="scss" scoped>
.sfy-wrap{
display: flex;
padding: 0 23px;
li{
flex: 1;
display: flex;
align-items:center;
>div{
width: 100%;
height: 49px;
padding-left: 71px;
color: #fff;
}
.sign{
background: url("../assets/img/nosign.png") no-repeat;
.signnum{
padding: 5px 0;
@include fonttextStyle(24px);
background-image: $fontBlue;
}
}
.nosign{
background: url("../assets/img/sign.png") no-repeat;
.signnum{
padding: 5px 0;
@include fonttextStyle(24px);
background-image: $fontOrange;
}
}
.text{
color: #fff;
font-size: 12px;
}
}
}
</style>