|
|
|
@ -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',
|
|
|
|
|