From 929cf4c7be11bfd1e134d0cb0d7cbbe94772ebdf Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期一, 07 九月 2020 15:35:14 +0800
Subject: [PATCH] 摄像机树增加导入功能

---
 src/api/camera.ts |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/src/api/camera.ts b/src/api/camera.ts
index 47dafc8..f7d7cc6 100644
--- a/src/api/camera.ts
+++ b/src/api/camera.ts
@@ -140,4 +140,35 @@
     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
+  })
+}
\ No newline at end of file

--
Gitblit v1.8.0