4d234fc3
liuqimichale
关闭esl
|
1
|
<template>
|
1e4db980
liuqimichale
轮廓
|
2
|
<div class="main-content">
|
350097e4
liuqimichale
调取接口
|
3
|
{{equipment.PDA}}
|
1e4db980
liuqimichale
轮廓
|
4
5
|
<v-header></v-header>
<ul class="main-wrap">
|
86551874
liuqimichale
左右区域
|
6
|
<li class="main-left">
|
2caf9228
liuqimichale
公共卡片头部
|
7
|
<div class="frame-wrap">
|
633692cc
liuqimichale
axios
|
8
|
<v-parking :total="parkingTotal" :rodeside="rodeside" :rodeclose="rodeclose"></v-parking>
|
2caf9228
liuqimichale
公共卡片头部
|
9
|
</div>
|
d3312374
liuqimichale
收费员信息
|
10
|
<div class="frame-wrap frame-wrap-center">
|
633692cc
liuqimichale
axios
|
11
|
<v-toll :total="tollTotal" :tollsign="tollsign" :tollnosign="tollnosign"></v-toll>
|
d3312374
liuqimichale
收费员信息
|
12
|
</div>
|
dcff1e92
liuqimichale
进出场
|
13
|
<div class="frame-wrap">
|
633692cc
liuqimichale
axios
|
14
|
<v-inout :inoutmsg="inoutmsg" :inouttime="inouttime" :imgUrl="imgUrl"></v-inout>
|
dcff1e92
liuqimichale
进出场
|
15
|
</div>
|
86551874
liuqimichale
左右区域
|
16
|
</li>
|
1e4db980
liuqimichale
轮廓
|
17
|
<li class="main-center">
|
633692cc
liuqimichale
axios
|
18
|
<v-map :mapdata="ditudata"></v-map>
|
1e4db980
liuqimichale
轮廓
|
19
|
</li>
|
86551874
liuqimichale
左右区域
|
20
|
<li class="main-right">
|
6ee688df
liuqimichale
收入信息
|
21
|
<div class="frame-wrap">
|
633692cc
liuqimichale
axios
|
22
|
<v-income :total="incometotal" :barChartData="barChartData"></v-income>
|
6ee688df
liuqimichale
收入信息
|
23
|
</div>
|
ea141a52
liuqimichale
泊位
|
24
|
<div class="frame-wrap frame-wrap-center">
|
633692cc
liuqimichale
axios
|
25
|
<v-berth :total="bertotal" :pieChartData="pieChartData"></v-berth>
|
ea141a52
liuqimichale
泊位
|
26
|
</div>
|
93ff2951
liuqimichale
设备监控信息
|
27
|
<div class="frame-wrap">
|
633692cc
liuqimichale
axios
|
28
|
<v-equipment :equipment="equipment"></v-equipment>
|
93ff2951
liuqimichale
设备监控信息
|
29
|
</div>
|
86551874
liuqimichale
左右区域
|
30
|
</li>
|
1e4db980
liuqimichale
轮廓
|
31
32
|
</ul>
</div>
|
4d234fc3
liuqimichale
关闭esl
|
33
34
35
|
</template>
<script>
|
1e4db980
liuqimichale
轮廓
|
36
37
|
import VHeader from '../components/VHeader'
import VMap from '../components/VMap'
|
2caf9228
liuqimichale
公共卡片头部
|
38
|
import VParking from '../components/VParking'
|
d3312374
liuqimichale
收费员信息
|
39
|
import VToll from '../components/VToll'
|
dcff1e92
liuqimichale
进出场
|
40
|
import VInout from '../components/VInout'
|
6ee688df
liuqimichale
收入信息
|
41
|
import VIncome from '../components/VIncome'
|
ea141a52
liuqimichale
泊位
|
42
|
import VBerth from '../components/VBerth'
|
93ff2951
liuqimichale
设备监控信息
|
43
|
import VEquipment from '../components/VEquipment'
|
350097e4
liuqimichale
调取接口
|
44
45
46
|
import { parkAddress, tollAddress, incomeAddress, berthAddress, equipmentAddress } from '../utils/api'
|
4d234fc3
liuqimichale
关闭esl
|
47
|
export default {
|
1e4db980
liuqimichale
轮廓
|
48
49
50
|
name: 'VHome',
components: {
VHeader,
|
2caf9228
liuqimichale
公共卡片头部
|
51
|
VMap,
|
d3312374
liuqimichale
收费员信息
|
52
|
VParking,
|
dcff1e92
liuqimichale
进出场
|
53
|
VToll,
|
6ee688df
liuqimichale
收入信息
|
54
|
VInout,
|
ea141a52
liuqimichale
泊位
|
55
|
VIncome,
|
93ff2951
liuqimichale
设备监控信息
|
56
57
|
VBerth,
VEquipment
|
633692cc
liuqimichale
axios
|
58
59
60
|
},
data(){
return {
|
350097e4
liuqimichale
调取接口
|
61
62
63
64
65
66
|
parkingTotal: 0,
rodeside: 0,
rodeclose: 0,
tollTotal: 0,
tollsign: 0,
tollnosign: 0,
|
633692cc
liuqimichale
axios
|
67
68
69
|
inoutmsg: '万达广场停车场1 京A231231',
inouttime: '08:00',
imgUrl: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1552297151876&di=fcc094f43d6caaf4b9526dabbefd1243&imgtype=0&src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20190124%2F1fc9d7e14be54986b9e2e055a2b5ccc1.jpeg',
|
350097e4
liuqimichale
调取接口
|
70
|
incometotal:0,
|
633692cc
liuqimichale
axios
|
71
|
barChartData:{
|
350097e4
liuqimichale
调取接口
|
72
73
|
seriesData:[0,0,0],
total:1
|
633692cc
liuqimichale
axios
|
74
|
},
|
350097e4
liuqimichale
调取接口
|
75
|
bertotal:0,
|
633692cc
liuqimichale
axios
|
76
|
pieChartData: {
|
350097e4
liuqimichale
调取接口
|
77
|
yData: [0,0],
|
633692cc
liuqimichale
axios
|
78
79
80
81
82
|
legendData: ['空余','占有']
},
equipment:{
PDA:150,
PDATotal:3000,
|
350097e4
liuqimichale
调取接口
|
83
|
pdaper:100,
|
633692cc
liuqimichale
axios
|
84
85
|
berth:150,
berthTotal:2300,
|
350097e4
liuqimichale
调取接口
|
86
|
berthper:100,
|
633692cc
liuqimichale
axios
|
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
daozha:150,
daozhaTotal:1300,
ydp:150,
ydpTotal:300
},
ditudata:[
{Name:'万达停车场1',lonId:'111.742579',latId:'40.818675',status:0,freeBrethNum:0,plBerthNum:1000,plName:'万达广场停车场1',plAddress:'北京万达广场1'},
{Name:'万达停车场2',lonId:'111.622579',latId:'40.878675',status:1,freeBrethNum:100,plBerthNum:800,plName:'万达广场停车场2',plAddress:'北京万达广场2'},
{Name:'万达停车场333333',lonId:'111.782579',latId:'40.778675',status:2,freeBrethNum:300,plBerthNum:500,plName:'万达广场停车场3',plAddress:'北京万达广场3'}
]
}
},
mounted(){
|
350097e4
liuqimichale
调取接口
|
101
102
103
104
|
//this.setmethod()
this.initView();
//this.setmethod()
|
633692cc
liuqimichale
axios
|
105
106
107
|
},
methods:{
|
350097e4
liuqimichale
调取接口
|
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
|
initView(){
parkAddress({//停车场
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
this.parkingTotal = data.allNum
this.rodeside = data.lcNum
this.rodeclose = data.fbNum
}).catch((response)=>{
console.log(response);
})
tollAddress({//收费员
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
this.tollTotal = data.allTollCollector
this.tollsign = data.signInTollCollector
this.tollnosign = data.unSignInTollCollector
}).catch((response)=>{
console.log(response);
})
incomeAddress({//收入
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
this.incometotal = data.totalPay
this.barChartData = {
seriesData:[data.aliPay,data.wxPay,data.otherPay],
total:1
}
}).catch((response)=>{
console.log(response);
})
berthAddress({//泊位
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
this.bertotal = data.allBerthNum
this.pieChartData = {
yData: [data.freeBerthNum,data.isOccupyBertnNum],
}
}).catch((response)=>{
console.log(response);
})
equipmentAddress({//设备
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
console.log(data[0].onNum)
// if(data[0].onNum == 0){
// var PDAper = 0
// }else{
// var PDAper = ((data[0].onNum/data[0].num)*100).toFixed(2)
// }
//
// if(data[1].onNum == 0){
// var berthper = 0
// }else{
// var berthper = ((data[1].onNum/data[1].num)*100).toFixed(2)
// }
this.$set(this.equipment,'PDA',data[0].onNum)
//this.$set(this.equipment,'PDATotal',data[0].num)
//this.$set(this.equipment,'pdaper',PDAper)
// this.$set(this.equipment,'berth',data[1].onNum)
// this.$set(this.equipment,'berthTotal',data[1].num)
// this.$set(this.equipment,'berthper',berthper)
// this.equipment = {
// PDA:data[0].onNum,
// PDATotal:data[0].num,
// berth:150,
// berthTotal:2300,
// daozha:150,
// daozhaTotal:1300,
// ydp:150,
// ydpTotal:300
// }
console.log(this.equipment)
}).catch((response)=>{
console.log(response);
})
},
|
633692cc
liuqimichale
axios
|
202
|
setmethod(){
|
350097e4
liuqimichale
调取接口
|
203
|
|
633692cc
liuqimichale
axios
|
204
|
setInterval(()=>{
|
350097e4
liuqimichale
调取接口
|
205
206
|
this.parkingTotal++
this.rodeside++
|
633692cc
liuqimichale
axios
|
207
208
|
},1000)
}
|
1e4db980
liuqimichale
轮廓
|
209
|
}
|
4d234fc3
liuqimichale
关闭esl
|
210
211
212
|
}
</script>
|
1e4db980
liuqimichale
轮廓
|
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
<style scoped lang="scss">
.main-content{
width: 100%;
height: 100%;
}
.main-wrap{
height: calc(100% - 65px);
padding: 10px 10px;
li{
float: left;
height: 100%;
}
}
.main-left,.main-right{
|
1e4db980
liuqimichale
轮廓
|
227
228
229
230
231
232
233
|
width: 25%;
}
.main-center{
width: calc(50% - 20px);
margin: 0 10px;
border:1px solid #1679de;
}
|
86551874
liuqimichale
左右区域
|
234
235
236
237
238
|
.frame-wrap-center{
margin: 10px 0;
}
.frame-wrap{
height: calc((100% - 20px)/3);
|
f5d4b70c
liuqimichale
进出场信息
|
239
240
|
background: url("../images/content/frame-wrap.png");
background-size: 100% 100%;
|
6ee688df
liuqimichale
收入信息
|
241
|
overflow: hidden;
|
f5d4b70c
liuqimichale
进出场信息
|
242
243
244
245
246
|
/*border-image-source: url("../images/content/frame-wrap.png");*/
/*border-image-slice: 3 16 11 3 fill;*/
/*border-width: 3px 18px 11px 3px;*/
/*border-style: solid;*/
/*background-clip: border-box;*/
|
86551874
liuqimichale
左右区域
|
247
|
}
|
4d234fc3
liuqimichale
关闭esl
|
248
249
|
</style>
|