|
@@ -28,8 +28,8 @@
|
28
|
28
|
:tooltip="tooltipFormat"
|
29
|
29
|
:dataset="modelData2"
|
30
|
30
|
:encode="[
|
31
|
|
- {x: 'month', y: 'hs', seriesName: '应收'},
|
32
|
|
- {x: 'month', y: 'cs', seriesName: '实收'}]"
|
|
31
|
+ {x: 'month', y: 'hs', seriesName: '在线'},
|
|
32
|
+ {x: 'month', y: 'cs', seriesName: '离线'}]"
|
33
|
33
|
:labelSize="15"
|
34
|
34
|
id="fxdqhszzt"
|
35
|
35
|
/>
|
|
@@ -147,7 +147,7 @@
|
147
|
147
|
</el-table-column>
|
148
|
148
|
</el-table>
|
149
|
149
|
<div class="table-pagination">
|
150
|
|
- <el-pagination :background="false" layout="total, prev, pager, next" :total="total2" @current-change="handlePageChange"
|
|
150
|
+ <el-pagination :background="false" layout="total, prev, pager, next" :total="total2" @current-change="handlePageChange2"
|
151
|
151
|
:current-page.sync="pageNum2" :page-size.sync="pageSize2">
|
152
|
152
|
</el-pagination>
|
153
|
153
|
</div>
|
|
@@ -162,6 +162,7 @@ import piechart from "@/components/pieChart";
|
162
|
162
|
import barchart from "@/components/barChart";
|
163
|
163
|
import linechart from "@/components/lineChart";
|
164
|
164
|
import api from "@/api/article_z";
|
|
165
|
+import api_l from "@/api/article_liao";
|
165
|
166
|
|
166
|
167
|
export default {
|
167
|
168
|
components: {
|
|
@@ -182,25 +183,17 @@ export default {
|
182
|
183
|
}
|
183
|
184
|
],
|
184
|
185
|
columns2: [
|
185
|
|
- {
|
186
|
|
- label: '时间',
|
187
|
|
- key: 'deviceName'
|
188
|
|
- },
|
189
|
|
- {
|
190
|
|
- label: '事件',
|
191
|
|
- key: 'deviceState'
|
192
|
|
- },
|
193
|
186
|
{
|
194
|
187
|
label: '车牌号',
|
195
|
|
- key: 'deviceState'
|
|
188
|
+ key: 'plateNo'
|
196
|
189
|
},
|
197
|
190
|
{
|
198
|
|
- label: '停车场',
|
199
|
|
- key: 'deviceState'
|
|
191
|
+ label: '车辆类型',
|
|
192
|
+ key: 'carTypeName'
|
200
|
193
|
}
|
201
|
194
|
],
|
202
|
195
|
modelPieColor: ["#2E8B57","#9078f8","#00FFFF","#DAA520","#20B2AA"],
|
203
|
|
- modelData: [{"name":"A区","value":"300"},{"name":"B区","value":"600"},{"name":"C区","value":"100"}],
|
|
196
|
+ modelData: [],
|
204
|
197
|
modelPieColor2: ["#2E8B57","#9078f8","#00FFFF","#DAA520","#20B2AA"],
|
205
|
198
|
modelData2: [{
|
206
|
199
|
"mouth": "市图书馆停车场",
|
|
@@ -249,6 +242,14 @@ export default {
|
249
|
242
|
}
|
250
|
243
|
},
|
251
|
244
|
mounted() {
|
|
245
|
+ this.dashBusinessOverviewStat1()
|
|
246
|
+ this.dashBusinessOverviewStat2()
|
|
247
|
+ this.dashBusinessOverviewStat3()
|
|
248
|
+ this.dashBusinessOverviewStat4()
|
|
249
|
+ this.dashBusinessOverviewStat5()
|
|
250
|
+ this.dashBusinessOverviewStat6()
|
|
251
|
+ this.dashBusinessOverviewStat7()
|
|
252
|
+ this.getTableData2()
|
252
|
253
|
const {pageNum, pageSize} = this
|
253
|
254
|
let that = this
|
254
|
255
|
let params4 = {current: pageNum, size: pageSize}
|
|
@@ -264,16 +265,66 @@ export default {
|
264
|
265
|
watch: {
|
265
|
266
|
},
|
266
|
267
|
methods: {
|
|
268
|
+ dashAccessDataAnalysisStat1(){
|
|
269
|
+ api_l.dashAccessDataAnalysisStat1().then(res =>{
|
|
270
|
+ this.bardata = res.data
|
|
271
|
+ })
|
|
272
|
+ },
|
267
|
273
|
handlePageChange() {
|
268
|
274
|
this.getTableData()
|
269
|
275
|
},
|
|
276
|
+ handlePageChange2() {
|
|
277
|
+ this.getTableData2()
|
|
278
|
+ },
|
270
|
279
|
getTableData() {
|
271
|
280
|
const {pageNum, pageSize} = this
|
272
|
|
- api1.sbyxjcList({current: pageNum, size: pageSize}).then(res => {
|
|
281
|
+ api.sbyxjcList({current: pageNum, size: pageSize}).then(res => {
|
273
|
282
|
this.tableData = res.data.records || []
|
274
|
283
|
this.total = res.data.total
|
275
|
284
|
})
|
276
|
285
|
},
|
|
286
|
+ getTableData2() {
|
|
287
|
+ const {pageNum2, pageSize2} = this
|
|
288
|
+ api_l.dashBusinessOverviewInfoPage({current: pageNum2, size: pageSize2}).then(res => {
|
|
289
|
+ this.tableData2 = res.data.records || []
|
|
290
|
+ this.total2 = res.data.total
|
|
291
|
+ })
|
|
292
|
+ },
|
|
293
|
+ dashBusinessOverviewStat1(){
|
|
294
|
+ api_l.dashBusinessOverviewStat1().then(res => {
|
|
295
|
+ this.modelData=res.data;
|
|
296
|
+ })
|
|
297
|
+ },
|
|
298
|
+ dashBusinessOverviewStat2(){
|
|
299
|
+ api_l.dashBusinessOverviewStat2().then(res => {
|
|
300
|
+ this.modelData2=res.data;
|
|
301
|
+ })
|
|
302
|
+ },
|
|
303
|
+ dashBusinessOverviewStat3(){
|
|
304
|
+ api_l.dashBusinessOverviewStat3().then(res => {
|
|
305
|
+ this.linedata=res.data;
|
|
306
|
+ })
|
|
307
|
+ },
|
|
308
|
+ dashBusinessOverviewStat4(){
|
|
309
|
+ api_l.dashBusinessOverviewStat4().then(res => {
|
|
310
|
+ this.linedata2=res.data;
|
|
311
|
+ })
|
|
312
|
+ },
|
|
313
|
+ dashBusinessOverviewStat5(){
|
|
314
|
+ api_l.dashBusinessOverviewStat5().then(res => {
|
|
315
|
+ this.linedata3=res.data;
|
|
316
|
+ })
|
|
317
|
+ },
|
|
318
|
+ dashBusinessOverviewStat6(){
|
|
319
|
+ api_l.dashBusinessOverviewStat6().then(res => {
|
|
320
|
+ this.linedata4=res.data;
|
|
321
|
+ })
|
|
322
|
+ },
|
|
323
|
+ dashBusinessOverviewStat7(){
|
|
324
|
+ api_l.dashBusinessOverviewStat7().then(res => {
|
|
325
|
+ this.linedata5=res.data;
|
|
326
|
+ })
|
|
327
|
+ },
|
277
|
328
|
lineTooltipFormat1(params) {
|
278
|
329
|
const data = params[0].data;
|
279
|
330
|
return `<div class="line-tooltip">
|
|
@@ -299,11 +350,6 @@ export default {
|
299
|
350
|
}
|
300
|
351
|
return nameArr.join('\n');
|
301
|
352
|
},
|
302
|
|
- dashAccessDataAnalysisStat1(){
|
303
|
|
- api.dashAccessDataAnalysisStat1().then(res =>{
|
304
|
|
- this.bardata = res.data
|
305
|
|
- })
|
306
|
|
- },
|
307
|
353
|
}
|
308
|
354
|
}
|
309
|
355
|
</script>
|