|
@@ -1,7 +1,7 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="body-wrapper">
|
3
|
3
|
<div style="width: 100%;display: flex;justify-content: space-between;">
|
4
|
|
- <div style="width: 33%;height: 400px;">
|
|
4
|
+ <div style="width: 33%;height: 200px;">
|
5
|
5
|
<h4 style="color: white">车场数量</h4>
|
6
|
6
|
<piechart
|
7
|
7
|
class="model-pie-body"
|
|
@@ -14,7 +14,7 @@
|
14
|
14
|
:encode="{ itemName: 'name', value: 'value' }"
|
15
|
15
|
/>
|
16
|
16
|
</div>
|
17
|
|
- <div style="width: 33%;height: 400px;">
|
|
17
|
+ <div style="width: 33%;height: 200px;">
|
18
|
18
|
<h4 style="color: white">设备情况</h4>
|
19
|
19
|
<barchart
|
20
|
20
|
class="side-chart"
|
|
@@ -34,7 +34,7 @@
|
34
|
34
|
id="fxdqhszzt"
|
35
|
35
|
/>
|
36
|
36
|
</div>
|
37
|
|
- <div style="width: 33%;height: 400px;">
|
|
37
|
+ <div style="width: 33%;height: 200px;">
|
38
|
38
|
<h4 style="color: white">事件数据</h4>
|
39
|
39
|
<el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
|
40
|
40
|
<el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
|
|
@@ -51,7 +51,7 @@
|
51
|
51
|
<br>
|
52
|
52
|
<br>
|
53
|
53
|
<div style="width: 100%;display: flex;justify-content: space-between;">
|
54
|
|
- <div style="width: 33%;height: 400px;">
|
|
54
|
+ <div style="width: 33%;height: 200px;">
|
55
|
55
|
<div align="center" style="color: white">停车趋势</div>
|
56
|
56
|
<linechart
|
57
|
57
|
:autoStop="false"
|
|
@@ -69,7 +69,7 @@
|
69
|
69
|
id="sxcyfzqk1"
|
70
|
70
|
/>
|
71
|
71
|
</div>
|
72
|
|
- <div style="width: 33%;height: 400px;">
|
|
72
|
+ <div style="width: 33%;height: 200px;">
|
73
|
73
|
<div align="center" style="color: white">泊位周转趋势</div>
|
74
|
74
|
<linechart
|
75
|
75
|
:autoStop="false"
|
|
@@ -87,7 +87,7 @@
|
87
|
87
|
id="bwzzqs"
|
88
|
88
|
/>
|
89
|
89
|
</div>
|
90
|
|
- <div style="width: 33%;height: 400px;">
|
|
90
|
+ <div style="width: 33%;height: 200px;">
|
91
|
91
|
<div align="center" style="color: white">泊位利用率趋势</div>
|
92
|
92
|
<linechart
|
93
|
93
|
:autoStop="false"
|
|
@@ -109,7 +109,7 @@
|
109
|
109
|
<br>
|
110
|
110
|
<br>
|
111
|
111
|
<div style="width: 100%;display: flex;justify-content: space-between;">
|
112
|
|
- <div style="width: 33%;height: 400px;">
|
|
112
|
+ <div style="width: 33%;height: 200px;">
|
113
|
113
|
<div align="center" style="color: white">实缴金额</div>
|
114
|
114
|
<linechart
|
115
|
115
|
:autoStop="false"
|
|
@@ -127,7 +127,7 @@
|
127
|
127
|
id="sjqs"
|
128
|
128
|
/>
|
129
|
129
|
</div>
|
130
|
|
- <div style="width: 33%;height: 400px;">
|
|
130
|
+ <div style="width: 33%;height: 200px;">
|
131
|
131
|
<div align="center" style="color: white">泊位实时占用率</div>
|
132
|
132
|
<linechart
|
133
|
133
|
:autoStop="false"
|
|
@@ -145,7 +145,7 @@
|
145
|
145
|
id="bwsszyl"
|
146
|
146
|
/>
|
147
|
147
|
</div>
|
148
|
|
- <div style="width: 33%;height: 400px;">
|
|
148
|
+ <div style="width: 33%;height: 200px;">
|
149
|
149
|
<h4 style="color: white">动态信息监控</h4>
|
150
|
150
|
<el-table :data="tableData2" style="background: #2a2a2a;border-color: #333;">
|
151
|
151
|
<el-table-column v-for="(item, index) in columns2" :key="index" :label="item.label" :prop="item.key">
|
|
@@ -244,6 +244,9 @@ export default {
|
244
|
244
|
this.dashBusinessOverviewStat6()
|
245
|
245
|
this.dashBusinessOverviewStat7()
|
246
|
246
|
this.getTableData2()
|
|
247
|
+ this.interval = setInterval(() => {
|
|
248
|
+ this.getTableData2()
|
|
249
|
+ }, 5000)
|
247
|
250
|
const {pageNum, pageSize} = this
|
248
|
251
|
let that = this
|
249
|
252
|
let params4 = {current: pageNum, size: pageSize}
|
|
@@ -255,9 +258,13 @@ export default {
|
255
|
258
|
this.tableData = res[3].data.records || []
|
256
|
259
|
this.total = res[3].data.total || 0
|
257
|
260
|
})
|
|
261
|
+
|
258
|
262
|
},
|
259
|
263
|
watch: {
|
260
|
264
|
},
|
|
265
|
+ beforeDestroy() {
|
|
266
|
+ clearInterval(this.interval)
|
|
267
|
+ },
|
261
|
268
|
methods: {
|
262
|
269
|
dashAccessDataAnalysisStat1(){
|
263
|
270
|
api_l.dashAccessDataAnalysisStat1().then(res =>{
|