|
|
|
@ -47,7 +47,7 @@
|
|
|
|
|
<el-table v-loading="loading" :data="postList" @row-click="rowClick">
|
|
|
|
|
<el-table-column align="center" fixed type="selection" width="55"/>
|
|
|
|
|
<el-table-column align="center" label="序号" prop="internationalization1"
|
|
|
|
|
width="55" type='index'/>
|
|
|
|
|
type='index' width="55"/>
|
|
|
|
|
<el-table-column align="center" label="外胎号" prop="outerTireNumber"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column align="center" label="传感器ID" prop="sensorid"
|
|
|
|
@ -69,13 +69,13 @@
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
<el-dialog v-model="dialogTableVisible" @opened="dialogOpened">
|
|
|
|
|
<temp ref="tempRef" width='900px'/>
|
|
|
|
|
<temp ref="tempRef" width='900px'/>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script name="Test" setup>
|
|
|
|
|
import {listTest,getChartData} from "@/api/GPS/tyre";
|
|
|
|
|
import {listTest, getChartData} from "@/api/GPS/tyre";
|
|
|
|
|
import Temp from '@/views/dashboard/Temp'
|
|
|
|
|
|
|
|
|
|
import {useI18n} from 'vue-i18n';
|
|
|
|
@ -115,9 +115,9 @@ const rowClick = (e) => {
|
|
|
|
|
outerTireNumberNow.value = e.outerTireNumber
|
|
|
|
|
dialogTableVisible.value = true
|
|
|
|
|
}
|
|
|
|
|
const dialogOpened = ()=>{
|
|
|
|
|
const dialogOpened = () => {
|
|
|
|
|
console.log(tempRef)
|
|
|
|
|
getChartData({outerTireNumber:outerTireNumberNow.value}).then(val=>{
|
|
|
|
|
getChartData({outerTireNumber: outerTireNumberNow.value}).then(val => {
|
|
|
|
|
console.log(val)
|
|
|
|
|
tempRef.value.setData(val.data);
|
|
|
|
|
})
|
|
|
|
@ -128,13 +128,13 @@ const dialogOpened = ()=>{
|
|
|
|
|
function getList() {
|
|
|
|
|
loading.value = true;
|
|
|
|
|
let str = queryParams.value.outerTireNumber || ''
|
|
|
|
|
str = str.replace(',',' ')
|
|
|
|
|
str = str.replace(',',' ')
|
|
|
|
|
str = str.replace('、',' ')
|
|
|
|
|
str = str.replace(',', ' ')
|
|
|
|
|
str = str.replace(',', ' ')
|
|
|
|
|
str = str.replace('、', ' ')
|
|
|
|
|
let dataRow = str.split(' ')
|
|
|
|
|
let data = dataRow?.filter(e=>!!e) || []
|
|
|
|
|
let params= {
|
|
|
|
|
outerTireNumbers:data?.toString(),
|
|
|
|
|
let data = dataRow?.filter(e => !!e) || []
|
|
|
|
|
let params = {
|
|
|
|
|
outerTireNumbers: data?.toString(),
|
|
|
|
|
// params:{
|
|
|
|
|
// beginTime:dateRange.value?.[0],
|
|
|
|
|
// endTime:dateRange.value?.[1],
|
|
|
|
|