Преглед изворни кода

林业修改车辆统计接口入参

wang_xy пре 2 година
родитељ
комит
a2ec3fbd87
2 измењених фајлова са 4 додато и 3 уклоњено
  1. 3 2
      src/api/bigdata.js
  2. 1 1
      src/views/bigdata/chart-pit.vue

+ 3 - 2
src/api/bigdata.js

@@ -187,10 +187,11 @@ export function selectCenterdataTForestResourcesSum() {
   })
 }
 //车辆信息统计
-export function selectCarCount() {
+export function selectCarCount(data) {
   return request({
     url: '/center-fire/VisuForestCloudBigDataController/selectCarCount',
-    method: 'get'
+    method: 'get',
+    params:data
   })
 }
 // 防火设备统计

+ 1 - 1
src/views/bigdata/chart-pit.vue

@@ -26,7 +26,7 @@
 
     methods: {
       selectCarCount(){
-        selectCarCount().then(resp => {
+        selectCarCount({areaType:"1"}).then(resp => {
           this.myEcharts(resp.data);
         })
       },