/*
|
* @Author: shuishen 1109946754@qq.com
|
* @Date: 2022-11-15 15:10:41
|
* @LastEditors: shuishen 1109946754@qq.com
|
* @LastEditTime: 2022-11-16 14:27:59
|
* @FilePath: \srs-police-affairs\src\api\police\index.js
|
* @Description:
|
*
|
* Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved.
|
*/
|
import request from "@/router/axios.js"
|
|
/**
|
* 获取设备历史轨迹
|
* @param {*} params 包含 start 开始时间 -- end 结束时间 -- channelId 设备编号
|
* @returns
|
*/
|
export const getHistoricalTrack = (params) => {
|
return request({
|
url: `/position/history/${params.channelId}`,
|
method: 'get',
|
params: params
|
})
|
}
|
|
/**
|
* 获取警车信息
|
* @param {*} page 页数
|
* @param {*} count 每页数量
|
* @returns
|
*/
|
export const getCarList = (params = {},) => {
|
return request({
|
url: '/policecar/policecar/all',
|
method: 'get',
|
params: {
|
...params,
|
}
|
})
|
}
|