修改轮胎生命周期

master
夜笙歌 2 years ago
parent 900a406546
commit 033f48da71

@ -155,7 +155,7 @@
</el-row>
<el-dialog v-model="open" :title="title" append-to-body width="800px">
<el-descriptions class="margin-top" :column="2" border width="150px">
<el-descriptions :column="2" border class="margin-top" width="150px">
<el-descriptions-item>
<template #label>
胎号
@ -398,7 +398,6 @@ const queryParams = ref({
const tableData = ref([])
/** 取消按钮 */
function cancel() {
open.value = false;
@ -529,6 +528,7 @@ onBeforeUnmount(() => {
background-size: 100% 100%;
background-image: url("../../../assets/images/trucks.png");
}
.el-descriptions__label {
width: 170px;
}

@ -67,7 +67,7 @@
{{ tyrePosition(i.carPosition) || '' }}
</div>
<div style="width:100%;padding-left: 4px;line-height: 24px">
{{ i.datetime ? parseTime(new Date(i.datetime), '{y}-{m}-{d}') : '' }}
{{ i.datetime ? parseTime(new Date(i.datetime), '{y}-{m}-{d} {h}:{i}:{s}') : '' }}
</div>
</div>
</div>
@ -130,11 +130,14 @@ const getList = () => {
})
}
const outerTireNumberSearchClick = async () => {
if(!tireInfo.value.title) return
const {data: info} = await getTyreLife({
outerTireNumber: tireInfo.value.title
})
list.value = info.lifeList
tireInfo.value = info.tyresLifeInfo
tireInfo.value = {...info.tyresLifeInfo,title:tireInfo.value.title}
percentage.value = info.tyresLifeInfo.percentage || ''
run.value = info.tyresLifeInfo.mileage || ''
list.value.push({
datetime: new Date().getTime(),
description: '今日'
@ -151,9 +154,11 @@ const tyrePosition = (e) => {
return `${position[0]}${Enum1[position[1] - 1]}${Enum2[position[2] - 1]}`
}
const percentage = '3.33'
//
const percentage = ref('')
const run = '3.33'
//
const run = ref('')
const tireInfo = ref({
title: '1001',

Loading…
Cancel
Save