diff --git a/src/api/yunkun/yunkun.js b/src/api/yunkun/yunkun.js index 8ae16ea..bf728be 100644 --- a/src/api/yunkun/yunkun.js +++ b/src/api/yunkun/yunkun.js @@ -30,3 +30,33 @@ export function getCarPoint(query) { params: query, }); } + +// 车辆实时定位查询(根据车牌号) +export function getCarByCarplate(query) { + query.sessionId = sessionId; + return request({ + url: "/get_gps_r_plate.jsp", + method: "GET", + params: query, + }); +} + +// 查看车辆历史轨迹 +export function historyLine(query) { + query.sessionId = sessionId; + return request({ + url: "/get_gps_h.jsp", + method: "GET", + params: query, + }); +} + +// 按天查询车辆里程 +export function carMidle(query) { + query.sessionId = sessionId; + return request({ + url: "get_gps_mile_day.jsp", + method: "GET", + params: query, + }); +} diff --git a/src/views/car.vue b/src/views/car.vue index 9f26a42..2c322b5 100644 --- a/src/views/car.vue +++ b/src/views/car.vue @@ -2,13 +2,27 @@
-