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 }} - + + + + + + + + + + + + + + + + + +