From b47da15ef38b754aa9ead53279a689ef0ba8e23f Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期五, 29 一月 2021 09:46:59 +0800 Subject: [PATCH] 事件声音列表获取字段由data.list改为data --- src/api/camera.ts | 79 ++++++++++++++++++++++++++++++++++++++- 1 files changed, 77 insertions(+), 2 deletions(-) diff --git a/src/api/camera.ts b/src/api/camera.ts index 47dafc8..701661f 100644 --- a/src/api/camera.ts +++ b/src/api/camera.ts @@ -27,8 +27,9 @@ export const getCameraInfo = (id: string) => { return request({ - url: "/data/api-v/camera/show/" + id, - method: "get" + url: "/data/api-v/camera/show", + method: "get", + params: { cid: id } }); }; @@ -140,4 +141,78 @@ data: params }); }; +// +//鏌ユ壘鎵�鏈�(澶氳竟褰�)鍖哄煙 +export const findAllPolygons = () => { + return request({ + url: "/data/api-v/polygon/findAll", + method: "get" + }) +} +//鏌ユ壘鎵�鏈�(灞曞尯)鍖哄煙 +export const getAllAreas = () => { + return request({ + url: "/data/api-v/acp/findAll", + method: "get" + }) +} +//鍒犻櫎(灞曞尯) +export const delArea = (data: any) => { + return request({ + url: "/data/api-v/acp/delete", + method: "post", + data + }) +} + +//淇濆瓨鍖哄煙缂栬緫 +export const saveAreaInfo = (data: any) => { + return request({ + url: "/data/api-v/acp/save", + method: "post", + data + }) +} + +//鑾峰彇鎽勫儚鏈虹殑鍧愭爣鏍囧畾淇℃伅 +export const getCameraMarks = (query: any) => { + return request({ + url: '/data/api-v/camera/coord', + method: "get", + params: query + }) +} + +//鏇存柊鎽勫儚鏈虹殑鍧愭爣鏍囧畾淇℃伅 +export const updateCameraMarks = (data: any) => { + return request({ + url: '/data/api-v/camera/updateCoord', + method: 'post', + data + }) +} + +//淇濆瓨鎽勫儚鏈哄垎缁� +export const saveCameraGroupInfo = (data: any) => { + return request({ + url: '/data/api-v/camera/group/save', + method: 'post', + data + }) +} + +//鏌ヨ鎽勫儚鏈哄垎缁勪俊鎭� +export const findCameraGroups = () => { + return request({ + url: '/data/api-v/camera/group/findAll', + method: 'get' + }) +} + +export const delCameraGroup = (groupId: string) => { + return request({ + url: '/data/api-v/camera/group/del?groupId=' + groupId, + method: 'post' + }) +} -- Gitblit v1.8.0