199
199
</v-row >
200
200
</div >
201
201
<div v-else-if =" hasRequiredPermission('GRAD_DIS_UPLOAD')" >
202
- <v-row v-if =" isBetweenSchoolSummerPeriod " >
202
+ <v-row v-if =" isBeforeSummerSchoolPeriod " >
203
203
<v-col cols =" 12" >
204
204
<v-alert
205
205
density =" compact"
206
206
type =" info"
207
207
variant =" tonal"
208
208
>
209
- Uploads are unavailable, as the School Year Reporting Period is complete. The Summer Reporting Period will open in August .
209
+ Uploads are unavailable, as the School Year Reporting Period is complete. The Summer Reporting Period will open on {{ summerPeriodStart }} .
210
210
</v-alert >
211
211
</v-col >
212
212
</v-row >
241
241
color =" #003366"
242
242
text =" Upload Graduation Data Files"
243
243
:loading =" isLoadingFiles"
244
- :disabled =" isBetweenSchoolSummerPeriod || isBetweenSummerSchoolPeriod"
244
+ :disabled =" isBeforeSummerSchoolPeriod || isBetweenSummerSchoolPeriod"
245
245
@click =" handleFileImport"
246
246
/>
247
247
</v-col >
371
371
<v-tooltip text =" Files processed. Error report available." >
372
372
<template #activator =" { props: tooltipProps } " >
373
373
<v-icon
374
- icon =" mdi-check-circle-outline"
375
- v-bind =" tooltipProps"
376
- color =" success"
377
- />
374
+ icon =" mdi-check-circle-outline"
375
+ v-bind =" tooltipProps"
376
+ color =" success"
377
+ />
378
378
</template >
379
379
</v-tooltip >
380
380
</span >
381
381
<span v-else-if =" isFilesetInProgress(props.item)" >
382
382
<v-tooltip text =" Your files are in the processing queue. The number indicates your position. Processing will begin automatically — you don't need to stay on this screen." >
383
383
<template #activator =" { props: tooltipProps } " >
384
384
<v-progress-circular
385
- :width =" 4"
386
- color =" primary"
387
- v-bind =" tooltipProps"
388
- indeterminate
389
- >
390
- <span style =" color : rgb (0 , 51 , 102 );" >{{ props.item.positionInQueue ==='0' ? '' : props.item.positionInQueue }}</span >
391
- </v-progress-circular >
385
+ :width =" 4"
386
+ color =" primary"
387
+ v-bind =" tooltipProps"
388
+ indeterminate
389
+ >
390
+ <span style =" color : rgb (0 , 51 , 102 );" >{{ props.item.positionInQueue ==='0' ? '' : props.item.positionInQueue }}</span >
391
+ </v-progress-circular >
392
+ </template >
393
+ </v-tooltip >
394
+ </span >
395
+ <span v-else >
396
+ <v-tooltip text =" Missing files. Upload missing files to continue processing." >
397
+ <template #activator =" { props: tooltipProps } " >
398
+ <v-icon
399
+ icon =" mdi-clock-alert-outline"
400
+ v-bind =" tooltipProps"
401
+ color =" warning"
402
+ />
392
403
</template >
393
404
</v-tooltip >
394
405
</span >
395
- <span v-else >
396
- <v-tooltip text =" Missing files. Upload missing files to continue processing." >
397
- <template #activator =" { props: tooltipProps } " >
398
- <v-icon
399
- icon =" mdi-clock-alert-outline"
400
- v-bind =" tooltipProps"
401
- color =" warning"
402
- />
403
- </template >
404
- </v-tooltip >
405
- </span >
406
406
</span >
407
407
<span v-else-if =" column.key === 'updateDate'" >
408
408
{{ props.item[column.key] ? props.item[column.key].substring(0,19).replaceAll('-', '/').replaceAll('T', ' ') : '-' }}
518
518
<v-col cols =" 9" >
519
519
<span ><b >{{ file.name }}</b > - {{ file.error }}</span >
520
520
</v-col >
521
- <v-col cols =" 2" class =" d-flex justify-end" >
521
+ <v-col
522
+ cols =" 2"
523
+ class =" d-flex justify-end"
524
+ >
522
525
<ClipboardButton
523
526
id =" copyErrorButton"
524
527
:copy-text =" file.error"
637
640
</v-card-actions >
638
641
</v-card >
639
642
</v-dialog >
640
- <PreviewStudentsDialog ref =" previewDialog" />
643
+ <PreviewStudentsDialog ref =" previewDialog" />
641
644
</template >
642
645
643
646
<script >
@@ -656,6 +659,7 @@ import GradSchoolCodeNameFilter from '../../GradSchoolCodeNameFilter.vue';
656
659
import {LocalDateTime } from ' @js-joda/core' ;
657
660
import ClipboardButton from ' ../../../util/ClipboardButton.vue' ;
658
661
import PreviewStudentsDialog from ' ../../PreviewStudentsDialog.vue' ;
662
+ import {formatDate } from ' ../../../../utils/format' ;
659
663
660
664
export default {
661
665
name: ' GradDistrictUploadDataComponent' ,
@@ -710,8 +714,9 @@ export default {
710
714
yearAfterNext: null ,
711
715
nextYear: null ,
712
716
isSummerPeriod: false ,
713
- isBetweenSchoolSummerPeriod : false ,
717
+ isBeforeSummerSchoolPeriod : false ,
714
718
isBetweenSummerSchoolPeriod: false ,
719
+ summerPeriodStart: ' ' ,
715
720
pageNumber: 1 ,
716
721
pageSize: 20 ,
717
722
isLoading: false ,
@@ -850,6 +855,7 @@ export default {
850
855
this.successfulUploadCountXLS = 0;
851
856
this.$refs.uploaderXLS.click();
852
857
},
858
+ formatDate,
853
859
isFilesetInProgress(fileset){
854
860
return fileset.demFileName != null && fileset.crsFileName != null && fileset.xamFileName != null;
855
861
},
@@ -873,11 +879,12 @@ export default {
873
879
const schoolPeriodStart = LocalDateTime.parse(this.collectionObject.schYrStart);
874
880
const schoolPeriodEnd = LocalDateTime.parse(this.collectionObject.schYrEnd);
875
881
882
+ this.summerPeriodStart = formatDate(summerPeriodStart.toString().substring(0, 10),'uuuu-MM-dd', 'uuuu/MM/dd');
876
883
const today = LocalDateTime.now();
877
884
878
885
this.isSummerPeriod = today.isAfter(summerPeriodStart) && today.isBefore(summerPeriodEnd);
879
886
this.isBetweenSummerSchoolPeriod = (today.isBefore(schoolPeriodStart) && today.isBefore(summerPeriodStart)) || (today.isAfter(summerPeriodEnd) && today.isAfter(schoolPeriodEnd));
880
- this.isBetweenSchoolSummerPeriod = today.isAfter(schoolPeriodEnd) && today.isBefore(summerPeriodStart);
887
+ this.isBeforeSummerSchoolPeriod = today.isAfter(schoolPeriodEnd) && today.isBefore(summerPeriodStart);
881
888
},
882
889
async importFileXLS() {
883
890
if(this.uploadFileValueXLS.length > 0) {
0 commit comments