Commit fc9854ffb884eae820f8f20f45a754015c73c039
1 parent
ba110dd210
Exists in
master
and in
2 other branches
Show list of added data after adding the exam schedule
Showing
1 changed file
with
25 additions
and
2 deletions
Show diff stats
src/pages/Exam/examSchedule.vue
... | ... | @@ -869,9 +869,32 @@ export default { |
869 | 869 | this.snackbar = true; |
870 | 870 | this.text = response.data.message; |
871 | 871 | this.color = "green"; |
872 | + http() | |
873 | + .get("/getSchedulesList", { | |
874 | + params: { | |
875 | + classId: this.addSchedule.classId, | |
876 | + sectionId: this.addSchedule.sectionId, | |
877 | + }, | |
878 | + headers: { Authorization: "Bearer " + this.token }, | |
879 | + }) | |
880 | + .then((response) => { | |
881 | + this.ScheduleData = response.data.data; | |
882 | + this.showLoader = false; | |
883 | + }) | |
884 | + .catch((error) => { | |
885 | + this.showLoader = false; | |
886 | + this.loadingSearch = false; | |
887 | + this.snackbar = true; | |
888 | + this.color = "error"; | |
889 | + this.text = error.response.data.message; | |
890 | + if (error.response.status === 401) { | |
891 | + this.$router.replace({ path: "/" }); | |
892 | + this.$store.dispatch("setToken", null); | |
893 | + this.$store.dispatch("Id", null); | |
894 | + } | |
895 | + }); | |
872 | 896 | this.addExamScheduleDialog = false; |
873 | - this.getSchedulesList(); | |
874 | - this.clear(); | |
897 | + // this.clear(); | |
875 | 898 | }) |
876 | 899 | .catch((error) => { |
877 | 900 | this.snackbar = true; | ... | ... |