APP:巡检任务数接口添加设备id查询条件

This commit is contained in:
xusd 2024-06-12 17:43:22 +08:00
parent 05c14ae118
commit 84df762ddd
2 changed files with 9 additions and 3 deletions

View File

@ -10,10 +10,11 @@ export function listRecord(query) {
} }
// 报警处理数量 // 报警处理数量
export function getAlarmCount() { export function getAlarmCount(query) {
return request({ return request({
url: "/alarm/record/alarmCount", url: "/alarm/record/alarmCount",
method: "get" method: "get",
params: query,
}); });
} }

View File

@ -92,6 +92,9 @@
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 10
}, },
alarmCountQuery:{
equipId: null
},
equipList: [], equipList: [],
tabList: [{ tabList: [{
name: '全部', name: '全部',
@ -132,7 +135,8 @@
// }, // },
methods: { methods: {
getAlarmCount() { getAlarmCount() {
getAlarmCount().then((res) => { this.alarmCountQuery.equipId = this.equipId;
getAlarmCount(this.alarmCountQuery).then((res) => {
// //
this.tabList[0].badge.value = res.allCount; this.tabList[0].badge.value = res.allCount;
// //
@ -153,6 +157,7 @@
this.show = false; this.show = false;
this.alarmList = []; this.alarmList = [];
this.getAlarmList(); this.getAlarmList();
this.getAlarmCount();
}, },
tabListClick(item) { tabListClick(item) {
this.finished = true; this.finished = true;