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,
|
633692cc
liuqimichale
axios
|
66
67
68
|
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
调取接口
|
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
80
81
|
legendData: ['空余','占有']
},
equipment:{
PDA:150,
PDATotal:3000,
|
350097e4
liuqimichale
调取接口
|
82
|
pdaper:100,
|
633692cc
liuqimichale
axios
|
83
84
|
berth:150,
berthTotal:2300,
|
350097e4
liuqimichale
调取接口
|
85
|
berthper:100,
|
633692cc
liuqimichale
axios
|
86
87
|
daozha:150,
daozhaTotal:1300,
|
e1915621
liuqimichale
调取接口
|
88
|
daozhaper:100,
|
633692cc
liuqimichale
axios
|
89
|
ydp:150,
|
0ac0991c
liuqimichale
设备信息
|
90
91
|
ydpTotal:300,
ydpper:100
|
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
inoutAddress({//进出场
orgIds: ['10078','10003']
}).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
156
157
158
159
160
|
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
}
|
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
|
83ffa354
liuqimichale
地图 数据
|
182
183
|
var tempData = [];
for(var index in data){
|
83ffa354
liuqimichale
地图 数据
|
184
185
|
var item = data[index];
var tempItem =
|
83ffa354
liuqimichale
地图 数据
|
186
187
188
189
190
191
192
193
194
195
196
197
|
{
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)
}
|
83ffa354
liuqimichale
地图 数据
|
198
|
tempData.push(tempItem);
|
83ffa354
liuqimichale
地图 数据
|
199
200
201
202
203
204
205
206
207
|
}
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
地图 数据
|
208
209
210
211
212
213
|
}).catch((response)=>{
console.log(response);
})
|
350097e4
liuqimichale
调取接口
|
214
215
216
217
|
equipmentAddress({//设备
orgIds: this.GLOBAL.orignId
}).then((response)=>{
let data = response.data.data
|
e1915621
liuqimichale
调取接口
|
218
219
220
221
222
223
224
225
226
227
228
|
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
调取接口
|
229
|
|
0ac0991c
liuqimichale
设备信息
|
230
231
232
233
234
235
236
237
238
239
240
241
242
|
if(data[2].onNum == 0){
var daozhaper = 0
}else{
var daozhaper = ((data[1].onNum/data[1].num)*100).toFixed(2)
}
if(data[2].onNum == 0){
var ydpper = 0
}else{
var ydpper = ((data[1].onNum/data[1].num)*100).toFixed(2)
}
|
350097e4
liuqimichale
调取接口
|
243
|
this.$set(this.equipment,'PDA',data[0].onNum)
|
e1915621
liuqimichale
调取接口
|
244
245
|
this.$set(this.equipment,'PDATotal',data[0].num)
this.$set(this.equipment,'pdaper',PDAper)
|
350097e4
liuqimichale
调取接口
|
246
|
|
e1915621
liuqimichale
调取接口
|
247
248
249
|
this.$set(this.equipment,'berth',data[1].onNum)
this.$set(this.equipment,'berthTotal',data[1].num)
this.$set(this.equipment,'berthper',berthper)
|
0ac0991c
liuqimichale
设备信息
|
250
251
252
253
254
255
256
257
|
this.$set(this.equipment,'daozha',data[2].onNum)
this.$set(this.equipment,'daozhaTotal',data[2].num)
this.$set(this.equipment,'daozhaper',berthper)
this.$set(this.equipment,'ydp',data[3].onNum)
this.$set(this.equipment,'ydpTotal',data[3].num)
this.$set(this.equipment,'ydpper',berthper)
|
350097e4
liuqimichale
调取接口
|
258
259
260
261
262
263
264
265
266
267
|
// this.equipment = {
// PDA:data[0].onNum,
// PDATotal:data[0].num,
// berth:150,
// berthTotal:2300,
// daozha:150,
// daozhaTotal:1300,
// ydp:150,
// ydpTotal:300
// }
|
350097e4
liuqimichale
调取接口
|
268
269
270
271
272
273
274
275
276
|
}).catch((response)=>{
console.log(response);
})
},
|
633692cc
liuqimichale
axios
|
277
|
setmethod(){
|
350097e4
liuqimichale
调取接口
|
278
|
|
633692cc
liuqimichale
axios
|
279
|
setInterval(()=>{
|
04d7be6d
liuqimichale
进出场
|
280
281
|
this.initView()
},10000)
|
633692cc
liuqimichale
axios
|
282
|
}
|
04d7be6d
liuqimichale
进出场
|
283
284
|
},
|
4d234fc3
liuqimichale
关闭esl
|
285
286
287
|
}
</script>
|
1e4db980
liuqimichale
轮廓
|
288
289
290
291
292
293
294
295
296
297
298
299
300
301
|
<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
轮廓
|
302
303
304
305
306
307
308
|
width: 25%;
}
.main-center{
width: calc(50% - 20px);
margin: 0 10px;
border:1px solid #1679de;
}
|
86551874
liuqimichale
左右区域
|
309
310
311
312
313
|
.frame-wrap-center{
margin: 10px 0;
}
.frame-wrap{
height: calc((100% - 20px)/3);
|
f5d4b70c
liuqimichale
进出场信息
|
314
315
|
background: url("../images/content/frame-wrap.png");
background-size: 100% 100%;
|
6ee688df
liuqimichale
收入信息
|
316
|
overflow: hidden;
|
f5d4b70c
liuqimichale
进出场信息
|
317
318
319
320
321
|
/*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
左右区域
|
322
|
}
|
4d234fc3
liuqimichale
关闭esl
|
323
324
|
</style>
|