4d234fc3
liuqimichale
关闭esl
|
1
|
<template>
|
1e4db980
liuqimichale
轮廓
|
2
|
<div class="main-content">
|
1e4db980
liuqimichale
轮廓
|
3
4
|
<v-header></v-header>
<ul class="main-wrap">
|
86551874
liuqimichale
左右区域
|
5
|
<li class="main-left">
|
2caf9228
liuqimichale
公共卡片头部
|
6
|
<div class="frame-wrap">
|
633692cc
liuqimichale
axios
|
7
|
<v-parking :total="parkingTotal" :rodeside="rodeside" :rodeclose="rodeclose"></v-parking>
|
2caf9228
liuqimichale
公共卡片头部
|
8
|
</div>
|
d3312374
liuqimichale
收费员信息
|
9
|
<div class="frame-wrap frame-wrap-center">
|
633692cc
liuqimichale
axios
|
10
|
<v-toll :total="tollTotal" :tollsign="tollsign" :tollnosign="tollnosign"></v-toll>
|
d3312374
liuqimichale
收费员信息
|
11
|
</div>
|
dcff1e92
liuqimichale
进出场
|
12
|
<div class="frame-wrap">
|
633692cc
liuqimichale
axios
|
13
|
<v-inout :inoutmsg="inoutmsg" :inouttime="inouttime" :imgUrl="imgUrl"></v-inout>
|
dcff1e92
liuqimichale
进出场
|
14
|
</div>
|
86551874
liuqimichale
左右区域
|
15
|
</li>
|
1e4db980
liuqimichale
轮廓
|
16
|
<li class="main-center">
|
7d8d3bd4
liuqimichale
收入单位处理
|
17
|
<v-map :mapdata="ditudata" :lonId="lonId" :latId="latId"></v-map>
|
1e4db980
liuqimichale
轮廓
|
18
|
</li>
|
86551874
liuqimichale
左右区域
|
19
|
<li class="main-right">
|
6ee688df
liuqimichale
收入信息
|
20
|
<div class="frame-wrap">
|
633692cc
liuqimichale
axios
|
21
|
<v-income :total="incometotal" :barChartData="barChartData"></v-income>
|
6ee688df
liuqimichale
收入信息
|
22
|
</div>
|
ea141a52
liuqimichale
泊位
|
23
|
<div class="frame-wrap frame-wrap-center">
|
633692cc
liuqimichale
axios
|
24
|
<v-berth :total="bertotal" :pieChartData="pieChartData"></v-berth>
|
ea141a52
liuqimichale
泊位
|
25
|
</div>
|
93ff2951
liuqimichale
设备监控信息
|
26
|
<div class="frame-wrap">
|
633692cc
liuqimichale
axios
|
27
|
<v-equipment :equipment="equipment"></v-equipment>
|
93ff2951
liuqimichale
设备监控信息
|
28
|
</div>
|
86551874
liuqimichale
左右区域
|
29
|
</li>
|
1e4db980
liuqimichale
轮廓
|
30
31
|
</ul>
</div>
|
4d234fc3
liuqimichale
关闭esl
|
32
33
34
|
</template>
<script>
|
1e4db980
liuqimichale
轮廓
|
35
36
|
import VHeader from '../components/VHeader'
import VMap from '../components/VMap'
|
2caf9228
liuqimichale
公共卡片头部
|
37
|
import VParking from '../components/VParking'
|
d3312374
liuqimichale
收费员信息
|
38
|
import VToll from '../components/VToll'
|
dcff1e92
liuqimichale
进出场
|
39
|
import VInout from '../components/VInout'
|
6ee688df
liuqimichale
收入信息
|
40
|
import VIncome from '../components/VIncome'
|
ea141a52
liuqimichale
泊位
|
41
|
import VBerth from '../components/VBerth'
|
93ff2951
liuqimichale
设备监控信息
|
42
|
import VEquipment from '../components/VEquipment'
|
350097e4
liuqimichale
调取接口
|
43
|
|
04d7be6d
liuqimichale
进出场
|
44
|
import { parkAddress, tollAddress, incomeAddress, berthAddress, equipmentAddress, mapAddress, inoutAddress } from '../utils/api'
|
350097e4
liuqimichale
调取接口
|
45
|
|
4d234fc3
liuqimichale
关闭esl
|
46
|
export default {
|
1e4db980
liuqimichale
轮廓
|
47
48
49
|
name: 'VHome',
components: {
VHeader,
|
2caf9228
liuqimichale
公共卡片头部
|
50
|
VMap,
|
d3312374
liuqimichale
收费员信息
|
51
|
VParking,
|
dcff1e92
liuqimichale
进出场
|
52
|
VToll,
|
6ee688df
liuqimichale
收入信息
|
53
|
VInout,
|
ea141a52
liuqimichale
泊位
|
54
|
VIncome,
|
93ff2951
liuqimichale
设备监控信息
|
55
56
|
VBerth,
VEquipment
|
633692cc
liuqimichale
axios
|
57
58
59
|
},
data(){
return {
|
350097e4
liuqimichale
调取接口
|
60
61
62
63
64
65
|
parkingTotal: 0,
rodeside: 0,
rodeclose: 0,
tollTotal: 0,
tollsign: 0,
tollnosign: 0,
|
7d8d3bd4
liuqimichale
收入单位处理
|
66
67
|
inoutmsgstatus:'',
inoutmsg: '07:00',
|
ad451a08
liuqimichale
正式环境
|
68
|
inouttime: '',
|
7d8d3bd4
liuqimichale
收入单位处理
|
69
70
|
lonId:'',
latId:'',
|
ad451a08
liuqimichale
正式环境
|
71
|
imgUrl: '',
|
350097e4
liuqimichale
调取接口
|
72
|
incometotal:0,
|
633692cc
liuqimichale
axios
|
73
|
barChartData:{
|
350097e4
liuqimichale
调取接口
|
74
75
|
seriesData:[0,0,0],
total:1
|
633692cc
liuqimichale
axios
|
76
|
},
|
350097e4
liuqimichale
调取接口
|
77
|
bertotal:0,
|
633692cc
liuqimichale
axios
|
78
|
pieChartData: {
|
350097e4
liuqimichale
调取接口
|
79
|
yData: [0,0],
|
633692cc
liuqimichale
axios
|
80
81
82
|
legendData: ['空余','占有']
},
equipment:{
|
ad451a08
liuqimichale
正式环境
|
83
84
85
86
87
88
89
90
91
92
93
94
|
PDA:0,
PDATotal:0,
pdaper:0,
berth:0,
berthTotal:0,
berthper:0,
daozha:0,
daozhaTotal:0,
daozhaper:0,
ydp:0,
ydpTotal:0,
ydpper:0
|
633692cc
liuqimichale
axios
|
95
96
|
},
ditudata:[
|
83ffa354
liuqimichale
地图 数据
|
97
98
99
|
{Name:'万达停车场1',lonId:'111.742579',latId:'40.818675',status:0,freeBrethNum:0,plBerthNum:1000,plName:'万达广场停车场1',plAddress:'北京万达广场1',income:123,arreageincome:100},
{Name:'万达停车场2',lonId:'111.622579',latId:'40.878675',status:1,freeBrethNum:100,plBerthNum:800,plName:'万达广场停车场2',plAddress:'北京万达广场2',income:123,arreageincome:100},
{Name:'万达停车场333333',lonId:'111.782579',latId:'40.778675',status:2,freeBrethNum:300,plBerthNum:500,plName:'万达广场停车场3',plAddress:'北京万达广场3',income:123,arreageincome:100}
|
633692cc
liuqimichale
axios
|
100
101
102
103
104
|
]
}
},
mounted(){
|
350097e4
liuqimichale
调取接口
|
105
106
|
//this.setmethod()
this.initView();
|
7d8d3bd4
liuqimichale
收入单位处理
|
107
|
this.initMAp();
|
04d7be6d
liuqimichale
进出场
|
108
|
this.setmethod()
|
350097e4
liuqimichale
调取接口
|
109
|
|
633692cc
liuqimichale
axios
|
110
111
112
|
},
methods:{
|
7d8d3bd4
liuqimichale
收入单位处理
|
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
|
initMAp(){
mapAddress({//地图
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
console.log(data)
var tempData = [];
for(var index in data){
var item = data[index];
if(item.parkInfo.lonId==null){
continue;
}
var tempItem =
{
Name: item.parkInfo.plName,
lonId: item.parkInfo.lonId,
latId:item.parkInfo.latId,
status: 0,
freeBrethNum: item.realTimeInfoDTO.berthFreeNum,
plBerthNum: item.realTimeInfoDTO.berthNum,
plName: item.parkInfo.plName,
plAddress: item.parkInfo.plAddress,
income:(item.realTimeInfoDTO.allIncome/100).toFixed(2),
arreageincome:(item.realTimeInfoDTO.escapeFee).toFixed(2)
}
tempData.push(tempItem);
}
this.ditudata = tempData;
console.log(this.ditudata)
// 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'}
// ]
}).catch((response)=>{
console.log(response);
})
},
|
350097e4
liuqimichale
调取接口
|
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
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);
})
|
04d7be6d
liuqimichale
进出场
|
176
|
inoutAddress({//进出场
|
ad451a08
liuqimichale
正式环境
|
177
|
orgIds: this.GLOBAL.orignId
|
04d7be6d
liuqimichale
进出场
|
178
179
180
181
|
}).then((response)=>{
let data = response.data.data
console.log(response)
let inoutdata = data[0]
|
7d8d3bd4
liuqimichale
收入单位处理
|
182
|
console.log(inoutdata)
|
04d7be6d
liuqimichale
进出场
|
183
184
185
186
187
188
189
190
191
192
|
if(inoutdata.parkState == 10){
inoutdata.parkState = "进场"
this.inouttime = inoutdata.parkInTime
this.imgUrl = inoutdata.inCarUrl
}else{
inoutdata.parkState = "出场"
this.inouttime = inoutdata.parkOutTime
this.imgUrl = inoutdata.outCarUrl
}
this.inoutmsg = inoutdata.plName+' '+inoutdata.carNumber +' '+inoutdata.parkState
|
7d8d3bd4
liuqimichale
收入单位处理
|
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
|
if(this.inoutmsgstatus === this.inoutmsg){
// console.log('123')
// this.lonId='103.9052876830101',
// this.latId='36.05714229337221',
// this.ditudata=[
// {Name:'万达停车场1',lonId:'103.9052876830101',latId:'36.05714229337221',status:0,freeBrethNum:0,plBerthNum:1000,plName:'万达广场停车场1',plAddress:'北京万达广场1',income:123, arreageincome:123},
// // {Name:'万达停车场2',lonId:'111.622579',latId:'40.878675',status:1,freeBrethNum:100,plBerthNum:800,plName:'万达广场停车场2',plAddress:'北京万达广场2',income:123, arreageincome:123},
// // {Name:'万达停车场333333',lonId:'111.782579',latId:'40.778675',status:2,freeBrethNum:300,plBerthNum:500,plName:'万达广场停车场3',plAddress:'北京万达广场3',income:123, arreageincome:123}
// ]
//this.initMAp();
}else{
this.initMAp();
this.inoutmsgstatus = inoutdata.plName+' '+inoutdata.carNumber +' '+inoutdata.parkState
}
|
04d7be6d
liuqimichale
进出场
|
209
210
211
212
213
|
}).catch((response)=>{
console.log(response);
})
|
350097e4
liuqimichale
调取接口
|
214
215
216
217
|
incomeAddress({//收入
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
|
7376616d
liuqimichale
收入单位处理
|
218
|
this.incometotal = (data.totalPay/100).toFixed(0)
|
350097e4
liuqimichale
调取接口
|
219
|
this.barChartData = {
|
7376616d
liuqimichale
收入单位处理
|
220
221
|
seriesData:[(data.aliPay/100).toFixed(0),(data.wxPay/100).toFixed(0),(data.otherPay/100).toFixed(0)],
total:(data.totalPay/100).toFixed(0)
|
350097e4
liuqimichale
调取接口
|
222
|
}
|
350097e4
liuqimichale
调取接口
|
223
224
225
226
227
228
229
230
231
232
233
|
}).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],
|
350097e4
liuqimichale
调取接口
|
234
235
236
237
238
239
|
}
}).catch((response)=>{
console.log(response);
})
|
ad451a08
liuqimichale
正式环境
|
240
241
|
|
84109d86
liuqimichale
地图 数据
|
242
243
|
|
350097e4
liuqimichale
调取接口
|
244
245
246
247
|
equipmentAddress({//设备
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
|
e1915621
liuqimichale
调取接口
|
248
249
250
251
252
253
254
255
256
257
258
|
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)
}
|
350097e4
liuqimichale
调取接口
|
259
|
|
0ac0991c
liuqimichale
设备信息
|
260
261
262
|
if(data[2].onNum == 0){
var daozhaper = 0
}else{
|
ad451a08
liuqimichale
正式环境
|
263
|
var daozhaper = ((data[2].onNum/data[2].num)*100).toFixed(2)
|
0ac0991c
liuqimichale
设备信息
|
264
265
|
}
|
ad451a08
liuqimichale
正式环境
|
266
|
if(data[3].onNum == 0){
|
0ac0991c
liuqimichale
设备信息
|
267
268
|
var ydpper = 0
}else{
|
ad451a08
liuqimichale
正式环境
|
269
|
var ydpper = ((data[3].onNum/data[3].num)*100).toFixed(2)
|
0ac0991c
liuqimichale
设备信息
|
270
271
272
|
}
|
350097e4
liuqimichale
调取接口
|
273
|
this.$set(this.equipment,'PDA',data[0].onNum)
|
e1915621
liuqimichale
调取接口
|
274
275
|
this.$set(this.equipment,'PDATotal',data[0].num)
this.$set(this.equipment,'pdaper',PDAper)
|
350097e4
liuqimichale
调取接口
|
276
|
|
e1915621
liuqimichale
调取接口
|
277
278
279
|
this.$set(this.equipment,'berth',data[1].onNum)
this.$set(this.equipment,'berthTotal',data[1].num)
this.$set(this.equipment,'berthper',berthper)
|
0ac0991c
liuqimichale
设备信息
|
280
281
282
|
this.$set(this.equipment,'daozha',data[2].onNum)
this.$set(this.equipment,'daozhaTotal',data[2].num)
|
ad451a08
liuqimichale
正式环境
|
283
|
this.$set(this.equipment,'daozhaper',daozhaper)
|
0ac0991c
liuqimichale
设备信息
|
284
285
286
|
this.$set(this.equipment,'ydp',data[3].onNum)
this.$set(this.equipment,'ydpTotal',data[3].num)
|
ad451a08
liuqimichale
正式环境
|
287
|
this.$set(this.equipment,'ydpper',ydpper)
|
350097e4
liuqimichale
调取接口
|
288
289
290
291
292
293
294
295
296
297
|
// this.equipment = {
// PDA:data[0].onNum,
// PDATotal:data[0].num,
// berth:150,
// berthTotal:2300,
// daozha:150,
// daozhaTotal:1300,
// ydp:150,
// ydpTotal:300
// }
|
350097e4
liuqimichale
调取接口
|
298
299
300
301
302
303
304
305
306
|
}).catch((response)=>{
console.log(response);
})
},
|
633692cc
liuqimichale
axios
|
307
|
setmethod(){
|
350097e4
liuqimichale
调取接口
|
308
|
|
633692cc
liuqimichale
axios
|
309
|
setInterval(()=>{
|
04d7be6d
liuqimichale
进出场
|
310
|
this.initView()
|
7d8d3bd4
liuqimichale
收入单位处理
|
311
312
313
314
|
},1000)
// setInterval(()=>{
// this.initMAp();
// },5000)
|
633692cc
liuqimichale
axios
|
315
|
}
|
04d7be6d
liuqimichale
进出场
|
316
317
|
},
|
4d234fc3
liuqimichale
关闭esl
|
318
319
320
|
}
</script>
|
1e4db980
liuqimichale
轮廓
|
321
322
323
324
325
326
327
328
329
330
331
332
333
334
|
<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
轮廓
|
335
336
337
338
339
340
341
|
width: 25%;
}
.main-center{
width: calc(50% - 20px);
margin: 0 10px;
border:1px solid #1679de;
}
|
86551874
liuqimichale
左右区域
|
342
343
344
345
346
|
.frame-wrap-center{
margin: 10px 0;
}
.frame-wrap{
height: calc((100% - 20px)/3);
|
f5d4b70c
liuqimichale
进出场信息
|
347
348
|
background: url("../images/content/frame-wrap.png");
background-size: 100% 100%;
|
6ee688df
liuqimichale
收入信息
|
349
|
overflow: hidden;
|
f5d4b70c
liuqimichale
进出场信息
|
350
351
352
353
354
|
/*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
左右区域
|
355
|
}
|
4d234fc3
liuqimichale
关闭esl
|
356
357
|
</style>
|