index.js 1.27 KB
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);
  }
};