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({
url: "/alarm/record/alarmCount",
method: "get"
method: "get",
params: query,
});
}

View File

@ -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;