35 lines
729 B
JavaScript
35 lines
729 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询车辆历史轨迹列表
|
|
export function listRecords(query) {
|
|
return request({
|
|
url: '/business/records/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 删除车辆历史轨迹
|
|
export function delRecords(recordsId) {
|
|
return request({
|
|
url: '/business/records/delete/' + recordsId,
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
// 根据ID获取历史车辆数据
|
|
export function vehicleData(recordsId) {
|
|
return request({
|
|
url: '/business/vehicleData/findVDByRecordsId/' + recordsId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获取历史经纬度
|
|
export function getPosition(recordsId) {
|
|
return request({
|
|
url: '/business/vehicleData/getPosition/' + recordsId,
|
|
method: 'get'
|
|
})
|
|
}
|