From 813e55a7930fcf35599672a129a91f8f08684b3f Mon Sep 17 00:00:00 2001 From: Neeraj Sharma Date: Mon, 2 Sep 2019 15:55:54 +0530 Subject: [PATCH] implement parents all api and fix others bugs --- src/api/menu.js | 124 +++--- src/pages/Parent/parents.vue | 845 ++++++++++++++++++++++++++++++++++++++ src/pages/Students/students.vue | 5 - src/pages/Teachers/teachers.vue | 254 +++++++----- src/pages/TimeTable/timeTable.vue | 1 - src/router/paths.js | 348 ++++++++-------- 6 files changed, 1240 insertions(+), 337 deletions(-) create mode 100644 src/pages/Parent/parents.vue diff --git a/src/api/menu.js b/src/api/menu.js index c8891b6..499c709 100644 --- a/src/api/menu.js +++ b/src/api/menu.js @@ -1,66 +1,72 @@ -const Menu = [ -// { header: 'Apps' }, - { - title: 'Class', - // group: 'apps', - name: 'addclass', - icon: 'local_library', - }, - { - title: 'Section', - // group: 'apps', - name: 'section', - icon: 'view_module', - }, - { - title: 'Teachers', - // group: '', - name: 'teachers', - icon: 'group', - }, - { - title: 'Students', - // group: 'apps', - name: 'Students', - icon: 'school', - }, - // { - // title: 'Event', - // name: 'event', - // icon: 'event_available', - // }, - { - title: 'News', - name: 'news', - icon: 'notification_important', - }, - // { - // title: 'Reminder', - // name: 'reminder', - // icon: 'alarm_add', - // }, - { - title: 'Time Table', - name: 'timeTable', - icon: 'event_note', - }, - { - title: 'Notification', - name: 'notification', - icon: 'notifications_active', - }, +const Menu = [ + // { header: 'Apps' }, + { + title: 'Class', + // group: 'apps', + name: 'addclass', + icon: 'local_library', + }, + { + title: 'Section', + // group: 'apps', + name: 'section', + icon: 'view_module', + }, + { + title: 'Parents', + // group: 'apps', + name: 'parents', + icon: 'group', + }, + { + title: 'Teachers', + // group: '', + name: 'teachers', + icon: 'person', + }, + { + title: 'Students', + // group: 'apps', + name: 'Students', + icon: 'school', + }, + // { + // title: 'Event', + // name: 'event', + // icon: 'event_available', + // }, + { + title: 'News', + name: 'news', + icon: 'notification_important', + }, + // { + // title: 'Reminder', + // name: 'reminder', + // icon: 'alarm_add', + // }, + { + title: 'Time Table', + name: 'timeTable', + icon: 'event_note', + }, + { + title: 'Notification', + name: 'notification', + icon: 'notifications_active', + }, ]; // reorder menu Menu.forEach((item) => { - if (item.items) { - item.items.sort((x, y) => { - let textA = x.title.toUpperCase(); - let textB = y.title.toUpperCase(); - return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; - }); - } + if (item.items) { + item.items.sort((x, y) => { + let textA = x.title.toUpperCase(); + let textB = y.title.toUpperCase(); + return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; + }); + } }); -export default Menu; +export default Menu; \ No newline at end of file diff --git a/src/pages/Parent/parents.vue b/src/pages/Parent/parents.vue new file mode 100644 index 0000000..189b754 --- /dev/null +++ b/src/pages/Parent/parents.vue @@ -0,0 +1,845 @@ + + + + \ No newline at end of file diff --git a/src/pages/Students/students.vue b/src/pages/Students/students.vue index 0d86664..c15cb5b 100644 --- a/src/pages/Students/students.vue +++ b/src/pages/Students/students.vue @@ -2036,8 +2036,6 @@ export default { this.imageUrl = fr.result; this.imageFile = files[0]; // this is an image file that can be sent to server... this.imageData.imageUrl = URL.createObjectURL(this.imageFile); - console.log("upload=======>", this.imageData.imageUrl); - console.log("imageFile", this.imageFile); }); } else { this.imageName = ""; @@ -2224,11 +2222,9 @@ export default { if (this.imageUrl) { editStudent.upload = this.imageUrl; } - console.log("editStudent", editStudent); http() .put("/updateStudent", editStudent) .then(response => { - console.log("editStudent", editStudent); if ((this.snackbar = true)) { this.text = "Successfully Student Existing User"; } @@ -2311,7 +2307,6 @@ export default { }) .then(response => { this.addclass = response.data.data; - // console.log("getClassesList=====>",this.addclass) }) .catch(err => { // console.log("err====>", err); diff --git a/src/pages/Teachers/teachers.vue b/src/pages/Teachers/teachers.vue index 9334714..e4e9287 100644 --- a/src/pages/Teachers/teachers.vue +++ b/src/pages/Teachers/teachers.vue @@ -1,6 +1,6 @@