操作日志、消息警示提醒
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user