From 6a6dc4278c742a81ade60ec690932c089779a24d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Thu, 5 Sep 2024 15:11:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=BD=A8=E8=BF=B9=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yunkun/yunkun.js | 30 +++++++ src/views/car.vue | 176 +++++++++++++++++++++++++-------------- src/views/carInfo.vue | 118 ++++++++++++++++++++------ 3 files changed, 238 insertions(+), 86 deletions(-) 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 @@