1
guanqb
2022-12-05 cda4dbbbd4795faeecbca5b3250c963c338a2f8d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * @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,
        }
    })
}