From a8e5c275a8724feff972502c1b2db348dba4482b Mon Sep 17 00:00:00 2001
From: guonan <guonan201020@163.com>
Date: 星期五, 16 五月 2025 09:57:50 +0800
Subject: [PATCH] 对接中科软接口

---
 src/api/hpApi.js |   36 +++++++++++++++++++++++++-----------
 1 files changed, 25 insertions(+), 11 deletions(-)

diff --git a/src/api/hpApi.js b/src/api/hpApi.js
index 1d1a0cc..42f5fa6 100644
--- a/src/api/hpApi.js
+++ b/src/api/hpApi.js
@@ -29,16 +29,6 @@
   }, intervalTime);
 }
 
-// 鑾峰彇闅愭偅鐐规竻鍗�
-export async function getDangerPoint(data) {
-  const response = await axios.post("/hp/sinoDzHiddenDangerPoint/getData", {
-    filterObject: {
-      year: 2024, // 鍔ㄦ�佷紶鍏ョ殑骞翠唤鍙傛暟
-    },
-  });
-  console.log("getDangerPoint:", response);
-  return response.data;
-}
 // 鑾峰彇閬块櫓浣嶇疆
 export async function getSafeLocation(data) {
   const response = await axios.post("/hp/safeHavenLocation/getData", {
@@ -70,7 +60,7 @@
   return response.data;
 }
 // 鑾峰彇闆ㄩ噺鏁版嵁
-export async function getRainfallData(data) {
+export async function getRainfallData() {
   const response = await axios.post("/hp/rainfallCountyCity/getData", {
     filterObject: {},
     "pageSize": 1000
@@ -78,3 +68,27 @@
   console.log("getRainfallData:", response);
   return response.data;
 }
+
+// 鑾峰彇鐩戞祴璁惧淇℃伅
+export async function getDeviceInfo(data) {
+  const response = await axios.post("/hp/deviceInfo/getData", {
+    filterObject: {
+      "dictDeviceType": data,
+      "townCode": "110116110000"
+    },
+    "pageSize": 10000
+  });
+  return response.data;
+}
+
+// 鑾峰彇闅愭偅鐐逛俊鎭�
+export async function getDangerPoint(data) {
+  const response = await axios.post("/hp/sinoDzHiddenDangerPoint/getData", {
+    filterObject: {
+      "divisionCounty": "110116000000",
+      "divisionTown": "110116110000"
+    },
+    "pageSize": 10000
+  });
+  return response.data;
+}
\ No newline at end of file

--
Gitblit v1.9.3