Commit 4fac573e authored by wangqinghua's avatar wangqinghua

log

parent c37fbafe
......@@ -45,10 +45,10 @@ export class AlarmLogComponent implements OnInit {
//条件
timeType;
obj = {
time_from:'',
time_till:'',
alertGroupId:'',
mediatypeids:'',
time_from:<any>'',
time_till:<any>'',
alertGroupId:null,
mediatypeids:null,
hostids:'',
};
......@@ -72,10 +72,10 @@ export class AlarmLogComponent implements OnInit {
const data = {
"eventPage":this.pageNum,
"pageRecords":this.pageCount,
"alertGroupId":obj.alertGroupId,
"alertGroupId":null,
"time_from":obj.time_from,
"time_till":obj.time_till,
"mediatypeids":[obj.mediatypeids],
"mediatypeids":null,
"hostids":null
};
this.alarmSer.alertFind(data).subscribe(
......@@ -155,9 +155,8 @@ export class AlarmLogComponent implements OnInit {
//查询
search(){
this.obj.time_from = this.datePipe.transform(this.obj.time_from,'ms') +'';
this.obj.time_till = this.datePipe.transform(this.obj.time_till,'ms') +'';
console.log(this.obj);
this.obj.time_from = new Date(this.obj.time_from).getTime();
this.obj.time_till = new Date(this.obj.time_till).getTime();
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