From 084625263d387d45e681cbb65c27e877ba636ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 14 Mar 2023 09:33:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=AE=E8=83=8E=E7=94=9F?= =?UTF-8?q?=E5=91=BD=E5=91=A8=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/tireManagement/install.js | 27 +++ ruoyi-ui/src/api/tireManagement/lifecycle.js | 6 +- .../src/layout/components/Sidebar/Logo.vue | 2 +- ruoyi-ui/src/utils/request.js | 19 ++- .../carMonitoring/index.vue | 10 -- .../views/tireManagement/install/index.vue | 157 +++++++++++++----- .../views/tireManagement/lifecycle/index.vue | 157 ++++++++++-------- ruoyi-ui/vite.config.js | 4 +- 8 files changed, 254 insertions(+), 128 deletions(-) diff --git a/ruoyi-ui/src/api/tireManagement/install.js b/ruoyi-ui/src/api/tireManagement/install.js index efc05ca..2224bba 100644 --- a/ruoyi-ui/src/api/tireManagement/install.js +++ b/ruoyi-ui/src/api/tireManagement/install.js @@ -16,3 +16,30 @@ export function setCarTyres(query) { params: query }) } +// 查询轮胎详情 +export function TyreInstall(query) { + return request({ + url: '/basetyre/tyre/TyreInstall', + method: 'post', + data: query + }) +} + +// 查询轮胎详情 +export function getTyreInfo(query) { + return request({ + url: '/basetyre/tyre/getTyreInfoById', + method: 'get', + params: query + }) +} + + +// 卸载轮胎 +export function TyreUnInstall(query) { + return request({ + url: '/basetyre/tyre/TyreUnInstall', + method: 'post', + data: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/api/tireManagement/lifecycle.js b/ruoyi-ui/src/api/tireManagement/lifecycle.js index e54d92f..5785a36 100644 --- a/ruoyi-ui/src/api/tireManagement/lifecycle.js +++ b/ruoyi-ui/src/api/tireManagement/lifecycle.js @@ -1,9 +1,9 @@ import request from '@/utils/request' -// 查询列表 -export function listBaseCar(query) { +// 查询生命周期 +export function getTyreLife(query) { return request({ - url: '/basecar/car/list', + url: '/basetyre/tyre/getTyreLife', method: 'get', params: query }) diff --git a/ruoyi-ui/src/layout/components/Sidebar/Logo.vue b/ruoyi-ui/src/layout/components/Sidebar/Logo.vue index 1f033bf..560ba69 100644 --- a/ruoyi-ui/src/layout/components/Sidebar/Logo.vue +++ b/ruoyi-ui/src/layout/components/Sidebar/Logo.vue @@ -25,7 +25,7 @@ defineProps({ } }) -// const title = ref('若依管理系统'); +const title = ref(''); const settingsStore = useSettingsStore(); const sideTheme = computed(() => settingsStore.sideTheme); diff --git a/ruoyi-ui/src/utils/request.js b/ruoyi-ui/src/utils/request.js index 5678897..539580b 100644 --- a/ruoyi-ui/src/utils/request.js +++ b/ruoyi-ui/src/utils/request.js @@ -9,10 +9,11 @@ import useUserStore from '@/store/modules/user' import Cookies from "js-cookie"; import en from "element-plus/lib/locale/lang/en"; import zhCn from "element-plus/lib/locale/lang/zh-cn"; + let lang = Cookies.get('language') === 'en' ? 'en' : 'zhCn' -if(lang === 'en'){ +if (lang === 'en') { lang = 'en_US' -}else { +} else { lang = 'zh_CN' } let downloadLoadingInstance; @@ -27,7 +28,6 @@ const service = axios.create({ // 超时 timeout: 10000 }) - // request拦截器 service.interceptors.request.use(config => { // 是否需要设置 token @@ -39,10 +39,15 @@ service.interceptors.request.use(config => { } // get请求映射params参数 if (config.method === 'get' && (config.params || {})) { - let url = config.url + '?' + tansParams({ - ...(config.params || {}), - lang - }); + let url + if (!config.isNoLang) { + url = config.url + '?' + tansParams({ + ...(config.params || {}), + lang + }); + } else { + url = config.url + } url = url.slice(0, -1); config.params = {}; config.url = url; diff --git a/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue b/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue index 1392876..65c5411 100644 --- a/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue +++ b/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue @@ -61,14 +61,6 @@ - - - { queryParams.value = { pageNum: 1, pageSize: 10, - carQueueId: '', carLicense: '', } handleQuery(); diff --git a/ruoyi-ui/src/views/tireManagement/install/index.vue b/ruoyi-ui/src/views/tireManagement/install/index.vue index b7d75ae..bafce17 100644 --- a/ruoyi-ui/src/views/tireManagement/install/index.vue +++ b/ruoyi-ui/src/views/tireManagement/install/index.vue @@ -63,11 +63,28 @@
- + {{ form2.location }} - + + + + + + + + + + + + + + + + + +