Commit 4fac573e authored by wangqinghua's avatar wangqinghua

log

parent c37fbafe
...@@ -45,10 +45,10 @@ export class AlarmLogComponent implements OnInit { ...@@ -45,10 +45,10 @@ export class AlarmLogComponent implements OnInit {
//条件 //条件
timeType; timeType;
obj = { obj = {
time_from:'', time_from:<any>'',
time_till:'', time_till:<any>'',
alertGroupId:'', alertGroupId:null,
mediatypeids:'', mediatypeids:null,
hostids:'', hostids:'',
}; };
...@@ -72,10 +72,10 @@ export class AlarmLogComponent implements OnInit { ...@@ -72,10 +72,10 @@ export class AlarmLogComponent implements OnInit {
const data = { const data = {
"eventPage":this.pageNum, "eventPage":this.pageNum,
"pageRecords":this.pageCount, "pageRecords":this.pageCount,
"alertGroupId":obj.alertGroupId, "alertGroupId":null,
"time_from":obj.time_from, "time_from":obj.time_from,
"time_till":obj.time_till, "time_till":obj.time_till,
"mediatypeids":[obj.mediatypeids], "mediatypeids":null,
"hostids":null "hostids":null
}; };
this.alarmSer.alertFind(data).subscribe( this.alarmSer.alertFind(data).subscribe(
...@@ -155,9 +155,8 @@ export class AlarmLogComponent implements OnInit { ...@@ -155,9 +155,8 @@ export class AlarmLogComponent implements OnInit {
//查询 //查询
search(){ search(){
this.obj.time_from = this.datePipe.transform(this.obj.time_from,'ms') +''; this.obj.time_from = new Date(this.obj.time_from).getTime();
this.obj.time_till = this.datePipe.transform(this.obj.time_till,'ms') +''; this.obj.time_till = new Date(this.obj.time_till).getTime();
console.log(this.obj);
this.getList(this.obj); this.getList(this.obj);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment