From 7e950068ded887d9a8336fa3c0e85539b91025a8 Mon Sep 17 00:00:00 2001 From: Avisha Sodhi <38086281+SodhiA1@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:55:56 -0700 Subject: [PATCH 1/2] Updates fro FSA report --- .../data-collection/ReportSection.vue | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/frontend/src/components/data-collection/ReportSection.vue b/frontend/src/components/data-collection/ReportSection.vue index ae9e9bd1..ee83573f 100644 --- a/frontend/src/components/data-collection/ReportSection.vue +++ b/frontend/src/components/data-collection/ReportSection.vue @@ -134,7 +134,6 @@ export default { headers: [], collectionID: this.$route.params.collectionID, displayAllStudents: false, - allStudentsView: ['FSA Registration Report'], filterSearchParams: { notSdcSchoolCollectionStudentStatusCode: 'ERROR,DELETED', moreFilters: {}, @@ -152,13 +151,7 @@ export default { watch: { selectedReport() { this.displayAllStudents = false; - if(this.allStudentsView.includes(this.selectedReport.label)) { - this.reportData = null; - this.loadHeaders(this.selectedReport.label); - if(this.displayAllStudents) { - this.loadStudents(); - } - } else if (this.selectedReport.reportID === 'FUNDING_POLICY_REPORT_INDY' || this.selectedReport.reportID === 'FUNDING_POLICY_REPORT_DISTRICT' || this.selectedReport.reportID === 'INCLUSIVE_EDUCATION_VARIANCE') { + if (this.selectedReport.reportID === 'FUNDING_POLICY_REPORT_INDY' || this.selectedReport.reportID === 'FUNDING_POLICY_REPORT_DISTRICT' || this.selectedReport.reportID === 'INCLUSIVE_EDUCATION_VARIANCE') { this.displayAllStudents = false; this.reportData = null; } else if (this.selectedReport.reportID === 'ENROLED_FUNDING_REPORT') { @@ -219,21 +212,6 @@ export default { this.isLoading = false; }); }, - loadHeaders(label) { - if(label === 'FSA Registration Report') { - if(this.collectionObject?.collectionTypeCode === 'FEBRUARY') { - this.config = MIN_REPORTS.fsaReportHeadersforFeb; - this.filterSearchParams.grade = 'FSA_FEB_GRADE'; - this.displayAllStudents = true; - } else if(this.collectionObject?.collectionTypeCode === 'SEPTEMBER') { - this.config = MIN_REPORTS.fsaReportHeadersforSept; - this.filterSearchParams.grade = 'FSA_SEP_GRADE'; - this.displayAllStudents = true; - } else { - this.displayAllStudents = false; - } - } - }, loadNext() { if (this.canLoadNext) { this.pageNumber += 1; From c7a5d3e59162e1a91ff9da74748e664947b9e652 Mon Sep 17 00:00:00 2001 From: Avisha Sodhi <38086281+SodhiA1@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:57:57 -0700 Subject: [PATCH 2/2] Update ReportSection.vue --- frontend/src/components/data-collection/ReportSection.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/components/data-collection/ReportSection.vue b/frontend/src/components/data-collection/ReportSection.vue index ee83573f..a51c161e 100644 --- a/frontend/src/components/data-collection/ReportSection.vue +++ b/frontend/src/components/data-collection/ReportSection.vue @@ -103,7 +103,6 @@ import ApiService from '@/common/apiService'; import alertMixin from '@/mixins/alertMixin'; import Spinner from '@/components/common/Spinner.vue'; -import {MIN_REPORTS} from '@/utils/sdc/collectionTableConfiguration.js'; import CustomTableSlice from '@/components/common/CustomTableSlice.vue'; import {Routes} from '@/utils/constants'; import {isEmpty, omitBy} from 'lodash';