From a66a9f47fe6ae37f347e081669b1ccb29bbbbdfd Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 10 Feb 2023 10:25:15 +0800
Subject: [PATCH] 现有人员,责任区-人员列表显示
---
src/api/video/index.js | 32 ++++++++++++++++++++++----------
1 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/src/api/video/index.js b/src/api/video/index.js
index 038148a..2ff1131 100644
--- a/src/api/video/index.js
+++ b/src/api/video/index.js
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2022-11-15 15:10:41
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2023-01-11 11:29:09
+ * @LastEditTime: 2023-02-09 14:50:58
* @FilePath: \srs-police-affairs\src\api\video\index.js
* @Description:
*
@@ -20,8 +20,10 @@
*/
export const getVideoList = (page, count, query, params = {}) => {
return request({
- // 内网使用地址,外网把36110000002009999000更换掉
+ // 内网
url: '/device/query/devices/36110000002009999000/channels',
+ // 外网
+ // url: '/device/query/devices/34020000002000000003/channels',
method: 'get',
requestBaseUrl: 'outside',
params: {
@@ -40,10 +42,10 @@
*/
export const getDevices = (channelId) => {
return request({
- // 内网使用地址,外网把36110000002009999000更换掉
- // url: `/play/start/36110000002009999000/${channelId}`,
- // 外网使用地址
- url: `/play/start/34020000002000000003/${channelId}`,
+ // 内网
+ url: `/play/start/36110000002009999000/${channelId}`,
+ // 外网
+ // url: `/play/start/34020000002000000003/${channelId}`,
method: 'get',
requestBaseUrl: 'outside'
})
@@ -93,7 +95,7 @@
* @param {*} positions 坐标
* @param {*} name 名称
*/
-export const insertRegionSaveList = (type, positions, name, patrol) => {
+export const insertRegionSaveList = (type, positions, name, patrol, extent) => {
return request({
url: '/api/range/range/insertes',
method: 'post',
@@ -101,7 +103,8 @@
type,
positions,
name,
- patrol
+ patrol,
+ extent
}
})
}
@@ -145,9 +148,18 @@
*/
export const getTreeDevices = (params) => {
return request({
- url: '/device/query/tree/36110000002009999000',
+ url: '/api/deviceChannel/deviceChannel/lazy-tree',
method: 'get',
- requestBaseUrl: 'outside',
+ params: {
+ ...params
+ }
+ })
+}
+
+export const getSearchTreeDevices = (params) => {
+ return request({
+ url: '/api/deviceChannel/deviceChannel/tree',
+ method: 'get',
params: {
...params
}
--
Gitblit v1.9.3