From 32947c42c53afdd9a6c49637c4ecc8e5fa4be24c Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期三, 18 六月 2025 16:34:44 +0800
Subject: [PATCH] Merge branch 'master' of http://103.135.160.14:9034/r/NslWeb

---
 src/api/hpApi.js |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/src/api/hpApi.js b/src/api/hpApi.js
index 9d0e86f..f5715b7 100644
--- a/src/api/hpApi.js
+++ b/src/api/hpApi.js
@@ -85,7 +85,7 @@
   return response.data;
 }
 
-// 鎸夌収琛屾斂鍖篶ode鏌ヨ涔¢晣code
+// 鎸夌収琛屾斂鍖篶ode鏌ヨ涔¢晣code(姝ゆ帴鍙e寘鍚殣鎮g偣鏁伴噺鏌ヨ)
 export async function getAeraTownCode(data) {
   const response = await axios.post("/hp/sinoDzHiddenDangerPoint/getHiddenDangerTownCount", {
     "dictDisasterGrade": "",
@@ -98,7 +98,7 @@
   return response.data;
 }
 
-// 鏍规嵁涔¢晣Code鑾峰彇闅愭偅鐐�
+// 鏍规嵁涔¢晣Code鑾峰彇闅愭偅鐐�(姝ゆ帴鍙e寘鍚殣鎮g偣鏁伴噺鏌ヨ)
 export async function getDangerPoint(data) {
   const response = await axios.post("/hp/sinoDzHiddenDangerPoint/getData", {
     filterObject: {
@@ -127,7 +127,6 @@
 
 // 鐩戞祴璁惧鎺ュ彛
 /**
- * 妫�鏌ユ椂闂村垪鏄惁鎸夊崌搴忔帓鍒�
  * @param {string} data - 闆ㄩ噺璁¤澶囩被鍨媔d
  * @param {string} townCode - 涔¢晣code,鍙互鏌ヨ涔¢晣鐩戞祴璁惧淇℃伅
  */
@@ -136,6 +135,8 @@
     filterObject: {
       "dictDeviceType": data,
       "townCode": townCode,
+      "year": 2025
+
       // 鎵�灞為」鐩�
       // "belongObjList": [
       //   "1797461961110261762"
@@ -152,6 +153,7 @@
     filterObject: {
       "divisionDistrict": data,
       // 鎵�灞為」鐩�
+      // 濡傛灉涓嶅姞杩欎釜锛屽垯杩斿洖鐨勫叏鏄己闇囦华锛�1933099069385355265锛�
       "belongObjList": [
         "1797461961110261762"
       ],
@@ -211,7 +213,19 @@
 
 
 // 鏌ヨ鍖椾含甯傜洃娴嬭澶囩殑鏁伴噺
-export async function getDeviceCount() {
-  const response = await axios.get("/hp/device/statisticsCountyByDeviceType");
+export async function getDeviceCount(params = {}) {
+  const response = await axios.get("/hp/device/statisticsCountyByDeviceType", {
+    params
+  });
+  return response.data;
+}
+
+// 鏌ヨ瀛欒儭娌熼伩闄╁満鎵�
+export async function getSafePoint() {
+  const response = await axios.get("/hp/safeHavenLocation/getDataSelect", {
+    params: {
+      divisionId: "110116110218"
+    }
+  });
   return response.data;
 }
\ No newline at end of file

--
Gitblit v1.9.3