From dc7262f5f6131c25e9ae0a70e473e68a960ad093 Mon Sep 17 00:00:00 2001 From: pyt <626651354@qq.com> Date: 星期一, 21 四月 2025 09:19:18 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/H5/shehong-vehicle-supervision --- src/view/home/service.js | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/view/home/service.js b/src/view/home/service.js index 4fad17d..8af0967 100644 --- a/src/view/home/service.js +++ b/src/view/home/service.js @@ -26,4 +26,18 @@ // 获取预警排行统计前10 export const getCarInfoById = (data) => { return axios.get(`/system/car/getCarInfo/${data.id}`, data) +} +// 获取监控 +export const getRealVideo = (data) => { + return axios.get(`/system/car/getRealVideo/${data.id}`, data) +} + +// 通知后端开始获取视频流 +export const playDetection = (id) => { + return axios.get(`/system/car/playDetection/${id}`) +} + +// 通知后端开始关闭视频流 +export const closeRealVideo = (id) => { + return axios.get(`/system/car/closeRealVideo/${id}`) } \ No newline at end of file -- Gitblit v1.7.1