From 07826d6bfbf86d057bda67e03ff20a26880b10f6 Mon Sep 17 00:00:00 2001 From: wwp <782568523@qq.com> Date: Mon, 2 Sep 2024 14:48:40 +0800 Subject: [PATCH] =?UTF-8?q?api=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitorMobile/api/monitor/index.js | 25 +++++++++++++++++++ monitorMobile/api/warn/index.js | 25 +++++++++++++++++++ .../earlyWarning/components/warningInfo.vue | 6 ++--- 3 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 monitorMobile/api/monitor/index.js create mode 100644 monitorMobile/api/warn/index.js diff --git a/monitorMobile/api/monitor/index.js b/monitorMobile/api/monitor/index.js new file mode 100644 index 0000000..d261895 --- /dev/null +++ b/monitorMobile/api/monitor/index.js @@ -0,0 +1,25 @@ +import http from '@/http/api.js' +// 获取监控分组 +export const groupList = (params) => { + return http.request({ + url: '/api/business/cameraGroup/getNoPageList', + method: 'get', + params + }) +} +// 获取监控列表 +export const list = (params) => { + return http.request({ + url: '/api/business/cameraInfo/getPageList', + method: 'get', + params + }) +} +// 停止视频流获取 +export const stopUrl = (params) => { + return http.request({ + url: '/api/business/deviceApi/getStopVideoLive', + method: 'get', + params + }) +} diff --git a/monitorMobile/api/warn/index.js b/monitorMobile/api/warn/index.js new file mode 100644 index 0000000..777cf6b --- /dev/null +++ b/monitorMobile/api/warn/index.js @@ -0,0 +1,25 @@ +import http from '@/http/api.js' +// 获取预警列表 +export const page = (params) => { + return http.request({ + url: '/api/business/warn/getList', + method: 'get', + params + }) +} +// 获取预警详情 +export const detail = (params) => { + return http.request({ + url: '/api/business/warn/getInfo', + method: 'get', + params + }) +} +// 获取预警类型 +export const warnType = (params) => { + return http.request({ + url: '/api/business/warn/getAlarmType', + method: 'get', + params + }) +} \ No newline at end of file diff --git a/monitorMobile/pages/earlyWarning/components/warningInfo.vue b/monitorMobile/pages/earlyWarning/components/warningInfo.vue index 8ff035c..e60f5df 100644 --- a/monitorMobile/pages/earlyWarning/components/warningInfo.vue +++ b/monitorMobile/pages/earlyWarning/components/warningInfo.vue @@ -174,10 +174,10 @@ - - +