From a7c1decc3e8ddd7e5a2e1367203bf350cf2106bb Mon Sep 17 00:00:00 2001 From: wgx <31655391@qq.com> Date: Thu, 26 Mar 2026 17:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A6=E4=B9=A1=E5=A4=A7=E5=B1=8F=E6=94=B9?= =?UTF-8?q?=E9=80=A0=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 37 +++++++++++++++ src/pages/Home/index.vue | 2 +- src/pages/MywrList/index.vue | 92 ++++++++++++++++++++++++++++++------ 3 files changed, 115 insertions(+), 16 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index db08a04..1bd1c5b 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -138,3 +138,40 @@ export function getMaintainLog(params) { params }) } + + +/** + * //监测预警数据 + * stationCode=S_1 站点编号 + * &deployId=1679816437477228546 设备ID + * &pageNo=1 页号 + * &pageSize=10 页宽 + * &yearStr=2026 年份 + * + * 回执 + * { + * "id": "2027671112451649538", + * "tenantId": "租户", + * "deployCode": "16111113", + * "deployId": "1679816437477228546", + * "alertTime": "告警时间", + * "itemCode":"检测项编号" + * "itemName": "钾离子", + * "deviceName": "设备名称", + * "fullDeviceName":"带站点名称的设备名字" + * "readStatus":"low=偏低,high=偏高", + * "survUnit":"单位" + * "survValue":"监测值" + * "nomalValue":"正常值范围" + * } + * @param params + * @returns {*} + */ +export function doGetAlertRecord(params) { + return requests({ + url: '/appmana/bigScreen/alertRecord', + method: 'get', + headers: {}, + params + }) +} diff --git a/src/pages/Home/index.vue b/src/pages/Home/index.vue index ae9819d..381c771 100644 --- a/src/pages/Home/index.vue +++ b/src/pages/Home/index.vue @@ -799,7 +799,7 @@ export default { item: item } }); - if (item.type == 'orient') {//监测站弹窗 + if (item.type == 'orient' || item.type == 'livestock' || item.type == 'watershed') {//监测站弹窗 marker.on('click', e => { let indexnumb = e.target.getExtData().ids.slice(-1); this.qcdtinfor = this.stationInfoList[indexnumb] diff --git a/src/pages/MywrList/index.vue b/src/pages/MywrList/index.vue index 95ed43e..7fc00b4 100644 --- a/src/pages/MywrList/index.vue +++ b/src/pages/MywrList/index.vue @@ -345,23 +345,53 @@
+ + + + + + + + + + + + + + + + + + +
- 监测站维护日志 + 监测与预警
-
- - +
+ +
-
  {{activity.maintainData1}}
-
维护人:{{activity.maintainPerson}}
-
  {{activity.maintainPerson}}   - {{activity.maintainTime}}
+
+   + {{activity.itemName}} +  {{activity.survValue}} + {{activity.survUnit}}  + + ({{activity.readStatus=='low'?'偏低':activity.readStatus=='high'?'偏高':'正常'}}) +
+
+
+  {{activity.alertTime}} +
+
+
暂无预警数据
+
@@ -404,7 +434,15 @@