|
@@ -228,6 +228,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
popupShowHandler(warning){
|
|
popupShowHandler(warning){
|
|
|
this.current = warning;
|
|
this.current = warning;
|
|
|
|
|
+ const params = {
|
|
|
|
|
+ record_ids: warning.id,
|
|
|
|
|
+ };
|
|
|
|
|
+ this.readHandler(params)
|
|
|
this.popupShow = true;
|
|
this.popupShow = true;
|
|
|
},
|
|
},
|
|
|
changeCalendar(e){
|
|
changeCalendar(e){
|
|
@@ -266,6 +270,18 @@ export default {
|
|
|
this.getWarningManualList();
|
|
this.getWarningManualList();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ // 已读
|
|
|
|
|
+ async readHandler(params){
|
|
|
|
|
+ await this.$myRequest({
|
|
|
|
|
+ url:'/api/api_gateway?method=device.env_sec_alert.update_env_sec_alert_record',
|
|
|
|
|
+ method:'POST',
|
|
|
|
|
+ data: params,
|
|
|
|
|
+ })
|
|
|
|
|
+ this.page = 1;
|
|
|
|
|
+ if(this.activeTab == 0){
|
|
|
|
|
+ this.getWarningList();
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
formatTime(time){
|
|
formatTime(time){
|
|
|
if(!time){
|
|
if(!time){
|
|
|
return '';
|
|
return '';
|
|
@@ -416,7 +432,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 回到顶部
|
|
// 回到顶部
|
|
|
scrollToTop() {
|
|
scrollToTop() {
|
|
|
- console.log('222222222')
|
|
|
|
|
this.listScrollTop = 0;
|
|
this.listScrollTop = 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|