Skip to content

Commit

Permalink
filter on JCIO download report
Browse files Browse the repository at this point in the history
  • Loading branch information
KoWeiJAC committed Apr 15, 2024
1 parent e1f3f57 commit f3608a2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/views/Exercise/Reports/Agency.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
}
Expand Down

0 comments on commit f3608a2

Please sign in to comment.