diff --git a/src/pages/Class/addclass.vue b/src/pages/Class/addclass.vue index bea3f45..f31c76b 100644 --- a/src/pages/Class/addclass.vue +++ b/src/pages/Class/addclass.vue @@ -377,7 +377,7 @@ export default { .then(response => { // console.log("deleteUers",deleteStudent) if ((this.snackbar = true)) { - this.text = "Successfully delete Existing User"; + this.text = "Successfully delete Existing Class"; } this.getClassList(); }) @@ -414,18 +414,20 @@ export default { classNum: this.addclasses.classNum }; console.log(addClass); + this.loading = true; http() .post("/createClass", addClass) .then(response => { this.getClassList(); if ((this.snackbar = true)) { - this.text = "New user added successfully"; + this.text = "New class added successfully"; } - this.clear(); + this.loading = false; }) .catch(error => { // console.log(error); + this.loading = false; if ((this.snackbar = true)) { this.text = error.response.data.message; } @@ -447,7 +449,7 @@ export default { .then(response => { console.log("editClass", editClass); if ((this.snackbar = true)) { - this.text = "Successfully Edit Existing User"; + this.text = "Successfully Edit Existing Class"; } this.getClassList(); }) diff --git a/src/pages/News/news.vue b/src/pages/News/news.vue index 6055a92..62a4766 100644 --- a/src/pages/News/news.vue +++ b/src/pages/News/news.vue @@ -84,7 +84,7 @@ - @@ -93,7 +93,7 @@ newsImage - + --> - + + + + News + + @@ -278,9 +280,9 @@ {{ props.index}} - - - + + newsImage + {{ props.item.title}} @@ -465,7 +467,7 @@ export default { descriptionRules: [v => !!v || " Description is required"], headers: [ { - align: "center", + align: "justify-center", text: "No", sortable: false, value: "No" @@ -530,7 +532,7 @@ export default { // console.log("getSectionsList=====>", this.addSection); }) .catch(err => { - // console.log("err====>", err); + console.log("err====>", err); // this.$router.replace({ path: '/' }); }); }, @@ -618,7 +620,7 @@ export default { .then(response => { // console.log("deleteNews",deleteNews) if ((this.snackbar = true)) { - this.text = "Successfully delete Existing User"; + this.text = "Successfully delete Existing News"; } this.getNewsList(); }) @@ -667,7 +669,7 @@ export default { .then(response => { console.log(newsData) if ((this.snackbar = true)) { - this.text = "New user added successfully"; + this.text = "New News added successfully"; } this.getNewsList(); this.loading = false; @@ -686,15 +688,6 @@ export default { this.$refs.form.reset(); }, save() { - // let imageData = new FormData(); - // imageData.append("upload", this.imageFile); - // console.log(imageData); - // let editNews = { - // newsId: this.editedItem._id, - // title: this.editedItem.title, - // description: this.editedItem.description, - // // imageData - // }; let newsData = new FormData(); for( var i = 0; i < this.imageFile.length; i++ ){ let file = this.imageFile[i]; @@ -707,7 +700,7 @@ export default { .then(response => { // console.log("updateNews",updateNews); if ((this.snackbar = true)) { - this.text = "Successfully Edit Existing User"; + this.text = "Successfully Edit Existing News"; } this.getNewsList(); }) diff --git a/src/pages/Notification/notification.vue b/src/pages/Notification/notification.vue index cb4f9fb..0c0c878 100644 --- a/src/pages/Notification/notification.vue +++ b/src/pages/Notification/notification.vue @@ -528,21 +528,24 @@ export default { // imageData }; console.log(create) + this.loading = true; http() .post("/createNotification", create) .then(response => { console.log(create) if ((this.snackbar = true)) { - this.text = "New user added successfully"; + this.text = "New Notification added successfully"; } this.getNotifications(); this.clear(); + this.loading = false; }) .catch(error => { // console.log(error); if ((this.snackbar = true)) { this.text = error.response.data.message; } + this.loading = false; }); } }, diff --git a/src/pages/Section/section.vue b/src/pages/Section/section.vue index 986571d..6e824b0 100644 --- a/src/pages/Section/section.vue +++ b/src/pages/Section/section.vue @@ -140,7 +140,7 @@

-
Class Name:
+
Class Name:
{{ editedItem.classData.classNum }}
@@ -148,12 +148,20 @@
-
Section Name:
+
Section Name:
{{ editedItem.name }}
+ + +
Session:
+
+ +
{{ editedItem.session }}
+
+
@@ -182,6 +190,8 @@ {{ props.index}} {{ props.item.classData.classNum}} {{ props.item.name}} + {{ props.item.session}} + { // console.log("deleteUers",deleteStudent) if ((this.snackbar = true)) { - this.text = "Successfully delete Existing User"; + this.text = "Successfully delete Existing Section"; } this.getSectionList(); }) @@ -471,22 +482,25 @@ export default { session:this.add.session }; console.log(addSection) + this.loading = true; http() .post("/createSection", addSection) .then(response => { console.log(addSection) this.getSectionList(); if (this.snackbar = true) { - this.text = "New user added successfully"; + this.text = "New Section added successfully"; } this.clear(); + this.loading = false; }) .catch(error => { // console.log(error); if (this.snackbar = true) { this.text = error.response.data.message; } + this.loading = false; }); } }, @@ -509,7 +523,7 @@ export default { .then(response => { // console.log("editStudent",editStudent); if ((this.snackbar = true)) { - this.text = "Successfully Edit Existing User"; + this.text = "Successfully Edit Existing Section"; } this.getSectionList(); // this.showLoader = false; diff --git a/src/pages/Students/students.vue b/src/pages/Students/students.vue index 3976984..37820c3 100644 --- a/src/pages/Students/students.vue +++ b/src/pages/Students/students.vue @@ -1591,7 +1591,7 @@ export default { .then(response => { // console.log("deleteUers",deleteStudent) if ((this.snackbar = true)) { - this.text = "Successfully delete Existing User"; + this.text = "Successfully delete Existing Student"; } this.getStudentList(); }) @@ -1653,21 +1653,24 @@ export default { imageData // upload:this.imageFile }; + this.loading = true; http() .post("/createStudent", addStudent) .then(response => { // console.log(addStudent) if ((this.snackbar = true)) { - this.text = "New user added successfully"; + this.text = "New Student added successfully"; } // this.getStudentList(); this.clear(); + this.loading = false; }) .catch(error => { // console.log(error); if ((this.snackbar = true)) { this.text = error.response.data.message; } + this.loading = false; }); } }, @@ -1708,7 +1711,7 @@ export default { .then(response => { // console.log("editStudent",editStudent); if ((this.snackbar = true)) { - this.text = "Successfully Edit Existing User"; + this.text = "Successfully Student Existing User"; } this.findStudents(); }) diff --git a/src/pages/Teachers/teachers.vue b/src/pages/Teachers/teachers.vue index 943a09a..d125014 100644 --- a/src/pages/Teachers/teachers.vue +++ b/src/pages/Teachers/teachers.vue @@ -1257,7 +1257,7 @@ export default { .then(response => { // console.log("deleteUers",deleteTeachers) if ((this.snackbar = true)) { - this.text = "Successfully delete Existing User"; + this.text = "Successfully delete Existing Teacher"; } this.getTeacherList(); }) @@ -1322,22 +1322,25 @@ export default { // upload:this.imageFile }; // console.log("addTeacher============>", addTeacher); + this.loading = true; http() .post("/createTeacher", addTeacher) .then(response => { console.log("addTeacher", addTeacher); this.getTeacherList(); if ((this.snackbar = true)) { - this.text = "New user added successfully"; + this.text = "New Teacher added successfully"; } this.clear(); + this.loading = false; }) .catch(error => { // console.log(error); if ((this.snackbar = true)) { this.text = error.response.data.message; } + this.loading = false; }); } }, @@ -1368,7 +1371,7 @@ export default { .then(response => { console.log("editTeacher",editTeacher); if ((this.snackbar = true)) { - this.text = "Successfully Edit Existing User"; + this.text = "Successfully Edit Existing Teacher"; } this.getTeacherList(); }) diff --git a/src/pages/TimeTable/timeTable.vue b/src/pages/TimeTable/timeTable.vue index bcabe42..2a0573e 100644 --- a/src/pages/TimeTable/timeTable.vue +++ b/src/pages/TimeTable/timeTable.vue @@ -1072,7 +1072,7 @@ .then(response => { // console.log("deleteUers",deleteTimeTable) if ((this.snackbar = true)) { - this.text = "Successfully delete Existing User"; + this.text = "Successfully delete Existing Time Table"; } this.findTimeTable(); }) @@ -1131,6 +1131,7 @@ } ] }; + this.loading = true; http() .post("/createTimeTable", addTimeTable) .then(response => { @@ -1139,12 +1140,14 @@ this.text = "New Time Table added successfully"; } this.clear(); + this.loading = false; }) .catch(error => { // console.log(error); if ((this.snackbar = true)) { this.text = error.response.data.message; } + this.loading = false; }); } }, @@ -1168,7 +1171,7 @@ .then(response => { console.log("editTimeTable", editTimeTable); if ((this.snackbar = true)) { - this.text = "Successfully Edit Existing User"; + this.text = "Successfully Edit Existing Time Table"; } this.findTimeTable(); })