From 08a553f12102f39dd2b643d63d59c07850de03aa Mon Sep 17 00:00:00 2001 From: Rachitha Ramappa Date: Tue, 27 Oct 2020 13:57:29 +0530 Subject: Export audit table issue fix Change-Id: I7aef3789e36652e4fb92264bbc59c5167b7cfa57 Issue-ID: VID-905 Signed-off-by: rachitha.ramappa@att.com --- .../shared/components/auditInfoModal/auditInfoModal.component.html | 3 ++- .../app/shared/components/auditInfoModal/auditInfoModal.component.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'vid-webpack-master/src/app/shared/components/auditInfoModal') diff --git a/vid-webpack-master/src/app/shared/components/auditInfoModal/auditInfoModal.component.html b/vid-webpack-master/src/app/shared/components/auditInfoModal/auditInfoModal.component.html index 1fc1f4d82..874f13a01 100644 --- a/vid-webpack-master/src/app/shared/components/auditInfoModal/auditInfoModal.component.html +++ b/vid-webpack-master/src/app/shared/components/auditInfoModal/auditInfoModal.component.html @@ -71,7 +71,8 @@ - + + diff --git a/vid-webpack-master/src/app/shared/components/auditInfoModal/auditInfoModal.component.ts b/vid-webpack-master/src/app/shared/components/auditInfoModal/auditInfoModal.component.ts index bd2d77d99..6afc8d92e 100644 --- a/vid-webpack-master/src/app/shared/components/auditInfoModal/auditInfoModal.component.ts +++ b/vid-webpack-master/src/app/shared/components/auditInfoModal/auditInfoModal.component.ts @@ -162,7 +162,10 @@ export class AuditInfoModalComponent { +currentTime.getHours()+":"+currentTime.getMinutes()+":"+currentTime.getSeconds() let fileName = this.spacetoUnderscore.transform(this.serviceInstanceName)+'_'+timestamp; let msoStatusTableElement = document.getElementById('service-instantiation-audit-info-mso'); - const ws: XLSX.WorkSheet = XLSX.utils.table_to_sheet(msoStatusTableElement); + const ws: XLSX.WorkSheet = XLSX.utils.table_to_sheet(msoStatusTableElement, { + cellDates: true, + raw: true + }); const wb: XLSX.WorkBook = XLSX.utils.book_new(); XLSX.utils.book_append_sheet(wb, ws, 'Sheet1'); /* save to file */ -- cgit 1.2.3-korg