index.js
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import api from "../index";
import baseUrl from "../baseUrl";
export default {
getEventType() {
return api.get(`http://192.168.9.133:20080/api/v1/codes/event_types`);
},
getTrafficType(params) {
//类型统计
return api.get(`${baseUrl}/api/v1/datahandle/statistics/traffic/type`, params);
},
getKeyVehicle(params) {
//重点车辆
return api.get(`${baseUrl}/api/v1/datahandle/statistics/traffic/key/vehicle`,params);
},
getTrafficSnap(params) {
//今日抓拍
return api.get(`${baseUrl}/api/v1/datahandle/statistics/traffic/snap`, params)
},
getTrafficHour(params) {
//今日事件趋势
return api.get(`${baseUrl}/api/v1/datahandle/statistics/traffic/hour`, params)
},
getBehaviorType(params) {
//综治类型统计
return api.get(`${baseUrl}/api/v1/datahandle/statistics/behavior/type`, params);
},
getBehaviorArea(params) {
//区域事件统计
return api.get(`${baseUrl}/api/v1/datahandle/statistics/behavior/area`, params);
},
getBehaviorSna(params) {
//今日抓拍量
return api.get(`${baseUrl}/api/v1/datahandle/statistics/behavior/snap`, params);
},
getBehaviorHour(params) {
//今日事件趋势
return api.get(`${baseUrl}/api/v1/datahandle/statistics/behavior/hour`, params);
}
};