Commit 575d7949244031c6103503f5875dd61b51481cc0

Authored by Shikha Mishra
1 parent d9bc992f03
Exists in master and in 1 other branch ui-design

show only students whose status is true in course attendance screen and fix issu…

…e of same student detail while viewing
src/pages/Attendence/courseAttendance.vue
... ... @@ -175,7 +175,7 @@ export default {
175 175 },
176 176 })
177 177 .then((response) => {
178   - this.studentsData = response.data.data;
  178 + this.studentsData = response.data.data.filter((item) => item.status);
179 179 this.showLoader = false;
180 180 var attendance = "";
181 181 for (let i = 0; i < this.studentsData.length; i++) {
... ...
src/pages/Attendence/viewCourseAttendance.vue
... ... @@ -174,7 +174,7 @@ export default {
174 174 },
175 175 getStudentAttendence() {
176 176 this.showLoader = true;
177   - var studentId = localStorage.getItem("parentStudentId");
  177 + var studentId = this.$route.params.id || localStorage.getItem("parentStudentId");
178 178 http()
179 179 .get(
180 180 "/studentAttendance",
... ... @@ -197,7 +197,7 @@ export default {
197 197 });
198 198 },
199 199 getStudentData() {
200   - var particularStudentId = localStorage.getItem("parentStudentId");
  200 + var particularStudentId = this.$route.params.id || localStorage.getItem("parentStudentId");
201 201 http()
202 202 .get(
203 203 "/getParticularStudentDetail",
... ... @@ -219,7 +219,7 @@ export default {
219 219 });
220 220 },
221 221 getCourseAttendance(classId) {
222   - var particularCourseStudentId = localStorage.getItem("parentStudentId");
  222 + var particularCourseStudentId = this.$route.params.id || localStorage.getItem("parentStudentId");
223 223 http()
224 224 .get(
225 225 "/getStudentCourseAttendance",
... ...