APP:巡检任务数接口添加设备id查询条件
This commit is contained in:
parent
05c14ae118
commit
84df762ddd
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user