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
41
42
43
| /*
| * @Author: shuishen 1109946754@qq.com
| * @Date: 2022-11-15 15:10:41
| * @LastEditors: shuishen 1109946754@qq.com
| * @LastEditTime: 2022-12-05 15:22:33
| * @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, requestBaseUrl = 'outside') => {
| return request({
| url: `/api/position/history/${params.channelId}`,
| method: 'get',
| requestBaseUrl,
| params: params
| })
| }
|
| /**
| * 获取警车信息
| * @param {*} page 页数
| * @param {*} count 每页数量
| * @returns
| */
| export const getCarList = (page, count, serialNumber) => {
| return request({
| url: '/api/policecar/policecar/page',
| method: 'get',
| params: {
| page,
| count,
| serialNumber
| }
| })
| }
|
|