From 7014df603e9e53bfcf01d624be2f5b7603068636 Mon Sep 17 00:00:00 2001 From: Shikha Mishra Date: Thu, 27 Aug 2020 18:57:23 +0530 Subject: [PATCH] Improve placeholder name while changing passowrd, Clear preavious data while selecting class from drop-down in student attendence, exam schedule, marks, students, routine, time table,global payment, progress card report and id card report and Student data was not showing at some times issue solved --- src/pages/Academic/routine.vue | 1 + src/pages/Account/globalPayment.vue | 2 +- src/pages/Administrator/resetPassword.vue | 40 +++++++++++++++--------------- src/pages/Attendence/studentAttendence.vue | 1 + src/pages/Dashboard/LiveOnlineClass.vue | 7 +++++- src/pages/Exam/examSchedule.vue | 8 +++++- src/pages/Mark/mark.vue | 1 + src/pages/Report/idCard.vue | 1 + src/pages/Report/progressCardReport.vue | 6 ++++- src/pages/Students/students.vue | 10 +++++--- src/pages/TimeTable/timeTable.vue | 1 + 11 files changed, 51 insertions(+), 27 deletions(-) diff --git a/src/pages/Academic/routine.vue b/src/pages/Academic/routine.vue index 6302ba7..ad67de1 100644 --- a/src/pages/Academic/routine.vue +++ b/src/pages/Academic/routine.vue @@ -853,6 +853,7 @@ export default { getSections(_id) { var token = this.$store.state.token; this.showLoader = true; + this.routineList = []; http() .get( "/getSectionsList", diff --git a/src/pages/Account/globalPayment.vue b/src/pages/Account/globalPayment.vue index 855721d..53cd409 100644 --- a/src/pages/Account/globalPayment.vue +++ b/src/pages/Account/globalPayment.vue @@ -54,7 +54,6 @@ v-model="selectStudents.selectId" item-text="name" item-value="_id" - :rules="studentRules" required > @@ -333,6 +332,7 @@ export default { getSection() { var token = this.$store.state.token; this.showLoader = true; + this.studentInvoiceData = []; http() .get( "/getSectionsList", diff --git a/src/pages/Administrator/resetPassword.vue b/src/pages/Administrator/resetPassword.vue index 649c767..427fa34 100644 --- a/src/pages/Administrator/resetPassword.vue +++ b/src/pages/Administrator/resetPassword.vue @@ -28,7 +28,7 @@ item-text="email" item-value="email" v-model="resetPassword.email" - > --> + >--> @@ -115,16 +115,16 @@ export default { text: "Password Changed", newPassword: "", oldPassword: "", - userRule: [v => !!v || "User is required"], - userNameRule: [v => !!v || "User Name is required"], - oldPasswordRule: [v => !!v || "Old Password is required"], - newPasswordRule: [v => !!v || "New Password is required"], - rePasswordRule: [v => !!v || "Re-Password is required"] + userRule: [(v) => !!v || "User is required"], + userNameRule: [(v) => !!v || "User Name is required"], + oldPasswordRule: [(v) => !!v || "Old Password is required"], + newPasswordRule: [(v) => !!v || "New Password is required"], + rePasswordRule: [(v) => !!v || "Re-Password is required"], }; }, mounted() { this.token = this.$store.state.token; - if (this.$store.state.role != "PARENT"){ + if (this.$store.state.role != "PARENT") { this.getRole(); } }, @@ -138,16 +138,16 @@ export default { this.resetPassword.newPassword = this.resetPassword.newPassword; http() .put("/change-password", this.resetPassword, { - headers: { Authorization: "Bearer " + this.token } + headers: { Authorization: "Bearer " + this.token }, }) - .then(response => { + .then((response) => { this.loading = false; this.snackbar = true; this.text = "Successfully Restet password !!"; this.color = "green"; this.clear(); }) - .catch(error => { + .catch((error) => { // console.log("err====>",err); this.snackbar = true; this.text = "User Not Found or Incorrect currentPassword"; @@ -160,9 +160,9 @@ export default { this.showLoader = true; http() .get("/getRolesList", { - headers: { Authorization: "Bearer " + this.token } + headers: { Authorization: "Bearer " + this.token }, }) - .then(response => { + .then((response) => { for (let i = 0; i < response.data.data.length; i++) { if ( response.data.data[i].name != "SUPERADMIN" && @@ -173,7 +173,7 @@ export default { } } }) - .catch(error => { + .catch((error) => { this.showLoader = false; if (error.response.status === 401) { this.$router.replace({ path: "/" }); @@ -190,14 +190,14 @@ export default { http() .get("/getUserWithRole", { params: { - name: roles + name: roles, }, - headers: { Authorization: "Bearer " + this.token } + headers: { Authorization: "Bearer " + this.token }, }) - .then(response => { + .then((response) => { this.getUsersName = response.data.data; }) - .catch(error => { + .catch((error) => { this.showLoader = false; if (error.response.status === 401) { this.$router.replace({ path: "/" }); @@ -205,8 +205,8 @@ export default { this.$store.dispatch("Id", null); } }); - } - } + }, + }, };