forked from dyf/dyf-vue-ui
报警列表卡片,模式页面布局修改,估计播放,优化体验
This commit is contained in:
23
src/api/controlCenter/historyjectory/index.ts
Normal file
23
src/api/controlCenter/historyjectory/index.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import request from '@/utils/request';
|
||||
// 轨迹记录
|
||||
export const devicelocationHistory = (params) => {
|
||||
return request({
|
||||
url: '/api/device/locationHistory',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 轨迹播放
|
||||
export const getLocationHistoryDetail = (params) => {
|
||||
return request({
|
||||
url: '/api/device/getLocationHistoryDetail',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
|
||||
// 导出
|
||||
export default {
|
||||
devicelocationHistory,
|
||||
getLocationHistoryDetail
|
||||
};
|
||||
22
src/api/controlCenter/historyjectory/types.ts
Normal file
22
src/api/controlCenter/historyjectory/types.ts
Normal file
@ -0,0 +1,22 @@
|
||||
export interface deviceQuery {
|
||||
groupId: string;
|
||||
pageNum: number;
|
||||
deviceName: string;
|
||||
deviceMac: string;
|
||||
deviceImei: string;
|
||||
pageSize: Number;
|
||||
deviceType: string;
|
||||
startTime: string; // 接口要求的开始时间字段
|
||||
endTime: string // 接口要求的结束时间字段
|
||||
content: string
|
||||
}
|
||||
export interface deviceVO {
|
||||
id: number; // 设备ID
|
||||
deviceName: string; // 设备名称(对应子组件的device.name)
|
||||
typeName: string; // 设备类型/型号(对应子组件的device.model)
|
||||
onlineStatus: 0 | 1; // 设备状态(0=失效/离线,1=正常/在线,对应子组件的device.status)
|
||||
lng?: number; // 经度(地图打点用)
|
||||
lat?: number; // 纬度(地图打点用)
|
||||
// 其他字段...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user