From b582d3dfe4e46a3b978d2663fe54df240a80a710 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 02 九月 2022 03:33:45 +0800
Subject: [PATCH] 修复区域删除的问题. 修正底图显示的区域框
---
src/api/clusterManage.ts | 135 ++++++++++++++++++++++++++++++++++++++++----
1 files changed, 121 insertions(+), 14 deletions(-)
diff --git a/src/api/clusterManage.ts b/src/api/clusterManage.ts
index 690d640..4230d7b 100644
--- a/src/api/clusterManage.ts
+++ b/src/api/clusterManage.ts
@@ -4,7 +4,7 @@
// 鑾峰彇闅忔満瀵嗙爜
export const randomPwd = (query: any) => {
return request({
- url: "/data/api-v/cluster/randomPwd",
+ url: "/saas/api-d/device/randomPwd",
method: "get",
params: query
});
@@ -13,7 +13,7 @@
// 鍒涘缓闆嗙兢
export const createSerfCluster = (query: any) => {
return request({
- url: "/data/api-v/cluster/create",
+ url: "/saas/api-d/device/createCluster",
method: "post",
data: query
})
@@ -22,7 +22,7 @@
// 鎼滅储闆嗙兢
export const search = (query: any) => {
return request({
- url: "/data/api-v/cluster/search",
+ url: "/saas/api-d/device/searchCluster",
method: "post",
data: query
})
@@ -31,16 +31,16 @@
// 璋僺earch鍚庯紝閫氳繃姝ゆ帴鍙h幏鍙栨煡鍒扮殑闆嗙兢鑺傜偣淇℃伅
export const getSearchNodes = (query: any) => {
return request({
- url: "/data/api-v/cluster/getSearchNodes",
- method: "get",
- params: query
+ url: "/saas/api-d/device/getSearchNodes",
+ method: "post",
+ data: query
});
};
// 鍋滄鎼滅储
export const stopSearching = (query: any) => {
return request({
- url: "/data/api-v/cluster/stopSearching",
+ url: "/saas/api-d/device/stopSearching",
method: "post",
data: query
})
@@ -49,16 +49,16 @@
// 鏌ヨ鏈湴闆嗙兢
export const findCluster = (query: any) => {
return request({
- url: "/data/api-v/cluster/findCluster",
- method: "get",
- params: query
+ url: "/saas/api-d/device/findCluster",
+ method: "post",
+ data: query
});
};
// 淇濆瓨闆嗙兢鍚嶇О
export const updateClusterName = (query: any) => {
return request({
- url: '/data/api-v/cluster/updateClusterName',
+ url: '/saas/api-d/device/updateClusterName',
method: 'post',
data: qs.stringify(query)
})
@@ -67,7 +67,7 @@
// 鍔犲叆闆嗙兢
export const joinCluster = (query: any) => {
return request({
- url: "/data/api-v/cluster/joinCluster",
+ url: "/saas/api-d/device/joinCluster",
method: "post",
headers: {
"Content-Type": "application/json; charset=UTF-8"
@@ -79,7 +79,7 @@
// 閫�鍑洪泦缇�
export const leave = (query: any) => {
return request({
- url: "/data/api-v/cluster/leave",
+ url: "/saas/api-d/device/exitCluster",
method: "post",
data: query
})
@@ -127,4 +127,111 @@
method: "post",
data
})
-}
\ No newline at end of file
+}
+
+//鑾峰彇闆嗙兢鍒楄〃
+export const getClusterDevList = () => {
+ return request({
+ url: "/saas/api-s/area/getClusterDevList",
+ method: "get",
+ })
+}
+
+
+
+//鑾峰彇鐢ㄦ埛鎬荤畻鍔�
+export const userStatisticRunInfo = () => {
+ return request({
+ url: "/saas/api-s/camera/userStatisticRunInfo",
+ method: "post",
+ })
+}
+
+//鑾峰彇璁惧绠楀姏
+export const deviceStatisticRunInfo = (data: any) => {
+ return request({
+ url: "/saas/api-s/camera/deviceStatisticRunInfo",
+ method: "post",
+ data
+ })
+}
+
+//鑾峰彇闆嗙兢绠楀姏
+export const clusterStatisticRunInfo = (data: any) => {
+ return request({
+ url: "/saas/api-s/camera/clusterStatisticRunInfo",
+ method: "post",
+ data
+ })
+}
+
+//鑾峰彇鐢ㄦ埛涓嬫墍鏈夎澶嘽pu
+export const userSysInfo = () => {
+ return request({
+ url: "/saas/api-d/device/userSysInfo",
+ method: "post",
+ })
+}
+
+//鑾峰彇闆嗙兢涓媍pu
+export const clusterSysInfo = (data: any) => {
+ return request({
+ url: "/saas/api-d/device/userClusterInfo",
+ method: "post",
+ data
+ })
+}
+
+//鑾峰彇璁惧cpu
+export const devicesSysInfo = (data: any) => {
+ return request({
+ url: "/saas/api-d/device/devicesSysInfo",
+ method: "post",
+ data
+ })
+}
+
+//鑾峰彇鎵�鏈夎澶囬泦缇�
+export const userStatisticRun = (data: any) => {
+ return request({
+ url: "/saas/api-s/camera/userStatisticRun",
+ method: "post",
+ data
+ })
+}
+
+//鑾峰彇闆嗙兢涓嬭澶�
+export const clusterStatisticRun = (data: any) => {
+ return request({
+ url: "/saas/api-s/camera/clusterStatisticRun",
+ method: "post",
+ data
+ })
+}
+
+//鑾峰彇璁惧鎽勫儚鏈哄垪琛�
+export const getCameraByPage = (data: any) => {
+ return request({
+ url: "/saas/api-s/camera/getCameraByPage",
+ method: "post",
+ data
+ })
+}
+
+//鑾峰彇绠楀姏璁剧疆
+export const getPollConfig = (data: any) => {
+ return request({
+ url: "/saas/api-s/camera/getPollConfig",
+ method: "post",
+ data
+ })
+}
+
+//淇敼绠楀姏璁剧疆
+export const savePollConfig = (data: any) => {
+ return request({
+ url: "/saas/api-s/camera/savePollConfig",
+ method: "post",
+ data
+ })
+}
--
Gitblit v1.8.0