From 4a800a8fc83c6bd1f86a8e847b079a51a7532c09 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 20 七月 2022 15:05:58 +0800
Subject: [PATCH] 修复国标配置的bug

---
 src/api/scene.ts |   45 +++++++++++++++++++++++----------------------
 1 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/src/api/scene.ts b/src/api/scene.ts
index ca76cd8..130433f 100644
--- a/src/api/scene.ts
+++ b/src/api/scene.ts
@@ -1,27 +1,27 @@
 import request from "@/scripts/httpRequest";
 
-export const getAllTemplate = (query: any) => {
-  return request({
-    url: "/data/api-v/template/rule",
-    method: "get",
-    params: query
-  });
-};
+// export const getAllTemplate = (query: any) => {
+//   return request({
+//     url: "/data/api-v/template/rule",
+//     method: "get",
+//     params: query
+//   });
+// };
 
-export const deleteTemplate = (id: string) => {
-  return request({
-    url: "/data/api-v/template/rule/" + id,
-    method: "delete"
-  });
-};
+// export const deleteTemplate = (id: string) => {
+//   return request({
+//     url: "/data/api-v/template/rule/" + id,
+//     method: "delete"
+//   });
+// };
 
-export const saveTemplate = (params: any) => {
-  return request({
-    url: "/data/api-v/template/rule/save",
-    method: "post",
-    data: params
-  });
-};
+// export const saveTemplate = (params: any) => {
+//   return request({
+//     url: "/data/api-v/template/rule/save",
+//     method: "post",
+//     data: params
+//   });
+// };
 
 export const saveCameraScene = (params: any) => {
   return request({
@@ -57,7 +57,8 @@
 
 export const deleteCameraScene = (id: any) => {
   return request({
-    url: "/data/api-v/camera/rule/deleteGroup/" + id,
-    method: "delete"
+    url: "/data/api-v/camera/rule/deleteGroup",
+    method: "get",
+    params: { groupId: id }
   });
 };

--
Gitblit v1.8.0