Skip to content
audit.component.ts 811 B
Newer Older
wangqinghua's avatar
wangqinghua committed
import { Component, OnInit } from '@angular/core';
wangqinghua's avatar
wangqinghua committed
import {SystemService} from '../system.service';
import {pageSize} from '../../app.constants';
wangqinghua's avatar
wangqinghua committed

@Component({
  selector: 'jhi-audit',
  templateUrl: './audit.component.html',
  styles: []
})
export class AuditComponent implements OnInit {
  dataSet:any[];
  date = '1';
wangqinghua's avatar
wangqinghua committed
  pageSize = pageSize;
  pageNumber = 1;

  constructor(private systemSer:SystemService) { }
wangqinghua's avatar
wangqinghua committed

  ngOnInit() {
wangqinghua's avatar
wangqinghua committed
      this.getList();
  }

  getList(){
        const data = {
            pageSize:this.pageSize,
            pageNumber:this.pageNumber,
            endDate:"",
            startDate:"",
            name:"",
            type:""
        }
        this.systemSer.logList(data).subscribe(
            (res)=>{
                this.dataSet = res.data;
            }
        )
wangqinghua's avatar
wangqinghua committed
  }

}