From 28ea77ec45bd860e23c0edfb6ee81a7d6599b25f Mon Sep 17 00:00:00 2001
From: web <candymxq888@outlook.com>
Date: 星期六, 12 四月 2025 19:11:02 +0800
Subject: [PATCH] fix:修改配置文件

---
 src/api/screen/index.js |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/api/screen/index.js b/src/api/screen/index.js
index c9b5e24..6d84a84 100644
--- a/src/api/screen/index.js
+++ b/src/api/screen/index.js
@@ -1,11 +1,12 @@
 import {publicRequest} from '@/utils/request.js'
+import {requestPolling} from '@/utils/requestPolling.js'
 
 
 /**
  * 获取泵房信息
  */
 export const getPumpData = (data) => {
-    return publicRequest({
+    return requestPolling({
         url: '/waterFacilityParameter/getData',
         method: 'post',
         data
@@ -13,12 +14,23 @@
 }
 
 /**
- * 获取报警信息
+ * 获取泵房报警信息
  */
 export const getPumpWarning = (data) => {
-    return publicRequest({
+    return requestPolling({
         url: '/alarmHistory/search',
         method: 'post',
         data
     })
+}
+
+
+/**
+ * 获取报警code
+ */
+export const getWarningCode = () => {
+    return publicRequest({
+        url: '/heartbeatData/getByCode',
+        method: 'get'
+    })
 }
\ No newline at end of file

--
Gitblit v1.9.3