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({
|
return request({
|
||||||
url: "/alarm/record/alarmCount",
|
url: "/alarm/record/alarmCount",
|
||||||
method: "get"
|
method: "get",
|
||||||
|
params: query,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user