diff --git a/src/views/Exercise/Reports/Agency.vue b/src/views/Exercise/Reports/Agency.vue index ac94e45fd..1bd5715ad 100644 --- a/src/views/Exercise/Reports/Agency.vue +++ b/src/views/Exercise/Reports/Agency.vue @@ -815,6 +815,19 @@ export default { return reportData; }, + gatherJCIOReportData() { + const reportData = []; + + // get headers + reportData.push(this.report.headers.map(header => header.title)); + + // get rows + this.jcioRows.forEach((row) => { + reportData.push(this.report.headers.map(header => row[header.ref])); + }); + + return reportData; + }, exportData() { const title = 'Agency Report'; let data = null; @@ -828,6 +841,8 @@ export default { data = this.gatherBSBReportData(); } else if (this.activeTab === 'sra') { data = this.gatherSRAReportData(); + } else if (this.activeTab === 'jcio') { + data = this.gatherJCIOReportData(); } else { data = this.gatherReportData(); }