From 013c4922a3296e95a54c1902c09b44d62a000eb2 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期三, 27 七月 2022 17:14:02 +0800 Subject: [PATCH] Merge branch 'shandong' of ssh://192.168.5.5:29418/web/saas-web into shandong --- src/api/area.ts | 42 +++++++++++++++++++++++------------------- 1 files changed, 23 insertions(+), 19 deletions(-) diff --git a/src/api/area.ts b/src/api/area.ts index c26d38b..a8ce2ad 100644 --- a/src/api/area.ts +++ b/src/api/area.ts @@ -12,8 +12,8 @@ export const getGB28181CameraTree = (query: any) => { return request({ url: "/saas/api-s/gb28181/tree", - method: "get", - params: query + method: "post", + data: query }); }; @@ -49,25 +49,27 @@ }); }; -export const getCameraBaseImage = (query: any) => { +export const getCameraBaseImage = (data: any) => { return request({ - url: "/data/api-v/gb28181/camera/capture", - method: "get", - params: query - }); -}; - -export const getGb28181Pool = () => { - return request({ - url: "/data/api-v/gb28181/treeSelected", - method: "get" - }); -}; - -export const refreshGB28181Tree = () => { - return request({ - url: "/data/api-v/gb28181/treeRefresh", + url: "/saas/api-s/gb28181/camera/capture", method: "post", + data + }); +}; + +export const getGb28181Pool = (data) => { + return request({ + url: "/saas/api-s/gb28181/treeSelected", + method: "post", + data + }); +}; + +export const refreshGB28181Tree = (data) => { + return request({ + url: "/saas/api-s/gb28181/treeRefresh", + method: "post", + data }); }; @@ -78,3 +80,5 @@ data: qs.stringify(query) }); }; + + -- Gitblit v1.8.0