From b1e13133a2f7fe01061fc7a76eb39aa1fcf607c2 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, 13 Mar 2023 09:14:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=AE=E8=83=8E=E5=AE=89?=
=?UTF-8?q?=E8=A3=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/tireManagement/install/index.vue | 31 ++++++++++++++++---
ruoyi-ui/vite.config.js | 4 +--
2 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/ruoyi-ui/src/views/tireManagement/install/index.vue b/ruoyi-ui/src/views/tireManagement/install/index.vue
index 11b8b65..b7d75ae 100644
--- a/ruoyi-ui/src/views/tireManagement/install/index.vue
+++ b/ruoyi-ui/src/views/tireManagement/install/index.vue
@@ -85,9 +85,12 @@
+
+ 修改花纹深度
- 安装/更换
+ 安装
+ 更换
卸载轮胎
@@ -179,6 +182,7 @@ const carQueueChange = (e) => {
sensorId: "",
size: "",
tyrePosition: "",
+ tyreiId:''
}
let option = carQueueList.value.filter(res => res.id === e)[0]?.baseCarList || []
option.length !== 0 ? isLicenseNumber.value = false : isLicenseNumber.value = true
@@ -198,6 +202,7 @@ const licenseNumberChange = async (e) => {
sensorId: "",
size: "",
tyrePosition: "",
+ tyreiId:''
}
nowClick.value = ''
const {data: res} = await setCarTyres({id: form.value.licenseNumber})
@@ -217,12 +222,30 @@ const outerTireNumberSearchClick = () => {
console.log(form2.value.outerTireNumber)
}
-const installClick = () => {
- console.log(form2.value)
+const modifiedPatternDepth =() =>{
+ console.log({
+ currentTextureDepth:form2.value.currentTextureDepth,
+ tyreiId:form2.value.tyreiId,
+ carLicense:licenseNumberOption.value.filter(e => e.value === form.value.licenseNumber)?.[0].label,
+ id:form.value.licenseNumber
+ })
+}
+
+const installClick = (e) => {
+ console.log(e === 1? '安装' :'更换')
+ console.log({
+ ...form2.value,
+ carLicense:licenseNumberOption.value.filter(e => e.value === form.value.licenseNumber)?.[0].label,
+ id:form.value.licenseNumber
+ })
}
const uninstallClick = () => {
- console.log(form2.value)
+ console.log({
+ tyreiId:form2.value.tyreiId,
+ carLicense:licenseNumberOption.value.filter(e => e.value === form.value.licenseNumber)?.[0].label,
+ id:form.value.licenseNumber
+ })
}
getList()
diff --git a/ruoyi-ui/vite.config.js b/ruoyi-ui/vite.config.js
index 31d5c39..d3a8730 100644
--- a/ruoyi-ui/vite.config.js
+++ b/ruoyi-ui/vite.config.js
@@ -31,8 +31,8 @@ export default defineConfig(({mode, command}) => {
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api': {
- target: 'http://10.11.41.249:8080',
- // target: 'http://localhost:8080',
+ // target: 'http://10.11.41.249:8080',
+ target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
}