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 | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/src/api/screen/index.js b/src/api/screen/index.js index 84f8a01..6d84a84 100644 --- a/src/api/screen/index.js +++ b/src/api/screen/index.js @@ -1,13 +1,36 @@ 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 }) +} + +/** + * 获取泵房报警信息 + */ +export const getPumpWarning = (data) => { + 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