操作日志、消息警示提醒

This commit is contained in:
liweijin
2018-12-14 17:57:01 +08:00
parent 05cb9674e7
commit 29a07c4950
7 changed files with 141 additions and 53 deletions
@@ -34,6 +34,7 @@ export class OperationLogsComponent implements OnInit {
'UPDATE':'修改',
'DELETE':'删除',
};
dateRange = [];
constructor(
private http:HttpClientService,
private router:Router,
@@ -48,16 +49,23 @@ export class OperationLogsComponent implements OnInit {
})
this.queryTable();
}
onChange(result: Date): void {
this.search.date_start=new Date(result[0]).getTime();
this.search.date_end=new Date(result[1]).getTime();
}
//重置,重置搜索条件
reset(){
this.search.page_index=1;
this.search.page_size=10;
this.search.keyword='';
this.search.date_start='';
this.search.date_end='';
this.queryTable();
}
//获取列表
queryTable():void{
this.statusParamsTable.status=1;
this.tableData=[];
this.http.get('/sysapi/oplog/list',this.search).subscribe((json)=>{
if(json.is_success){
this.tableData=json.body.recordList;