修改轮胎安装

master
夜笙歌 2 years ago
parent c26040080a
commit b1e13133a2

@ -85,9 +85,12 @@
</el-form-item> </el-form-item>
<el-form-item label="当前花纹深度" style="width: 100%;"> <el-form-item label="当前花纹深度" style="width: 100%;">
<el-input-number v-model="form2.currentTextureDepth" :precision="2" :step="0.1"/> <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>
<el-form-item label=" "> <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-button @click="uninstallClick"></el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -179,6 +182,7 @@ const carQueueChange = (e) => {
sensorId: "", sensorId: "",
size: "", size: "",
tyrePosition: "", tyrePosition: "",
tyreiId:''
} }
let option = carQueueList.value.filter(res => res.id === e)[0]?.baseCarList || [] let option = carQueueList.value.filter(res => res.id === e)[0]?.baseCarList || []
option.length !== 0 ? isLicenseNumber.value = false : isLicenseNumber.value = true option.length !== 0 ? isLicenseNumber.value = false : isLicenseNumber.value = true
@ -198,6 +202,7 @@ const licenseNumberChange = async (e) => {
sensorId: "", sensorId: "",
size: "", size: "",
tyrePosition: "", tyrePosition: "",
tyreiId:''
} }
nowClick.value = '' nowClick.value = ''
const {data: res} = await setCarTyres({id: form.value.licenseNumber}) const {data: res} = await setCarTyres({id: form.value.licenseNumber})
@ -217,12 +222,30 @@ const outerTireNumberSearchClick = () => {
console.log(form2.value.outerTireNumber) console.log(form2.value.outerTireNumber)
} }
const installClick = () => { const modifiedPatternDepth =() =>{
console.log(form2.value) 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 = () => { 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() getList()

@ -31,8 +31,8 @@ export default defineConfig(({mode, command}) => {
proxy: { proxy: {
// https://cn.vitejs.dev/config/#server-proxy // https://cn.vitejs.dev/config/#server-proxy
'/dev-api': { '/dev-api': {
target: 'http://10.11.41.249:8080', // target: 'http://10.11.41.249:8080',
// target: 'http://localhost:8080', target: 'http://localhost:8080',
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '') rewrite: (p) => p.replace(/^\/dev-api/, '')
} }

Loading…
Cancel
Save