修改轮胎安装

master
夜笙歌 2 years ago
parent c26040080a
commit b1e13133a2

@ -85,9 +85,12 @@
</el-form-item>
<el-form-item label="当前花纹深度" style="width: 100%;">
<el-input-number v-model="form2.currentTextureDepth" :precision="2" :step="0.1"/>
&nbsp; &nbsp;
<el-button @click="modifiedPatternDepth"></el-button>
</el-form-item>
<el-form-item label=" ">
<el-button type="primary" @click="installClick">/</el-button>
<el-button type="primary" @click="installClick(1)"></el-button>
<el-button type="primary" @click="installClick(2)"></el-button>
<el-button @click="uninstallClick"></el-button>
</el-form-item>
</el-form>
@ -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()

@ -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/, '')
}

Loading…
Cancel
Save