22fb20b3
songchongxian
城市停车运营监控
|
1
2
3
4
5
6
7
8
9
10
11
|
<template>
<div class="app-deviceBox">
<div class="theme-card">
<div class="title"><span>设备</span></div>
<div class="content">
<table class="deviceTb">
<tr>
<td style="padding: 0 7px 0 15px;">
<div class="deviceBg eleVerHorCenter-box">
<table class="PDAcontent">
<tr><td><span>{{PDANum}}</span> </td></tr>
|
2e7784ff
liuqimichale
设备统计
|
12
|
<tr><td><div>{{PDAName}}</div></td></tr>
|
22fb20b3
songchongxian
城市停车运营监控
|
13
14
15
16
|
</table>
</div>
<div class="deviceBg eleVerHorCenter-box marginTop">
<table class="daoZhacontent">
|
2e7784ff
liuqimichale
设备统计
|
17
18
|
<tr><td><span>{{daoZhaNum}}</span> </td></tr>
<tr><td><div>{{daoZhaName}}</div></td></tr>
|
22fb20b3
songchongxian
城市停车运营监控
|
19
20
21
22
23
24
25
|
</table>
</div>
</td>
<td style="padding: 0 15px 0 7px;">
<div class="deviceBg eleVerHorCenter-box">
<table class="diCicontent">
<tr><td><span>{{diCiNum}}</span> </td></tr>
|
2e7784ff
liuqimichale
设备统计
|
26
|
<tr><td><div>{{diCiName}}</div></td></tr>
|
22fb20b3
songchongxian
城市停车运营监控
|
27
28
29
30
31
|
</table>
</div>
<div class="deviceBg eleVerHorCenter-box marginTop">
<table class="youDaocontent">
<tr><td><span>{{youDaoNum}}</span> </td></tr>
|
2e7784ff
liuqimichale
设备统计
|
32
|
<tr><td><div>{{youDaoName}}</div></td></tr>
|
22fb20b3
songchongxian
城市停车运营监控
|
33
34
35
36
37
|
</table>
</div>
</td>
</tr>
</table>
|
22fb20b3
songchongxian
城市停车运营监控
|
38
39
40
41
42
43
|
</div>
</div>
</div>
</template>
<script>
|
c9493378
liuqimichale
api 接口封装
|
44
|
import { deviceAddress } from '../../api/api'
|
22fb20b3
songchongxian
城市停车运营监控
|
45
46
47
48
|
export default {
name: "device",
data() {
return {
|
c9493378
liuqimichale
api 接口封装
|
49
|
PDANum:'',//PDA数
|
2e7784ff
liuqimichale
设备统计
|
50
|
PDAName:'',
|
c9493378
liuqimichale
api 接口封装
|
51
|
diCiNum:'',//地磁数
|
2e7784ff
liuqimichale
设备统计
|
52
|
diCiName:'',
|
c9493378
liuqimichale
api 接口封装
|
53
|
daoZhaNum:'',//道闸数
|
2e7784ff
liuqimichale
设备统计
|
54
|
daoZhaName:'',
|
c9493378
liuqimichale
api 接口封装
|
55
|
youDaoNum:'',//诱导屏
|
2e7784ff
liuqimichale
设备统计
|
56
|
youDaoName:'',
|
22fb20b3
songchongxian
城市停车运营监控
|
57
58
59
60
|
name: '设备'
}
},
mounted() {
|
c9493378
liuqimichale
api 接口封装
|
61
|
this.onLoad()
|
22fb20b3
songchongxian
城市停车运营监控
|
62
63
|
},
methods: {
|
c9493378
liuqimichale
api 接口封装
|
64
65
66
|
onLoad() {
deviceAddress({orgIds: this.GLOBAL.paramsvariables}).then((response)=>{
let data = response.data.data
|
cd36de4d
liuqimichale
滚动播报
|
67
|
console.log(data)
|
c9493378
liuqimichale
api 接口封装
|
68
69
70
71
72
|
this.PDANum = data[0].num
this.PDAName = data[0].deviceName
this.diCiNum = data[1].num
this.diCiName = data[1].deviceName
this.daoZhaNum = data[2].num
|
cd36de4d
liuqimichale
滚动播报
|
73
|
|
c9493378
liuqimichale
api 接口封装
|
74
75
|
this.daoZhaName = data[2].deviceName
this.youDaoNum = data[3].num
|
cd36de4d
liuqimichale
滚动播报
|
76
77
78
|
if(this.youDaoNum == 0){
this.youDaoNum = '-'
}
|
c9493378
liuqimichale
api 接口封装
|
79
80
81
82
83
|
this.youDaoName = data[3].deviceName
}).catch((response)=>{
console.log(response);
})
}
|
22fb20b3
songchongxian
城市停车运营监控
|
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
|
},
}
</script>
<style scoped lang="scss">
.app-deviceBox {
width: 100%;
.theme-card{
height: 100%;
}
.content{
padding: 0px;
}
.marginTop{
margin-top: 8% !important;
}
.deviceTb{
margin: 0 auto;
width: 100%;
height: 100%;
}
.deviceTb >tr >td{
vertical-align: middle;
text-align: center;
width: 50%;
}
.deviceBg{
background: url(../../images/com/deviceBg.svg) no-repeat;
background-size: 100% 100%;
width: 100%;
/*height:85%;*/
margin:0px auto;
/*padding: 5px;*/
height: 40%;
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
align-items: center;
-webkit-justify-content: center;
justify-content: center;
}
.PDAcontent,.diCicontent,.daoZhacontent,.youDaocontent{
margin: 0 auto;
}
.PDAcontent div,.diCicontent div,.daoZhacontent div,.youDaocontent div{
font-size: 12px;
}
.PDAcontent span,.diCicontent span{
background-image: -webkit-linear-gradient(bottom, #00CAFE, #2772F4);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
font-size: 24px;
}
.daoZhacontent span,.youDaocontent span{
background-image: -webkit-linear-gradient(bottom, #FFBA00, #FF8100);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
font-size: 24px;
}
}
</style>
|