-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d5602d
commit ade1b32
Showing
17 changed files
with
207 additions
and
148 deletions.
There are no files selected for viewing
83 changes: 83 additions & 0 deletions
83
frontend/src/components/Assessments/AssessmentRequirements.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<template> | ||
<div> | ||
<h3 class="ml-3 mt-5">Assessment Requirements</h3> | ||
<DisplayTable | ||
v-if="assessmentRequirements" | ||
v-bind:items="assessmentRequirements" | ||
v-bind:fields="assessmentRequirementsFields" | ||
id="assessmentCode" | ||
showFilter="true" | ||
> | ||
</DisplayTable> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import AssessmentService from "@/services/AssessmentService.js"; | ||
import { useSnackbarStore } from "@/store/modules/snackbar"; | ||
import DisplayTable from "@/components/DisplayTable.vue"; | ||
export default { | ||
name: "AssessmentRequirements", | ||
components: { | ||
DisplayTable: DisplayTable, | ||
}, | ||
data() { | ||
return { | ||
snackbarStore: useSnackbarStore(), | ||
assessmentRequirements: [], | ||
assessmentRequirementsFields: [ | ||
{ | ||
key: "assessmentCode", | ||
title: "Assessment Code", | ||
sortable: true, | ||
sortDirection: "desc", | ||
}, | ||
{ | ||
key: "assessmentName", | ||
title: "Assessment Name", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "ruleCode", | ||
title: "Rule#", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "traxReqNumber", | ||
title: "Transcript Req #", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "requirementName", | ||
title: "Requirement Name", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "requirementProgram", | ||
title: "Requirement Program", | ||
sortable: true, | ||
}, | ||
], | ||
}; | ||
}, | ||
created() { | ||
this.getAllAssessmentReqs(); | ||
}, | ||
methods: { | ||
getAllAssessmentReqs() { | ||
AssessmentService.getAllAssesmentRequirements() | ||
.then((response) => { | ||
this.assessmentRequirements = response.data; | ||
}) | ||
.catch((error) => { | ||
// eslint-disable-next-line | ||
console.error("API error:", error); | ||
this.snackbarStore.showSnackbar(error.message, "error", 5000); | ||
}); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<template> | ||
<div> | ||
<h3 class="ml-3 mt-5">Assessments</h3> | ||
<DisplayTable | ||
v-if="assessments" | ||
v-bind:items="assessments" | ||
v-bind:fields="assessmentFields" | ||
id="assessmentCode" | ||
showFilter="true" | ||
> | ||
</DisplayTable> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import AssessmentService from "@/services/AssessmentService.js"; | ||
import { useSnackbarStore } from "@/store/modules/snackbar"; | ||
import DisplayTable from "@/components/DisplayTable.vue"; | ||
export default { | ||
name: "Assessments", | ||
components: { | ||
DisplayTable: DisplayTable, | ||
}, | ||
data() { | ||
return { | ||
snackbarStore: useSnackbarStore(), | ||
assessments: [], | ||
assessmentFields: [ | ||
{ | ||
key: "assessmentCode", | ||
title: "Assessment Code", | ||
sortable: true, | ||
sortDirection: "desc", | ||
class: "w-15", | ||
}, | ||
{ | ||
key: "assessmentName", | ||
title: "Assessment Name", | ||
sortable: true, | ||
class: "w-40", | ||
}, | ||
{ | ||
key: "language", | ||
title: "Language", | ||
sortable: true, | ||
sortDirection: "desc", | ||
class: "w-5 text-center", | ||
}, | ||
{ | ||
key: "startDate", | ||
title: "Start Date", | ||
sortable: true, | ||
class: "w-20", | ||
}, | ||
{ | ||
key: "endDate", | ||
title: "End Date", | ||
sortable: true, | ||
class: "w-20", | ||
}, | ||
], | ||
}; | ||
}, | ||
created() { | ||
this.getAllAssessment(); | ||
}, | ||
methods: { | ||
getAllAssessment() { | ||
AssessmentService.getAllAssesments() | ||
.then((response) => { | ||
this.assessments = response.data; | ||
}) | ||
.catch((error) => { | ||
// eslint-disable-next-line | ||
console.error("API error:", error); | ||
this.snackbarStore.showSnackbar(error.message, "error", 5000); | ||
}); | ||
}, | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
frontend/src/components/Codes/ProgramCertificateTranscripts.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.