|
|
|
|
@ -2,6 +2,8 @@ import { Component, OnInit } from '@angular/core';
|
|
|
|
|
import { TransactionLogService } from '../shared/services/transaction-log.service';
|
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
|
|
|
import { ExcelExportService } from '../shared/services/excel-export.service';
|
|
|
|
|
import { TRANSACTION_LOGS_FILE_NAME } from '../utils/app.constants';
|
|
|
|
|
|
|
|
|
|
interface TransactionLog {
|
|
|
|
|
logId: number;
|
|
|
|
|
@ -31,7 +33,10 @@ export class TransactionLogsComponent implements OnInit {
|
|
|
|
|
isLoading = false;
|
|
|
|
|
errorMessage: string = '';
|
|
|
|
|
|
|
|
|
|
constructor(private transactionLogService: TransactionLogService) {}
|
|
|
|
|
constructor(
|
|
|
|
|
private transactionLogService: TransactionLogService,
|
|
|
|
|
private excelExportService: ExcelExportService
|
|
|
|
|
) {}
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void {
|
|
|
|
|
this.loadLogs();
|
|
|
|
|
@ -53,4 +58,8 @@ export class TransactionLogsComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
exportDataInExcel(){
|
|
|
|
|
this.excelExportService.exportExcel(this.logs, TRANSACTION_LOGS_FILE_NAME)
|
|
|
|
|
}
|
|
|
|
|
}
|