修改跳转

master
夜笙歌 2 years ago
parent bbdf00b349
commit 412373d96b

@ -0,0 +1,19 @@
import request from '@/utils/request'
// 查询列表
export function listBaseCar(query) {
return request({
url: '/basecar/car/list',
method: 'get',
params: query
})
}
// 查询列表
export function getCarGpsList(query) {
return request({
url: '/basecar/car/getCarGpsList',
method: 'get',
params: query
})
}

@ -0,0 +1,10 @@
import request from '@/utils/request'
// 查询列表
export function getList(query) {
return request({
url: '/basetyre/tyre/list',
method: 'get',
params: query
})
}

@ -113,7 +113,6 @@ const tableRef1 = ref()
//
const total = ref(0);
const getList = async () => {
console.log(queryParams.value)
const {rows: list} = await listBaseCar(queryParams.value)
tableData.value = list.map(e => {
return {
@ -123,7 +122,6 @@ const getList = async () => {
})
total.value = tableData.value.length
tableRef1.value.setCurrentRow(tableData.value[0])
tableChange(list[0].id)
}
const tableChange = async (e) => {

@ -1,4 +1,3 @@
<template>
<div class="app-container">
<el-form :model="form" inline label-width="80px">

Loading…
Cancel
Save