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);
}
});
- }
- }
+ },
+ },
};