Browse Source

业务概览联调

业务概览联调
烬玊 1 year ago
parent
commit
7967060785
2 changed files with 99 additions and 21 deletions
  1. 32 0
      src/api/article_liao.js
  2. 67 21
      src/pages/index/components/business_overview.vue

+ 32 - 0
src/api/article_liao.js

@@ -182,5 +182,37 @@ export default {
182
   dashCarOwnerCreditPage(params){
182
   dashCarOwnerCreditPage(params){
183
     return axios.get('/dash/car/owner/credit/page', params)
183
     return axios.get('/dash/car/owner/credit/page', params)
184
   },
184
   },
185
+  //业务概览
186
+  dashBusinessOverviewStat1(params){
187
+    return axios.post('/dash/business/overview/stat1', params)
188
+  },
189
+  //设备情况
190
+  dashBusinessOverviewStat2(params){
191
+    return axios.post('/dash/business/overview/stat2', params)
192
+  },
193
+  //停车趋势
194
+  dashBusinessOverviewStat3(params){
195
+    return axios.post('/dash/business/overview/stat3', params)
196
+  },
197
+  //泊位周转趋势
198
+  dashBusinessOverviewStat4(params){
199
+    return axios.post('/dash/business/overview/stat4', params)
200
+  },
201
+  //泊位利用率趋势
202
+  dashBusinessOverviewStat5(params){
203
+    return axios.post('/dash/business/overview/stat5', params)
204
+  },
205
+  //实缴趋势
206
+  dashBusinessOverviewStat6(params){
207
+    return axios.post('/dash/business/overview/stat6', params)
208
+  },
209
+  //泊位实时占用率
210
+  dashBusinessOverviewStat7(params){
211
+    return axios.post('/dash/business/overview/stat7', params)
212
+  },
213
+  //动态信息监控
214
+  dashBusinessOverviewInfoPage(params){
215
+    return axios.get('/dash/business/overview/infoPage', {params})
216
+  },
185
 
217
 
186
 }
218
 }

+ 67 - 21
src/pages/index/components/business_overview.vue

@@ -28,8 +28,8 @@
28
           :tooltip="tooltipFormat"
28
           :tooltip="tooltipFormat"
29
           :dataset="modelData2"
29
           :dataset="modelData2"
30
           :encode="[
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
           :labelSize="15"
33
           :labelSize="15"
34
           id="fxdqhszzt"
34
           id="fxdqhszzt"
35
         />
35
         />
@@ -147,7 +147,7 @@
147
           </el-table-column>
147
           </el-table-column>
148
         </el-table>
148
         </el-table>
149
         <div class="table-pagination">
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
                          :current-page.sync="pageNum2" :page-size.sync="pageSize2">
151
                          :current-page.sync="pageNum2" :page-size.sync="pageSize2">
152
           </el-pagination>
152
           </el-pagination>
153
         </div>
153
         </div>
@@ -162,6 +162,7 @@ import piechart from "@/components/pieChart";
162
 import barchart from "@/components/barChart";
162
 import barchart from "@/components/barChart";
163
 import linechart from "@/components/lineChart";
163
 import linechart from "@/components/lineChart";
164
 import api from "@/api/article_z";
164
 import api from "@/api/article_z";
165
+import api_l from "@/api/article_liao";
165
 
166
 
166
 export default {
167
 export default {
167
   components: {
168
   components: {
@@ -182,25 +183,17 @@ export default {
182
         }
183
         }
183
       ],
184
       ],
184
       columns2: [
185
       columns2: [
185
-        {
186
-          label: '时间',
187
-          key: 'deviceName'
188
-        },
189
-        {
190
-          label: '事件',
191
-          key: 'deviceState'
192
-        },
193
         {
186
         {
194
           label: '车牌号',
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
       modelPieColor: ["#2E8B57","#9078f8","#00FFFF","#DAA520","#20B2AA"],
195
       modelPieColor: ["#2E8B57","#9078f8","#00FFFF","#DAA520","#20B2AA"],
203
-      modelData: [{"name":"A区","value":"300"},{"name":"B区","value":"600"},{"name":"C区","value":"100"}],
196
+      modelData: [],
204
       modelPieColor2: ["#2E8B57","#9078f8","#00FFFF","#DAA520","#20B2AA"],
197
       modelPieColor2: ["#2E8B57","#9078f8","#00FFFF","#DAA520","#20B2AA"],
205
       modelData2: [{
198
       modelData2: [{
206
         "mouth": "市图书馆停车场",
199
         "mouth": "市图书馆停车场",
@@ -249,6 +242,14 @@ export default {
249
     }
242
     }
250
   },
243
   },
251
   mounted() {
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
     const {pageNum, pageSize} = this
253
     const {pageNum, pageSize} = this
253
     let that = this
254
     let that = this
254
     let params4 = {current: pageNum, size: pageSize}
255
     let params4 = {current: pageNum, size: pageSize}
@@ -264,16 +265,66 @@ export default {
264
   watch: {
265
   watch: {
265
   },
266
   },
266
   methods: {
267
   methods: {
268
+    dashAccessDataAnalysisStat1(){
269
+      api_l.dashAccessDataAnalysisStat1().then(res =>{
270
+        this.bardata = res.data
271
+      })
272
+    },
267
     handlePageChange() {
273
     handlePageChange() {
268
       this.getTableData()
274
       this.getTableData()
269
     },
275
     },
276
+    handlePageChange2() {
277
+      this.getTableData2()
278
+    },
270
     getTableData() {
279
     getTableData() {
271
       const {pageNum, pageSize} = this
280
       const {pageNum, pageSize} = this
272
-      api1.sbyxjcList({current: pageNum, size: pageSize}).then(res => {
281
+      api.sbyxjcList({current: pageNum, size: pageSize}).then(res => {
273
         this.tableData = res.data.records || []
282
         this.tableData = res.data.records || []
274
         this.total = res.data.total
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
     lineTooltipFormat1(params) {
328
     lineTooltipFormat1(params) {
278
       const data = params[0].data;
329
       const data = params[0].data;
279
       return `<div class="line-tooltip">
330
       return `<div class="line-tooltip">
@@ -299,11 +350,6 @@ export default {
299
       }
350
       }
300
       return nameArr.join('\n');
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
 </script>
355
 </script>