From 84df762ddd415acb93d442fdf924d4f8718dc478 Mon Sep 17 00:00:00 2001 From: xusd Date: Wed, 12 Jun 2024 17:43:22 +0800 Subject: [PATCH] =?UTF-8?q?APP=EF=BC=9A=E5=B7=A1=E6=A3=80=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=95=B0=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0=E8=AE=BE?= =?UTF-8?q?=E5=A4=87id=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/alarm/alarm.js | 5 +++-- pages/work/alarm/listAlarm.vue | 7 ++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/api/alarm/alarm.js b/api/alarm/alarm.js index a76da13..6a50894 100644 --- a/api/alarm/alarm.js +++ b/api/alarm/alarm.js @@ -10,10 +10,11 @@ export function listRecord(query) { } // 报警处理数量 -export function getAlarmCount() { +export function getAlarmCount(query) { return request({ url: "/alarm/record/alarmCount", - method: "get" + method: "get", + params: query, }); } diff --git a/pages/work/alarm/listAlarm.vue b/pages/work/alarm/listAlarm.vue index 26efe8b..6c636c1 100644 --- a/pages/work/alarm/listAlarm.vue +++ b/pages/work/alarm/listAlarm.vue @@ -92,6 +92,9 @@ pageNum: 1, pageSize: 10 }, + alarmCountQuery:{ + equipId: null + }, equipList: [], tabList: [{ name: '全部', @@ -132,7 +135,8 @@ // }, methods: { getAlarmCount() { - getAlarmCount().then((res) => { + this.alarmCountQuery.equipId = this.equipId; + getAlarmCount(this.alarmCountQuery).then((res) => { //报警总数 this.tabList[0].badge.value = res.allCount; //未处理数量 @@ -153,6 +157,7 @@ this.show = false; this.alarmList = []; this.getAlarmList(); + this.getAlarmCount(); }, tabListClick(item) { this.finished = true;