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">
|
633692cc
liuqimichale
axios
|
17
|
<v-map :mapdata="ditudata"></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,
|
ad451a08
liuqimichale
正式环境
|
66
67
68
|
inoutmsg: '',
inouttime: '',
imgUrl: '',
|
350097e4
liuqimichale
调取接口
|
69
|
incometotal:0,
|
633692cc
liuqimichale
axios
|
70
|
barChartData:{
|
350097e4
liuqimichale
调取接口
|
71
72
|
seriesData:[0,0,0],
total:1
|
633692cc
liuqimichale
axios
|
73
|
},
|
350097e4
liuqimichale
调取接口
|
74
|
bertotal:0,
|
633692cc
liuqimichale
axios
|
75
|
pieChartData: {
|
350097e4
liuqimichale
调取接口
|
76
|
yData: [0,0],
|
633692cc
liuqimichale
axios
|
77
78
79
|
legendData: ['空余','占有']
},
equipment:{
|
ad451a08
liuqimichale
正式环境
|
80
81
82
83
84
85
86
87
88
89
90
91
|
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
|
92
93
|
},
ditudata:[
|
83ffa354
liuqimichale
地图 数据
|
94
95
96
|
{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
|
97
98
99
100
101
|
]
}
},
mounted(){
|
350097e4
liuqimichale
调取接口
|
102
103
|
//this.setmethod()
this.initView();
|
04d7be6d
liuqimichale
进出场
|
104
|
this.setmethod()
|
350097e4
liuqimichale
调取接口
|
105
|
|
633692cc
liuqimichale
axios
|
106
107
108
|
},
methods:{
|
350097e4
liuqimichale
调取接口
|
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
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
进出场
|
131
|
inoutAddress({//进出场
|
ad451a08
liuqimichale
正式环境
|
132
|
orgIds: this.GLOBAL.orignId
|
04d7be6d
liuqimichale
进出场
|
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
}).then((response)=>{
let data = response.data.data
console.log(response)
let inoutdata = data[0]
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
}).catch((response)=>{
console.log(response);
})
|
350097e4
liuqimichale
调取接口
|
152
153
154
155
|
incomeAddress({//收入
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
|
7376616d
liuqimichale
收入单位处理
|
156
|
this.incometotal = (data.totalPay/100).toFixed(0)
|
350097e4
liuqimichale
调取接口
|
157
|
this.barChartData = {
|
7376616d
liuqimichale
收入单位处理
|
158
159
|
seriesData:[(data.aliPay/100).toFixed(0),(data.wxPay/100).toFixed(0),(data.otherPay/100).toFixed(0)],
total:(data.totalPay/100).toFixed(0)
|
350097e4
liuqimichale
调取接口
|
160
|
}
|
350097e4
liuqimichale
调取接口
|
161
162
163
164
165
166
167
168
169
170
171
|
}).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
调取接口
|
172
173
174
175
176
177
|
}
}).catch((response)=>{
console.log(response);
})
|
84109d86
liuqimichale
地图 数据
|
178
179
180
181
|
mapAddress({//地图
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
|
ad451a08
liuqimichale
正式环境
|
182
|
console.log(data)
|
83ffa354
liuqimichale
地图 数据
|
183
184
|
var tempData = [];
for(var index in data){
|
83ffa354
liuqimichale
地图 数据
|
185
|
var item = data[index];
|
ad451a08
liuqimichale
正式环境
|
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
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);
|
83ffa354
liuqimichale
地图 数据
|
205
206
207
208
209
210
211
212
213
|
}
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'}
// ]
|
84109d86
liuqimichale
地图 数据
|
214
215
216
217
218
219
|
}).catch((response)=>{
console.log(response);
})
|
350097e4
liuqimichale
调取接口
|
220
221
222
223
|
equipmentAddress({//设备
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
|
e1915621
liuqimichale
调取接口
|
224
225
226
227
228
229
230
231
232
233
234
|
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
调取接口
|
235
|
|
0ac0991c
liuqimichale
设备信息
|
236
237
238
|
if(data[2].onNum == 0){
var daozhaper = 0
}else{
|
ad451a08
liuqimichale
正式环境
|
239
|
var daozhaper = ((data[2].onNum/data[2].num)*100).toFixed(2)
|
0ac0991c
liuqimichale
设备信息
|
240
241
|
}
|
ad451a08
liuqimichale
正式环境
|
242
|
if(data[3].onNum == 0){
|
0ac0991c
liuqimichale
设备信息
|
243
244
|
var ydpper = 0
}else{
|
ad451a08
liuqimichale
正式环境
|
245
|
var ydpper = ((data[3].onNum/data[3].num)*100).toFixed(2)
|
0ac0991c
liuqimichale
设备信息
|
246
247
248
|
}
|
350097e4
liuqimichale
调取接口
|
249
|
this.$set(this.equipment,'PDA',data[0].onNum)
|
e1915621
liuqimichale
调取接口
|
250
251
|
this.$set(this.equipment,'PDATotal',data[0].num)
this.$set(this.equipment,'pdaper',PDAper)
|
350097e4
liuqimichale
调取接口
|
252
|
|
e1915621
liuqimichale
调取接口
|
253
254
255
|
this.$set(this.equipment,'berth',data[1].onNum)
this.$set(this.equipment,'berthTotal',data[1].num)
this.$set(this.equipment,'berthper',berthper)
|
0ac0991c
liuqimichale
设备信息
|
256
257
258
|
this.$set(this.equipment,'daozha',data[2].onNum)
this.$set(this.equipment,'daozhaTotal',data[2].num)
|
ad451a08
liuqimichale
正式环境
|
259
|
this.$set(this.equipment,'daozhaper',daozhaper)
|
0ac0991c
liuqimichale
设备信息
|
260
261
262
|
this.$set(this.equipment,'ydp',data[3].onNum)
this.$set(this.equipment,'ydpTotal',data[3].num)
|
ad451a08
liuqimichale
正式环境
|
263
|
this.$set(this.equipment,'ydpper',ydpper)
|
350097e4
liuqimichale
调取接口
|
264
265
266
267
268
269
270
271
272
273
|
// this.equipment = {
// PDA:data[0].onNum,
// PDATotal:data[0].num,
// berth:150,
// berthTotal:2300,
// daozha:150,
// daozhaTotal:1300,
// ydp:150,
// ydpTotal:300
// }
|
350097e4
liuqimichale
调取接口
|
274
275
276
277
278
279
280
281
282
|
}).catch((response)=>{
console.log(response);
})
},
|
633692cc
liuqimichale
axios
|
283
|
setmethod(){
|
350097e4
liuqimichale
调取接口
|
284
|
|
633692cc
liuqimichale
axios
|
285
|
setInterval(()=>{
|
04d7be6d
liuqimichale
进出场
|
286
287
|
this.initView()
},10000)
|
633692cc
liuqimichale
axios
|
288
|
}
|
04d7be6d
liuqimichale
进出场
|
289
290
|
},
|
4d234fc3
liuqimichale
关闭esl
|
291
292
293
|
}
</script>
|
1e4db980
liuqimichale
轮廓
|
294
295
296
297
298
299
300
301
302
303
304
305
306
307
|
<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
轮廓
|
308
309
310
311
312
313
314
|
width: 25%;
}
.main-center{
width: calc(50% - 20px);
margin: 0 10px;
border:1px solid #1679de;
}
|
86551874
liuqimichale
左右区域
|
315
316
317
318
319
|
.frame-wrap-center{
margin: 10px 0;
}
.frame-wrap{
height: calc((100% - 20px)/3);
|
f5d4b70c
liuqimichale
进出场信息
|
320
321
|
background: url("../images/content/frame-wrap.png");
background-size: 100% 100%;
|
6ee688df
liuqimichale
收入信息
|
322
|
overflow: hidden;
|
f5d4b70c
liuqimichale
进出场信息
|
323
324
325
326
327
|
/*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
左右区域
|
328
|
}
|
4d234fc3
liuqimichale
关闭esl
|
329
330
|
</style>
|