|
|
@ -155,7 +155,7 @@
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="open" :title="title" append-to-body width="800px">
|
|
|
|
<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>
|
|
|
|
<el-descriptions-item>
|
|
|
|
<template #label>
|
|
|
|
<template #label>
|
|
|
|
胎号
|
|
|
|
胎号
|
|
|
@ -270,7 +270,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
<script setup>
|
|
|
|
import {listBaseCar, getCarGpsList,getTyreList} from '@/api/realTimeMonitoring/carMonitoring'
|
|
|
|
import {listBaseCar, getCarGpsList, getTyreList} from '@/api/realTimeMonitoring/carMonitoring'
|
|
|
|
import AMapLoader from '@amap/amap-jsapi-loader';
|
|
|
|
import AMapLoader from '@amap/amap-jsapi-loader';
|
|
|
|
import {useI18n} from "vue-i18n";
|
|
|
|
import {useI18n} from "vue-i18n";
|
|
|
|
import {ref} from 'vue'
|
|
|
|
import {ref} from 'vue'
|
|
|
@ -364,14 +364,14 @@ const tableChange = async (e) => {
|
|
|
|
title.push(parseInt(res.split('-')[1]))
|
|
|
|
title.push(parseInt(res.split('-')[1]))
|
|
|
|
})
|
|
|
|
})
|
|
|
|
TireRow.value = title
|
|
|
|
TireRow.value = title
|
|
|
|
let tyreListData = info[0].tyreList.map(e=>{
|
|
|
|
let tyreListData = info[0].tyreList.map(e => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
...e,
|
|
|
|
...e,
|
|
|
|
tyrePositionS : e.tyrePosition?.split('-')[0] + '-' + e.tyrePosition?.split('-')[1] + '-' + e.tyrePosition?.split('-')[2]
|
|
|
|
tyrePositionS: e.tyrePosition?.split('-')[0] + '-' + e.tyrePosition?.split('-')[1] + '-' + e.tyrePosition?.split('-')[2]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
tyreList.value = tyreListData
|
|
|
|
tyreList.value = tyreListData
|
|
|
|
tyreDataList.value = tyreListData.map(e=>e.tyrePositionS)
|
|
|
|
tyreDataList.value = tyreListData.map(e => e.tyrePositionS)
|
|
|
|
console.log(tyreList.value)
|
|
|
|
console.log(tyreList.value)
|
|
|
|
let timeOut = () => {
|
|
|
|
let timeOut = () => {
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
@ -398,7 +398,6 @@ const queryParams = ref({
|
|
|
|
const tableData = ref([])
|
|
|
|
const tableData = ref([])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 取消按钮 */
|
|
|
|
/** 取消按钮 */
|
|
|
|
function cancel() {
|
|
|
|
function cancel() {
|
|
|
|
open.value = false;
|
|
|
|
open.value = false;
|
|
|
@ -529,7 +528,8 @@ onBeforeUnmount(() => {
|
|
|
|
background-size: 100% 100%;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
background-image: url("../../../assets/images/trucks.png");
|
|
|
|
background-image: url("../../../assets/images/trucks.png");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.el-descriptions__label{
|
|
|
|
|
|
|
|
|
|
|
|
.el-descriptions__label {
|
|
|
|
width: 170px;
|
|
|
|
width: 170px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|