From dd1392813ba8269487c6e1598e66d1d6eaad3ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Mon, 20 Mar 2023 18:42:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=95=E8=BD=A6=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/realTimeMonitoring/carMonitoring.js | 10 + ruoyi-ui/src/utils/request.js | 2 +- ruoyi-ui/src/views/dashboard/Temp.vue | 350 +++++++++--------- .../src/views/deviceManagement/info/index.vue | 29 +- .../carMonitoring/index.vue | 158 ++++++-- .../vehicleMonitoring/index.vue | 2 +- .../views/tireManagement/lifecycle/index.vue | 43 ++- 7 files changed, 349 insertions(+), 245 deletions(-) diff --git a/ruoyi-ui/src/api/realTimeMonitoring/carMonitoring.js b/ruoyi-ui/src/api/realTimeMonitoring/carMonitoring.js index e54d92f..9c2e04a 100644 --- a/ruoyi-ui/src/api/realTimeMonitoring/carMonitoring.js +++ b/ruoyi-ui/src/api/realTimeMonitoring/carMonitoring.js @@ -8,6 +8,7 @@ export function listBaseCar(query) { params: query }) } + // 查询列表 export function getCarGpsList(query) { return request({ @@ -17,3 +18,12 @@ export function getCarGpsList(query) { }) } +// 查询轮胎信息 +export function getTyreList(query) { + return request({ + url: '/basetyre/tyre/' + query, + method: 'get', + isNoLang: true, + }) +} + diff --git a/ruoyi-ui/src/utils/request.js b/ruoyi-ui/src/utils/request.js index 539580b..50dc934 100644 --- a/ruoyi-ui/src/utils/request.js +++ b/ruoyi-ui/src/utils/request.js @@ -45,10 +45,10 @@ service.interceptors.request.use(config => { ...(config.params || {}), lang }); + url = url.slice(0, -1); } else { url = config.url } - url = url.slice(0, -1); config.params = {}; config.url = url; } diff --git a/ruoyi-ui/src/views/dashboard/Temp.vue b/ruoyi-ui/src/views/dashboard/Temp.vue index 062d901..7f868bc 100644 --- a/ruoyi-ui/src/views/dashboard/Temp.vue +++ b/ruoyi-ui/src/views/dashboard/Temp.vue @@ -1,190 +1,190 @@ diff --git a/ruoyi-ui/src/views/deviceManagement/info/index.vue b/ruoyi-ui/src/views/deviceManagement/info/index.vue index dd4c342..261b3b4 100644 --- a/ruoyi-ui/src/views/deviceManagement/info/index.vue +++ b/ruoyi-ui/src/views/deviceManagement/info/index.vue @@ -119,7 +119,11 @@ + > + +