Commit 1e1e364f193fd7b4e3a588fef38b89026916ff3f
Exists in
master
and in
2 other branches
implement meet functinlaity and id card issues
Showing
16 changed files
Show diff stats
src/api/menu.js
1 | 1 | const adminMenu = [ |
2 | - // { header: 'Apps' }, | |
3 | - { | |
4 | - title: 'Dashboard', | |
5 | - // group: 'apps', | |
6 | - name: 'Dashboard', | |
7 | - icon: '/static/icon/dashboard.png', | |
8 | - }, | |
9 | - { | |
10 | - title: 'Class', | |
11 | - // group: 'apps', | |
12 | - name: 'Class', | |
13 | - icon: '/static/icon/class.png', | |
14 | - }, | |
15 | - { | |
16 | - title: 'Section', | |
17 | - // group: 'apps', | |
18 | - name: 'Section', | |
19 | - icon: '/static/icon/section.png', | |
20 | - }, | |
21 | - // { | |
22 | - // title: 'Subjects', | |
23 | - // name: 'Subject', | |
24 | - // icon: '/static/icon/subject.png', | |
25 | - // }, | |
26 | - { | |
27 | - title: 'Parents', | |
28 | - // group: 'apps', | |
29 | - name: 'Parents', | |
30 | - icon: '/static/icon/parents.png', | |
31 | - }, | |
32 | - { | |
33 | - title: 'Teachers', | |
34 | - // group: '', | |
35 | - name: 'Teachers', | |
36 | - icon: '/static/icon/teacher.png', | |
37 | - }, | |
38 | - { | |
39 | - title: 'Students', | |
40 | - // group: 'apps', | |
41 | - name: 'Students', | |
42 | - icon: '/static/icon/student.png', | |
43 | - }, | |
44 | - { | |
45 | - title: 'User', | |
46 | - name: 'User', | |
47 | - icon: '/static/icon/users.png', | |
48 | - }, | |
49 | - { | |
50 | - title: 'Attendance', | |
51 | - group: 'Attendance', | |
52 | - component: 'Attendance', | |
53 | - icon: '/static/icon/attendence.png', | |
54 | - items: [ | |
55 | - { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, | |
56 | - { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }, | |
57 | - // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, | |
58 | - ] | |
59 | - }, | |
60 | - { | |
61 | - title: 'Exam', | |
62 | - group: 'Exam', | |
63 | - component: 'Exam', | |
64 | - icon: '/static/icon/exam.png', | |
65 | - items: [ | |
66 | - { name: 'Exam', title: 'Exam', component: 'Exam', action: '', }, | |
67 | - { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, | |
68 | - { name: 'Grade', title: 'Grade', component: 'Grade', action: '', }, | |
69 | - // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, | |
70 | - ] | |
71 | - }, | |
72 | - { | |
73 | - title: 'Marks', | |
74 | - group: 'Mark', | |
75 | - component: 'Mark', | |
76 | - icon: '/static/icon/marks.png', | |
77 | - items: [ | |
78 | - { name: 'Mark', title: 'Mark', component: 'Mark', action: '', }, | |
79 | - { name: 'MarkDistribution', title: 'Mark Distribution', component: 'Mark Distribution', action: '', }, | |
80 | - // { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', }, | |
81 | - // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, | |
82 | - ] | |
83 | - }, | |
84 | - { | |
85 | - title: 'Academic', | |
86 | - group: 'Academic', | |
87 | - component: 'Academic', | |
88 | - icon: '/static/icon/school.png', | |
89 | - items: [ | |
90 | - { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, | |
91 | - { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, | |
92 | - { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, | |
93 | - { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, | |
94 | - ] | |
95 | - }, | |
96 | - { | |
97 | - title: 'Administrator', | |
98 | - group: 'Administrator', | |
99 | - component: 'Administrator', | |
100 | - icon: '/static/icon/adminstrator.png', | |
101 | - items: [ | |
102 | - { name: 'AcademicYear', title: 'Academic Year', component: 'Academic Year', action: '', }, | |
103 | - // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', }, | |
104 | - { name: 'resetPassword', title: 'Change Password', component: 'Change Password', action: '', }, | |
105 | - { name: 'Role', title: 'Role', component: 'Role', action: '', }, | |
106 | - { name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', }, | |
2 | + // { header: 'Apps' }, | |
3 | + { | |
4 | + title: 'Dashboard', | |
5 | + // group: 'apps', | |
6 | + name: 'Dashboard', | |
7 | + icon: '/static/icon/dashboard.png', | |
8 | + }, | |
9 | + { | |
10 | + title: 'Class', | |
11 | + // group: 'apps', | |
12 | + name: 'Class', | |
13 | + icon: '/static/icon/class.png', | |
14 | + }, | |
15 | + { | |
16 | + title: 'Section', | |
17 | + // group: 'apps', | |
18 | + name: 'Section', | |
19 | + icon: '/static/icon/section.png', | |
20 | + }, | |
21 | + // { | |
22 | + // title: 'Subjects', | |
23 | + // name: 'Subject', | |
24 | + // icon: '/static/icon/subject.png', | |
25 | + // }, | |
26 | + { | |
27 | + title: 'Parents', | |
28 | + // group: 'apps', | |
29 | + name: 'Parents', | |
30 | + icon: '/static/icon/parents.png', | |
31 | + }, | |
32 | + { | |
33 | + title: 'Teachers', | |
34 | + // group: '', | |
35 | + name: 'Teachers', | |
36 | + icon: '/static/icon/teacher.png', | |
37 | + }, | |
38 | + { | |
39 | + title: 'Students', | |
40 | + // group: 'apps', | |
41 | + name: 'Students', | |
42 | + icon: '/static/icon/student.png', | |
43 | + }, | |
44 | + { | |
45 | + title: 'User', | |
46 | + name: 'User', | |
47 | + icon: '/static/icon/users.png', | |
48 | + }, | |
49 | + { | |
50 | + title: 'Attendance', | |
51 | + group: 'Attendance', | |
52 | + component: 'Attendance', | |
53 | + icon: '/static/icon/attendence.png', | |
54 | + items: [ | |
55 | + { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, | |
56 | + { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }, | |
57 | + // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, | |
58 | + ] | |
59 | + }, | |
60 | + { | |
61 | + title: 'Exam', | |
62 | + group: 'Exam', | |
63 | + component: 'Exam', | |
64 | + icon: '/static/icon/exam.png', | |
65 | + items: [ | |
66 | + { name: 'Exam', title: 'Exam', component: 'Exam', action: '', }, | |
67 | + { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, | |
68 | + { name: 'Grade', title: 'Grade', component: 'Grade', action: '', }, | |
69 | + // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, | |
70 | + ] | |
71 | + }, | |
72 | + { | |
73 | + title: 'Marks', | |
74 | + group: 'Mark', | |
75 | + component: 'Mark', | |
76 | + icon: '/static/icon/marks.png', | |
77 | + items: [ | |
78 | + { name: 'Mark', title: 'Mark', component: 'Mark', action: '', }, | |
79 | + { name: 'MarkDistribution', title: 'Mark Distribution', component: 'Mark Distribution', action: '', }, | |
80 | + // { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', }, | |
81 | + // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, | |
82 | + ] | |
83 | + }, | |
84 | + { | |
85 | + title: 'Academic', | |
86 | + group: 'Academic', | |
87 | + component: 'Academic', | |
88 | + icon: '/static/icon/school.png', | |
89 | + items: [ | |
90 | + { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, | |
91 | + { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, | |
92 | + { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, | |
93 | + { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, | |
94 | + ] | |
95 | + }, | |
96 | + { | |
97 | + title: 'Administrator', | |
98 | + group: 'Administrator', | |
99 | + component: 'Administrator', | |
100 | + icon: '/static/icon/adminstrator.png', | |
101 | + items: [ | |
102 | + { name: 'AcademicYear', title: 'Academic Year', component: 'Academic Year', action: '', }, | |
103 | + // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', }, | |
104 | + { name: 'resetPassword', title: 'Change Password', component: 'Change Password', action: '', }, | |
105 | + { name: 'Role', title: 'Role', component: 'Role', action: '', }, | |
106 | + { name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', }, | |
107 | 107 | |
108 | - ] | |
109 | - }, | |
110 | - { | |
111 | - title: 'Payroll', | |
112 | - group: 'Payroll', | |
113 | - component: 'Payroll', | |
114 | - icon: '/static/icon/dollar.png', | |
115 | - items: [ | |
116 | - { name: 'salaryTemplate', title: 'Salary Template', component: 'Salary Template', action: '', }, | |
117 | - { name: 'hourlyTemplate', title: 'Hourly Template', component: 'Hourly Template', action: '', }, | |
118 | - { name: 'manageSalary', title: 'Manage Salary', component: 'Manage Salary', action: '', }, | |
119 | - // { name: 'makePayment', title: 'Make Payment', component: 'Make Payment', action: '', }, | |
120 | - ] | |
121 | - }, | |
122 | - { | |
123 | - title: 'Notice Board', | |
124 | - name: 'Notice Board', | |
125 | - icon: '/static/icon/notice board.png', | |
126 | - }, | |
127 | - { | |
128 | - title: 'News', | |
129 | - name: 'News', | |
130 | - icon: '/static/icon/news.png', | |
131 | - }, | |
132 | - // { | |
133 | - // title: 'Reminder', | |
134 | - // name: 'reminder', | |
135 | - // icon: 'alarm_add', | |
136 | - // }, | |
137 | - { | |
138 | - title: 'Time Table', | |
139 | - name: 'Time Table', | |
140 | - icon: '/static/icon/time table.png', | |
141 | - }, | |
142 | - { | |
143 | - title: 'Library', | |
144 | - group: 'Library', | |
145 | - component: 'Library', | |
146 | - icon: '/static/icon/library.png', | |
147 | - items: [ | |
148 | - { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', }, | |
149 | - { name: 'Books', title: 'Books', component: 'Books', action: '', }, | |
150 | - { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, | |
151 | - { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } | |
108 | + ] | |
109 | + }, | |
110 | + { | |
111 | + title: 'Payroll', | |
112 | + group: 'Payroll', | |
113 | + component: 'Payroll', | |
114 | + icon: '/static/icon/dollar.png', | |
115 | + items: [ | |
116 | + { name: 'salaryTemplate', title: 'Salary Template', component: 'Salary Template', action: '', }, | |
117 | + { name: 'hourlyTemplate', title: 'Hourly Template', component: 'Hourly Template', action: '', }, | |
118 | + { name: 'manageSalary', title: 'Manage Salary', component: 'Manage Salary', action: '', }, | |
119 | + // { name: 'makePayment', title: 'Make Payment', component: 'Make Payment', action: '', }, | |
120 | + ] | |
121 | + }, | |
122 | + { | |
123 | + title: 'Notice Board', | |
124 | + name: 'Notice Board', | |
125 | + icon: '/static/icon/notice board.png', | |
126 | + }, | |
127 | + { | |
128 | + title: 'News', | |
129 | + name: 'News', | |
130 | + icon: '/static/icon/news.png', | |
131 | + }, | |
132 | + // { | |
133 | + // title: 'Reminder', | |
134 | + // name: 'reminder', | |
135 | + // icon: 'alarm_add', | |
136 | + // }, | |
137 | + { | |
138 | + title: 'Time Table', | |
139 | + name: 'Time Table', | |
140 | + icon: '/static/icon/time table.png', | |
141 | + }, | |
142 | + { | |
143 | + title: 'Library', | |
144 | + group: 'Library', | |
145 | + component: 'Library', | |
146 | + icon: '/static/icon/library.png', | |
147 | + items: [ | |
148 | + { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', }, | |
149 | + { name: 'Books', title: 'Books', component: 'Books', action: '', }, | |
150 | + { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, | |
151 | + { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } | |
152 | 152 | |
153 | - ] | |
154 | - }, | |
155 | - { | |
156 | - title: 'Report', | |
157 | - group: 'Report', | |
158 | - component: 'Report', | |
159 | - icon: '/static/icon/reports.png', | |
160 | - items: [ | |
161 | - { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, | |
162 | - { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', }, | |
163 | - { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, | |
164 | - { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } | |
165 | - ] | |
166 | - }, | |
167 | - { | |
168 | - title: 'Notification', | |
169 | - name: 'Notification', | |
170 | - icon: '/static/icon/notification.png', | |
171 | - }, | |
172 | - { | |
173 | - title: 'Social Media', | |
174 | - name: 'Social Media', | |
175 | - icon: '/static/icon/events.png', | |
176 | - }, | |
177 | - { | |
178 | - title: 'Gallery', | |
179 | - name: 'Gallery', | |
180 | - icon: '/static/icon/gallery.png', | |
181 | - }, | |
182 | - { | |
183 | - title: 'Event', | |
184 | - name: 'Event', | |
185 | - icon: '/static/icon/events.png', | |
186 | - }, | |
187 | - { | |
188 | - title: 'Account', | |
189 | - group: 'Account', | |
190 | - component: 'Account', | |
191 | - icon: '/static/icon/accounts.png', | |
192 | - items: [ | |
193 | - { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', }, | |
194 | - { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, | |
195 | - { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', }, | |
196 | - { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, | |
197 | - { name: 'Income', title: 'Income', component: 'Income', action: '', }, | |
198 | - { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', } | |
199 | - ] | |
200 | - }, | |
201 | - { | |
202 | - title: 'Holiday', | |
203 | - name: 'Holiday', | |
204 | - icon: '/static/icon/holiday.png', | |
205 | - }, | |
206 | - { | |
207 | - title: 'General Setting', | |
208 | - name: 'General Setting', | |
209 | - icon: '/static/icon/settings.png', | |
210 | - } | |
153 | + ] | |
154 | + }, | |
155 | + { | |
156 | + title: 'Report', | |
157 | + group: 'Report', | |
158 | + component: 'Report', | |
159 | + icon: '/static/icon/reports.png', | |
160 | + items: [ | |
161 | + { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, | |
162 | + { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', }, | |
163 | + { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, | |
164 | + { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } | |
165 | + ] | |
166 | + }, | |
167 | + { | |
168 | + title: 'Notification', | |
169 | + name: 'Notification', | |
170 | + icon: '/static/icon/notification.png', | |
171 | + }, | |
172 | + { | |
173 | + title: 'Social Media', | |
174 | + name: 'Social Media', | |
175 | + icon: '/static/icon/events.png', | |
176 | + }, | |
177 | + { | |
178 | + title: 'Gallery', | |
179 | + name: 'Gallery', | |
180 | + icon: '/static/icon/gallery.png', | |
181 | + }, | |
182 | + { | |
183 | + title: 'Event', | |
184 | + name: 'Event', | |
185 | + icon: '/static/icon/events.png', | |
186 | + }, | |
187 | + { | |
188 | + title: 'Account', | |
189 | + group: 'Account', | |
190 | + component: 'Account', | |
191 | + icon: '/static/icon/accounts.png', | |
192 | + items: [ | |
193 | + { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', }, | |
194 | + { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, | |
195 | + { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', }, | |
196 | + { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, | |
197 | + { name: 'Income', title: 'Income', component: 'Income', action: '', }, | |
198 | + { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', } | |
199 | + ] | |
200 | + }, | |
201 | + { | |
202 | + title: 'Holiday', | |
203 | + name: 'Holiday', | |
204 | + icon: '/static/icon/holiday.png', | |
205 | + }, | |
206 | + { | |
207 | + title: 'General Setting', | |
208 | + name: 'General Setting', | |
209 | + icon: '/static/icon/settings.png', | |
210 | + } | |
211 | 211 | ]; |
212 | 212 | |
213 | 213 | const libraryMenu = [{ |
214 | - title: 'Dashboard', | |
215 | - name: 'Dashboard', | |
216 | - icon: '/static/icon/dashboard.png', | |
217 | - }, | |
218 | - { | |
219 | - title: 'Library', | |
220 | - group: 'Library', | |
221 | - component: 'Library', | |
222 | - icon: '/static/icon/library.png', | |
223 | - items: [ | |
224 | - { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', }, | |
225 | - { name: 'Books', title: 'Books', component: 'Books', action: '', }, | |
226 | - { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, | |
227 | - { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } | |
214 | + title: 'Dashboard', | |
215 | + name: 'Dashboard', | |
216 | + icon: '/static/icon/dashboard.png', | |
217 | +}, | |
218 | +{ | |
219 | + title: 'Library', | |
220 | + group: 'Library', | |
221 | + component: 'Library', | |
222 | + icon: '/static/icon/library.png', | |
223 | + items: [ | |
224 | + { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', }, | |
225 | + { name: 'Books', title: 'Books', component: 'Books', action: '', }, | |
226 | + { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, | |
227 | + { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } | |
228 | 228 | |
229 | - ] | |
230 | - }, | |
229 | + ] | |
230 | +}, | |
231 | 231 | ]; |
232 | 232 | |
233 | 233 | const accountMenu = [{ |
234 | - title: 'Dashboard', | |
235 | - name: 'Dashboard', | |
236 | - icon: '/static/icon/dashboard.png', | |
237 | - }, | |
234 | + title: 'Dashboard', | |
235 | + name: 'Dashboard', | |
236 | + icon: '/static/icon/dashboard.png', | |
237 | +}, | |
238 | 238 | |
239 | - { | |
240 | - title: 'Account', | |
241 | - group: 'Account', | |
242 | - component: 'Account', | |
243 | - icon: '/static/icon/accounts.png', | |
244 | - items: [ | |
245 | - { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', }, | |
246 | - { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, | |
247 | - { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', }, | |
248 | - { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, | |
249 | - { name: 'Income', title: 'Income', component: 'Income', action: '', }, | |
250 | - { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', } | |
251 | - ] | |
252 | - }, | |
239 | +{ | |
240 | + title: 'Account', | |
241 | + group: 'Account', | |
242 | + component: 'Account', | |
243 | + icon: '/static/icon/accounts.png', | |
244 | + items: [ | |
245 | + { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', }, | |
246 | + { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, | |
247 | + { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', }, | |
248 | + { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, | |
249 | + { name: 'Income', title: 'Income', component: 'Income', action: '', }, | |
250 | + { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', } | |
251 | + ] | |
252 | +}, | |
253 | 253 | ]; |
254 | 254 | |
255 | 255 | const schoolMenu = [ |
256 | - // { header: 'Apps' }, | |
257 | - { | |
258 | - title: 'Dashboard', | |
259 | - // group: 'apps', | |
260 | - name: 'View School Dashboard', | |
261 | - icon: '/static/icon/dashboard.png', | |
262 | - }, | |
263 | - { | |
264 | - title: 'School', | |
265 | - // group: 'apps', | |
266 | - name: 'School', | |
267 | - icon: '/static/schoolIcons/Dashboard.png', | |
268 | - } | |
256 | + // { header: 'Apps' }, | |
257 | + { | |
258 | + title: 'Dashboard', | |
259 | + // group: 'apps', | |
260 | + name: 'View School Dashboard', | |
261 | + icon: '/static/icon/dashboard.png', | |
262 | + }, | |
263 | + { | |
264 | + title: 'School', | |
265 | + // group: 'apps', | |
266 | + name: 'School', | |
267 | + icon: '/static/icon/school.png', | |
268 | + }, | |
269 | + { | |
270 | + title: 'App Version', | |
271 | + name: 'App Version', | |
272 | + icon: '/static/icon/phone.png', | |
273 | + } | |
269 | 274 | ]; |
270 | 275 | |
271 | 276 | const teacherMenu = [{ |
272 | - title: 'Dashboard', | |
273 | - name: 'Dashboard', | |
274 | - icon: '/static/icon/dashboard.png', | |
275 | - }, | |
276 | - { | |
277 | - title: 'Parents', | |
278 | - // group: 'apps', | |
279 | - name: 'Parents', | |
280 | - icon: '/static/icon/parents.png', | |
281 | - }, | |
282 | - { | |
283 | - title: 'Teachers', | |
284 | - // group: '', | |
285 | - name: 'Teachers', | |
286 | - icon: '/static/icon/teacher.png', | |
287 | - }, | |
288 | - { | |
289 | - title: 'Students', | |
290 | - // group: 'apps', | |
291 | - name: 'Students', | |
292 | - icon: '/static/icon/student.png', | |
293 | - }, | |
294 | - { | |
295 | - title: 'Academic', | |
296 | - group: 'Academic', | |
297 | - component: 'Academic', | |
298 | - icon: '/static/icon/school.png', | |
299 | - items: [ | |
300 | - { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, | |
301 | - { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, | |
302 | - { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, | |
303 | - { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, | |
304 | - ] | |
305 | - }, | |
306 | - { | |
307 | - title: 'Course', | |
308 | - group: 'Course', | |
309 | - component: 'Course', | |
310 | - icon: '/static/icon/school.png', | |
311 | - items: [ | |
312 | - { name: 'Course', title: 'Course', component: 'Course', action: '', }, | |
313 | - { name: 'Enroll Students', title: 'Enroll Students', component: 'Enroll Students', action: '', }, | |
314 | - { name: 'Course Detail', title: 'Course Detail', component: 'Course Detail', action: '', }, | |
315 | - { name: 'Course Discussion', title: 'Course Discussion', component: 'Course Discussion', action: '', }, | |
316 | - ] | |
317 | - }, | |
318 | - { | |
319 | - title: 'Annoucement', | |
320 | - // group: 'apps', | |
321 | - name: 'Annoucement', | |
322 | - icon: '/static/icon/student.png', | |
323 | - }, | |
324 | - { | |
325 | - title: 'Meeting Event', | |
326 | - // group: 'apps', | |
327 | - name: 'Meeting Event', | |
328 | - icon: '/static/icon/student.png', | |
329 | - }, | |
330 | - { | |
331 | - title: 'Attendance', | |
332 | - group: 'Attendance', | |
333 | - component: 'Attendance', | |
334 | - icon: '/static/icon/attendence.png', | |
335 | - items: [ | |
336 | - { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, | |
337 | - { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }, | |
338 | - // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, | |
339 | - ] | |
340 | - }, | |
341 | - { | |
342 | - title: 'Exam', | |
343 | - group: 'Exam', | |
344 | - component: 'Exam', | |
345 | - icon: '/static/icon/exam.png', | |
346 | - items: [ | |
347 | - { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, | |
348 | - { name: 'ExamAttendence', title: 'Exam Attendence', component: 'Exam Attendence', action: '', } | |
349 | - ] | |
350 | - }, | |
351 | - { | |
352 | - title: 'Marks', | |
353 | - group: 'Mark', | |
354 | - component: 'Mark', | |
355 | - icon: '/static/icon/marks.png', | |
356 | - items: [ | |
357 | - { name: 'Mark', title: 'Mark', component: 'Mark', action: '', } | |
358 | - ] | |
359 | - }, | |
360 | - { | |
361 | - title: 'Report', | |
362 | - group: 'Report', | |
363 | - component: 'Report', | |
364 | - icon: '/static/icon/reports.png', | |
365 | - items: [ | |
366 | - { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, | |
367 | - { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', }, | |
368 | - { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, | |
369 | - { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } | |
370 | - ] | |
371 | - }, | |
372 | - { | |
373 | - title: 'Library', | |
374 | - group: 'Library', | |
375 | - component: 'Library', | |
376 | - icon: '/static/icon/library.png', | |
377 | - items: [ | |
378 | - { name: 'Books', title: 'Books', component: 'Books', action: '', }, | |
379 | - { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } | |
277 | + title: 'Dashboard', | |
278 | + name: 'Dashboard', | |
279 | + icon: '/static/icon/dashboard.png', | |
280 | +}, | |
281 | +{ | |
282 | + title: 'Parents', | |
283 | + // group: 'apps', | |
284 | + name: 'Parents', | |
285 | + icon: '/static/icon/parents.png', | |
286 | +}, | |
287 | +{ | |
288 | + title: 'Teachers', | |
289 | + // group: '', | |
290 | + name: 'Teachers', | |
291 | + icon: '/static/icon/teacher.png', | |
292 | +}, | |
293 | +{ | |
294 | + title: 'Students', | |
295 | + // group: 'apps', | |
296 | + name: 'Students', | |
297 | + icon: '/static/icon/student.png', | |
298 | +}, | |
299 | +{ | |
300 | + title: 'Academic', | |
301 | + group: 'Academic', | |
302 | + component: 'Academic', | |
303 | + icon: '/static/icon/school.png', | |
304 | + items: [ | |
305 | + { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, | |
306 | + { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, | |
307 | + { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, | |
308 | + { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, | |
309 | + ] | |
310 | +}, | |
311 | +{ | |
312 | + title: 'Course', | |
313 | + group: 'Course', | |
314 | + component: 'Course', | |
315 | + icon: '/static/icon/school.png', | |
316 | + items: [ | |
317 | + { name: 'Course', title: 'Course', component: 'Course', action: '', }, | |
318 | + { name: 'Enroll Students', title: 'Enroll Students', component: 'Enroll Students', action: '', }, | |
319 | + { name: 'Course Detail', title: 'Course Detail', component: 'Course Detail', action: '', }, | |
320 | + { name: 'Course Discussion', title: 'Course Discussion', component: 'Course Discussion', action: '', }, | |
321 | + ] | |
322 | +}, | |
323 | +{ | |
324 | + title: 'Annoucement', | |
325 | + // group: 'apps', | |
326 | + name: 'Annoucement', | |
327 | + icon: '/static/icon/student.png', | |
328 | +}, | |
329 | +{ | |
330 | + title: 'Meeting Event', | |
331 | + // group: 'apps', | |
332 | + name: 'Meeting Event', | |
333 | + icon: '/static/icon/student.png', | |
334 | +}, | |
335 | +{ | |
336 | + title: 'Attendance', | |
337 | + group: 'Attendance', | |
338 | + component: 'Attendance', | |
339 | + icon: '/static/icon/attendence.png', | |
340 | + items: [ | |
341 | + { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, | |
342 | + { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }, | |
343 | + // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, | |
344 | + ] | |
345 | +}, | |
346 | +{ | |
347 | + title: 'Exam', | |
348 | + group: 'Exam', | |
349 | + component: 'Exam', | |
350 | + icon: '/static/icon/exam.png', | |
351 | + items: [ | |
352 | + { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, | |
353 | + { name: 'ExamAttendence', title: 'Exam Attendence', component: 'Exam Attendence', action: '', } | |
354 | + ] | |
355 | +}, | |
356 | +{ | |
357 | + title: 'Marks', | |
358 | + group: 'Mark', | |
359 | + component: 'Mark', | |
360 | + icon: '/static/icon/marks.png', | |
361 | + items: [ | |
362 | + { name: 'Mark', title: 'Mark', component: 'Mark', action: '', } | |
363 | + ] | |
364 | +}, | |
365 | +{ | |
366 | + title: 'Report', | |
367 | + group: 'Report', | |
368 | + component: 'Report', | |
369 | + icon: '/static/icon/reports.png', | |
370 | + items: [ | |
371 | + { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, | |
372 | + { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', }, | |
373 | + { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, | |
374 | + { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } | |
375 | + ] | |
376 | +}, | |
377 | +{ | |
378 | + title: 'Library', | |
379 | + group: 'Library', | |
380 | + component: 'Library', | |
381 | + icon: '/static/icon/library.png', | |
382 | + items: [ | |
383 | + { name: 'Books', title: 'Books', component: 'Books', action: '', }, | |
384 | + { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } | |
380 | 385 | |
381 | - ] | |
382 | - }, | |
383 | - { | |
384 | - title: 'Meet', | |
385 | - name: 'Meet', | |
386 | - icon: '/static/icon/meet_icon_navigation.png', | |
387 | - } | |
386 | + ] | |
387 | +}, | |
388 | +{ | |
389 | + title: 'Meet', | |
390 | + name: 'Meet', | |
391 | + icon: '/static/icon/meet_icon_navigation.png', | |
392 | +} | |
388 | 393 | ]; |
389 | 394 | |
390 | 395 | const parentMenu = [{ |
391 | - title: 'Dashboard', | |
392 | - name: 'Dashboard', | |
393 | - icon: '/static/icon/dashboard.png', | |
396 | + title: 'Dashboard', | |
397 | + name: 'Dashboard', | |
398 | + icon: '/static/icon/dashboard.png', | |
394 | 399 | }, |
395 | 400 | { |
396 | - title: "Change Student", | |
397 | - name: 'Change Students', | |
398 | - Vicon: "face", | |
399 | - click: e => { | |
400 | - console.log(e); | |
401 | - } | |
401 | + title: "Change Student", | |
402 | + name: 'Change Students', | |
403 | + Vicon: "face", | |
404 | + click: e => { | |
405 | + console.log(e); | |
406 | + } | |
402 | 407 | }]; |
403 | 408 | // reorder menu |
404 | 409 | // Menu.forEach((item) => { | ... | ... |
src/components/pageHeader/AppDrawer.vue
... | ... | @@ -312,7 +312,7 @@ |
312 | 312 | <img :src="item.icon" width="22" alt="icons" /> |
313 | 313 | </v-list-tile-action> |
314 | 314 | <v-list-tile-content> |
315 | - <v-list-tile-title>{{ item.title }}</v-list-tile-title> | |
315 | + <!-- <v-list-tile-title>{{ item.title }}</v-list-tile-title> --> | |
316 | 316 | </v-list-tile-content> |
317 | 317 | </v-list-tile> |
318 | 318 | <template v-for="(subItem, i) in item.items"> | ... | ... |
src/pages/Academic/assignment.vue
... | ... | @@ -257,19 +257,20 @@ |
257 | 257 | <td class="text-xs-center td td-row">{{ props.item.sectionId.name }}</td> |
258 | 258 | <td |
259 | 259 | class="text-xs-center td td-row" |
260 | - v-if="role != 'TEACHER' " | |
260 | + v-if="role === 'TEACHER'" | |
261 | 261 | >{{ props.item.teacherId.name }}</td> |
262 | 262 | <td |
263 | 263 | class="text-xs-center td td-row" |
264 | - v-if="role != 'ADMIN'" | |
265 | - >{{ props.item.schoolId .name }}</td> | |
264 | + v-if="role === 'ADMIN'" | |
265 | + >{{ props.item.schoolId.name }}</td> | |
266 | 266 | <td class="text-xs-center td td-row"> |
267 | - <v-btn | |
268 | - class="add-button" | |
269 | - @click="generatePDF2Canvas(props.item)" | |
270 | - :loading="loadingPdf" | |
271 | - dark | |
272 | - >{{ props.item.fileType }}</v-btn> | |
267 | + <a :href="props.item.fileName" target="_blank" style="text-decoration: none!important;"> | |
268 | + <v-btn flat block @click="generatePDF2Canvas(props.item)" :loading="loadingPdf"> | |
269 | + <span> | |
270 | + <h5>{{props.item.fileName}}</h5> | |
271 | + </span> | |
272 | + </v-btn> | |
273 | + </a> | |
273 | 274 | </td> |
274 | 275 | <td class="text-xs-center td td-row"> |
275 | 276 | <span> |
... | ... | @@ -715,13 +716,13 @@ export default { |
715 | 716 | addAssignment.upload = imageUrl; |
716 | 717 | addAssignment.fileType = detectMimeType(imageUrl); |
717 | 718 | } |
718 | - console.log("data===>", addAssignment); | |
719 | + // console.log("data===>", addAssignment); | |
719 | 720 | http() |
720 | 721 | .post("/createAssignment", addAssignment) |
721 | 722 | .then((response) => { |
722 | 723 | this.getAssignmentList(); |
723 | 724 | this.snackbar = true; |
724 | - this.text = "Syllabus added successfully"; | |
725 | + this.text = "Assignment added successfully"; | |
725 | 726 | this.color = "green"; |
726 | 727 | this.addAssignmentDialog = false; |
727 | 728 | this.clear(); | ... | ... |
src/pages/Academic/syllabus.vue
... | ... | @@ -201,12 +201,19 @@ |
201 | 201 | >{{ props.item.teacherId.name }}</td> |
202 | 202 | <td class="text-xs-center td td-row" v-else>{{ props.item.schoolId.name }}</td> |
203 | 203 | <td class="text-xs-center td td-row"> |
204 | - <v-btn | |
204 | + <!-- <v-btn | |
205 | 205 | class="add-button" |
206 | 206 | @click="generatePDF2Canvas(props.item)" |
207 | 207 | :loading="loadingPdf" |
208 | 208 | dark |
209 | - >{{ props.item.fileType }}</v-btn> | |
209 | + >{{ props.item.fileName }}</v-btn>--> | |
210 | + <a :href="props.item.fileName" target="_blank" style="text-decoration: none!important;"> | |
211 | + <v-btn flat block @click="generatePDF2Canvas(props.item)" :loading="loadingPdf"> | |
212 | + <span> | |
213 | + <h5>{{props.item.fileName}}</h5> | |
214 | + </span> | |
215 | + </v-btn> | |
216 | + </a> | |
210 | 217 | </td> |
211 | 218 | <td class="text-xs-center td td-row"> |
212 | 219 | <span> |
... | ... | @@ -534,13 +541,13 @@ export default { |
534 | 541 | // fileType: this.addSyllabus.fileType |
535 | 542 | // }; |
536 | 543 | var signatures = { |
537 | - JVBERi0: "other", | |
538 | - iVBORw0KGgo: "image", | |
539 | - UEsDBBQ: "other", | |
540 | - "/": "image", | |
541 | - AAABAA: "image", | |
542 | - IywiV2hhdC: "other", | |
543 | - bmFtZSxl: "other", | |
544 | + // JVBERi0: "other", | |
545 | + // iVBORw0KGgo: "image", | |
546 | + // UEsDBBQ: "other", | |
547 | + // "/": "image", | |
548 | + // AAABAA: "image", | |
549 | + // IywiV2hhdC: "other", | |
550 | + // bmFtZSxl: "other", | |
544 | 551 | }; |
545 | 552 | function detectMimeType(b64) { |
546 | 553 | for (var s in signatures) { |
... | ... | @@ -613,12 +620,12 @@ export default { |
613 | 620 | }; |
614 | 621 | this.editLoading = true; |
615 | 622 | var signatures = { |
616 | - JVBERi0: "other", | |
617 | - iVBORw0KGgo: "image", | |
618 | - UEsDBBQ: "other", | |
619 | - "/": "image", | |
620 | - AAABAA: "image", | |
621 | - IywiV2hhdC: "other", | |
623 | + // JVBERi0: "other", | |
624 | + // iVBORw0KGgo: "image", | |
625 | + // UEsDBBQ: "other", | |
626 | + // "/": "image", | |
627 | + // AAABAA: "image", | |
628 | + // IywiV2hhdC: "other", | |
622 | 629 | }; |
623 | 630 | function detectMimeType(b64) { |
624 | 631 | for (var s in signatures) { | ... | ... |
src/pages/Account/editInvoice.vue
... | ... | @@ -161,7 +161,7 @@ |
161 | 161 | <v-flex xs12 sm6> |
162 | 162 | <v-btn |
163 | 163 | dark |
164 | - class="right mt-3 hidden-sm-only hidden-xs-only" | |
164 | + class="right add-button hidden-sm-only hidden-xs-only" | |
165 | 165 | color="open-dialog-button" |
166 | 166 | @click="selectFeeType" |
167 | 167 | >ADD</v-btn> |
... | ... | @@ -295,11 +295,11 @@ export default { |
295 | 295 | discount: "0.00", |
296 | 296 | paidAmount: "0.00", |
297 | 297 | subTotal: "0.00", |
298 | - feeTypeName: "" | |
298 | + feeTypeName: "", | |
299 | 299 | }, |
300 | 300 | feeTypeData: [], |
301 | 301 | pagination: { |
302 | - rowsPerPage: 15 | |
302 | + rowsPerPage: 15, | |
303 | 303 | }, |
304 | 304 | token: "", |
305 | 305 | editedItem: {}, |
... | ... | @@ -310,18 +310,18 @@ export default { |
310 | 310 | paymentStatus: [ |
311 | 311 | { |
312 | 312 | name: "Not Paid", |
313 | - value: "NOT_PAID" | |
313 | + value: "NOT_PAID", | |
314 | 314 | }, |
315 | 315 | { |
316 | 316 | name: "Partially Paid", |
317 | - value: "PARTIALLY_PAID" | |
317 | + value: "PARTIALLY_PAID", | |
318 | 318 | }, |
319 | 319 | { |
320 | 320 | name: "Fully Paid", |
321 | - value: "FULLY_PAID" | |
322 | - } | |
321 | + value: "FULLY_PAID", | |
322 | + }, | |
323 | 323 | ], |
324 | - editDataObj: {} | |
324 | + editDataObj: {}, | |
325 | 325 | }), |
326 | 326 | // watch: { |
327 | 327 | // menu1(val) { |
... | ... | @@ -332,7 +332,7 @@ export default { |
332 | 332 | save(date) { |
333 | 333 | this.$refs.menu1.save(date); |
334 | 334 | }, |
335 | - dates: function(date) { | |
335 | + dates: function (date) { | |
336 | 336 | return moment(date).format("MMMM DD, YYYY"); |
337 | 337 | }, |
338 | 338 | update(editData) { |
... | ... | @@ -361,7 +361,7 @@ export default { |
361 | 361 | totalAmount: this.feeType.amount, |
362 | 362 | totalDiscount: this.feeType.discount, |
363 | 363 | totalSubTotal: this.feeType.subTotal, |
364 | - totalPaidAmount: this.feeType.paidAmount | |
364 | + totalPaidAmount: this.feeType.paidAmount, | |
365 | 365 | }; |
366 | 366 | // console.log(editInvoiceData, editInvoiceData); |
367 | 367 | if (feeTypeId == "") { |
... | ... | @@ -393,7 +393,7 @@ export default { |
393 | 393 | |
394 | 394 | http() |
395 | 395 | .put("/updateInvoice", editInvoiceData) |
396 | - .then(response => { | |
396 | + .then((response) => { | |
397 | 397 | // this.getInvoiceList(); |
398 | 398 | this.snackbar = true; |
399 | 399 | this.text = "Edit Invoice successfully"; |
... | ... | @@ -401,7 +401,7 @@ export default { |
401 | 401 | color: "red"; |
402 | 402 | this.$emit("update-editInvoice"); |
403 | 403 | }) |
404 | - .catch(error => { | |
404 | + .catch((error) => { | |
405 | 405 | console.log(error); |
406 | 406 | this.snackbar = true; |
407 | 407 | this.text = error.response.data.message; |
... | ... | @@ -417,7 +417,7 @@ export default { |
417 | 417 | this.showFeeType = true; |
418 | 418 | this.editData.feeType.push({ feeTypeName: this.feeType.feeTypeName }); |
419 | 419 | }, |
420 | - deleteSelectFee: function(feeTyp, feeTypeList, index) { | |
420 | + deleteSelectFee: function (feeTyp, feeTypeList, index) { | |
421 | 421 | this.editData.feeType.splice(index, 1); |
422 | 422 | this.getAmmountDetails(feeTyp, feeTypeList); |
423 | 423 | if (this.feeTypeData.length == 0) { |
... | ... | @@ -426,19 +426,19 @@ export default { |
426 | 426 | discount: "0.00", |
427 | 427 | paidAmount: "0.00", |
428 | 428 | subTotal: "0.00", |
429 | - feeTypeList: "" | |
429 | + feeTypeList: "", | |
430 | 430 | }; |
431 | 431 | } |
432 | 432 | }, |
433 | 433 | getAllClasses() { |
434 | 434 | http() |
435 | 435 | .get("/getClassesList", { |
436 | - headers: { Authorization: "Bearer " + this.token } | |
436 | + headers: { Authorization: "Bearer " + this.token }, | |
437 | 437 | }) |
438 | - .then(response => { | |
438 | + .then((response) => { | |
439 | 439 | this.addclass = response.data.data; |
440 | 440 | }) |
441 | - .catch(error => { | |
441 | + .catch((error) => { | |
442 | 442 | // console.log("err====>", err); |
443 | 443 | this.showLoader = false; |
444 | 444 | if (error.response.status === 401) { |
... | ... | @@ -458,18 +458,18 @@ export default { |
458 | 458 | http() |
459 | 459 | .get("/getStudentsList", { |
460 | 460 | params: { classId: classId }, |
461 | - headers: { Authorization: "Bearer " + this.token } | |
461 | + headers: { Authorization: "Bearer " + this.token }, | |
462 | 462 | }) |
463 | - .then(response => { | |
463 | + .then((response) => { | |
464 | 464 | for (let i = 0; i < response.data.data.length; i++) { |
465 | 465 | this.studentList.push({ |
466 | 466 | name: response.data.data[i].name, |
467 | - _id: response.data.data[i]._id | |
467 | + _id: response.data.data[i]._id, | |
468 | 468 | }); |
469 | 469 | } |
470 | 470 | this.showLoader = false; |
471 | 471 | }) |
472 | - .catch(err => { | |
472 | + .catch((err) => { | |
473 | 473 | // console.log("err====>", err); |
474 | 474 | this.showLoader = false; |
475 | 475 | }); |
... | ... | @@ -481,12 +481,12 @@ export default { |
481 | 481 | getfeeType() { |
482 | 482 | http() |
483 | 483 | .get("/getFeesList", { |
484 | - headers: { Authorization: "Bearer " + this.token } | |
484 | + headers: { Authorization: "Bearer " + this.token }, | |
485 | 485 | }) |
486 | - .then(response => { | |
486 | + .then((response) => { | |
487 | 487 | this.feeTypes = response.data.data; |
488 | 488 | }) |
489 | - .catch(err => { | |
489 | + .catch((err) => { | |
490 | 490 | // console.log("err====>", err); |
491 | 491 | }); |
492 | 492 | }, |
... | ... | @@ -497,7 +497,7 @@ export default { |
497 | 497 | discount: "", |
498 | 498 | subTotal: "", |
499 | 499 | subParticularTotal: "", |
500 | - paidAmount: "" | |
500 | + paidAmount: "", | |
501 | 501 | }; |
502 | 502 | for (let i = 0; i < this.feeTypeData.length; i++) { |
503 | 503 | // *********** AMOUNT *********** |
... | ... | @@ -578,10 +578,10 @@ export default { |
578 | 578 | getPayMethodList() { |
579 | 579 | if (this.editData.paymentStatus == "PARTIALLY_PAID") { |
580 | 580 | this.showPayMethods = true; |
581 | - this.paymentMethodRules = [v => !!v || "Payment Method is required"]; | |
581 | + this.paymentMethodRules = [(v) => !!v || "Payment Method is required"]; | |
582 | 582 | } else if (this.editData.paymentStatus == "FULLY_PAID") { |
583 | 583 | this.showPayMethods = true; |
584 | - this.paymentMethodRules = [v => !!v || "Payment Method is required"]; | |
584 | + this.paymentMethodRules = [(v) => !!v || "Payment Method is required"]; | |
585 | 585 | } else if (this.editData.paymentStatus == "NOT_PAID") { |
586 | 586 | for (let i = 0; i < this.feeTypeData.length; i++) { |
587 | 587 | this.feeTypeData[i].paidAmount = "0.00"; |
... | ... | @@ -592,7 +592,7 @@ export default { |
592 | 592 | } else { |
593 | 593 | this.showPayMethods = false; |
594 | 594 | } |
595 | - } | |
595 | + }, | |
596 | 596 | }, |
597 | 597 | mounted() { |
598 | 598 | this.token = this.$store.state.token; |
... | ... | @@ -600,14 +600,14 @@ export default { |
600 | 600 | this.getfeeType(); |
601 | 601 | }, |
602 | 602 | created() { |
603 | - this.$root.$on("app:search", search => { | |
603 | + this.$root.$on("app:search", (search) => { | |
604 | 604 | this.search = search; |
605 | 605 | }); |
606 | 606 | }, |
607 | 607 | beforeDestroy() { |
608 | 608 | // dont forget to remove the listener |
609 | 609 | this.$root.$off("app:search"); |
610 | - } | |
610 | + }, | |
611 | 611 | }; |
612 | 612 | </script> |
613 | 613 | ... | ... |
src/pages/Account/paymentTemplate.vue
... | ... | @@ -99,7 +99,7 @@ |
99 | 99 | <v-btn |
100 | 100 | color="open-dialog-button" |
101 | 101 | dark |
102 | - class="right mt-3" | |
102 | + class="right add-button" | |
103 | 103 | @click="update(editPayment)" |
104 | 104 | >Add Payment</v-btn> |
105 | 105 | </v-card-actions> |
... | ... | @@ -227,11 +227,11 @@ export default { |
227 | 227 | discount: "0.00", |
228 | 228 | paidAmount: "0.00", |
229 | 229 | subTotal: "0.00", |
230 | - feeTypeName: "" | |
230 | + feeTypeName: "", | |
231 | 231 | }, |
232 | 232 | feeTypeData: [], |
233 | 233 | pagination: { |
234 | - rowsPerPage: 15 | |
234 | + rowsPerPage: 15, | |
235 | 235 | }, |
236 | 236 | token: "", |
237 | 237 | editedItem: {}, |
... | ... | @@ -241,17 +241,17 @@ export default { |
241 | 241 | paymentStatus: [ |
242 | 242 | { |
243 | 243 | name: "Not Paid", |
244 | - value: "NOT_PAID" | |
244 | + value: "NOT_PAID", | |
245 | 245 | }, |
246 | 246 | { |
247 | 247 | name: "Partially Paid", |
248 | - value: "PARTIALLY_PAID" | |
248 | + value: "PARTIALLY_PAID", | |
249 | 249 | }, |
250 | 250 | { |
251 | 251 | name: "Fully Paid", |
252 | - value: "FULLY_PAID" | |
253 | - } | |
254 | - ] | |
252 | + value: "FULLY_PAID", | |
253 | + }, | |
254 | + ], | |
255 | 255 | }), |
256 | 256 | // watch: { |
257 | 257 | // menu1(val) { |
... | ... | @@ -262,7 +262,7 @@ export default { |
262 | 262 | save(date) { |
263 | 263 | this.$refs.menu1.save(date); |
264 | 264 | }, |
265 | - dates: function(date) { | |
265 | + dates: function (date) { | |
266 | 266 | return moment(date).format("MMMM DD, YYYY"); |
267 | 267 | }, |
268 | 268 | update(editPayment) { |
... | ... | @@ -285,7 +285,7 @@ export default { |
285 | 285 | totalAmount: this.feeType.amount.toString(), |
286 | 286 | totalDiscount: this.feeType.discount.toString(), |
287 | 287 | totalSubTotal: this.feeType.subTotal.toString(), |
288 | - totalPaidAmount: this.feeType.paidAmount | |
288 | + totalPaidAmount: this.feeType.paidAmount, | |
289 | 289 | }; |
290 | 290 | if (feeTypeId == "") { |
291 | 291 | delete editInvoiceData.feeType[0].feeTypeId; |
... | ... | @@ -319,14 +319,14 @@ export default { |
319 | 319 | } |
320 | 320 | http() |
321 | 321 | .put("/updateInvoice", editInvoiceData) |
322 | - .then(response => { | |
322 | + .then((response) => { | |
323 | 323 | // this.getInvoiceList(); |
324 | 324 | this.snackbar = true; |
325 | 325 | this.text = "Payment added successfully"; |
326 | 326 | this.loading = false; |
327 | 327 | this.$emit("update-Payment"); |
328 | 328 | }) |
329 | - .catch(error => { | |
329 | + .catch((error) => { | |
330 | 330 | console.log(error); |
331 | 331 | this.snackbar = true; |
332 | 332 | this.text = error.response.data.message; |
... | ... | @@ -336,7 +336,7 @@ export default { |
336 | 336 | clear() { |
337 | 337 | this.$refs.form.reset(); |
338 | 338 | }, |
339 | - deleteSelectFee: function(feeTyp, feeTypeList, index) { | |
339 | + deleteSelectFee: function (feeTyp, feeTypeList, index) { | |
340 | 340 | this.editPayment.feeType.splice(index, 1); |
341 | 341 | this.getAmmountDetails(feeTyp, feeTypeList); |
342 | 342 | if (this.feeTypeData.length == 0) { |
... | ... | @@ -345,20 +345,20 @@ export default { |
345 | 345 | discount: "0.00", |
346 | 346 | paidAmount: "0.00", |
347 | 347 | subTotal: "0.00", |
348 | - feeTypeList: "" | |
348 | + feeTypeList: "", | |
349 | 349 | }; |
350 | 350 | } |
351 | 351 | }, |
352 | 352 | getAllClasses() { |
353 | 353 | http() |
354 | 354 | .get("/getClassesList", { |
355 | - headers: { Authorization: "Bearer " + this.token } | |
355 | + headers: { Authorization: "Bearer " + this.token }, | |
356 | 356 | }) |
357 | - .then(response => { | |
357 | + .then((response) => { | |
358 | 358 | this.addclass = response.data.data; |
359 | 359 | this.getAllStudents(); |
360 | 360 | }) |
361 | - .catch(error => { | |
361 | + .catch((error) => { | |
362 | 362 | // console.log("err====>", err); |
363 | 363 | this.showLoader = false; |
364 | 364 | if (error.response.status === 401) { |
... | ... | @@ -373,24 +373,24 @@ export default { |
373 | 373 | http() |
374 | 374 | .get("/getStudentsList", { |
375 | 375 | params: { classId: this.editPayment.classNum }, |
376 | - headers: { Authorization: "Bearer " + this.token } | |
376 | + headers: { Authorization: "Bearer " + this.token }, | |
377 | 377 | }) |
378 | - .then(response => { | |
378 | + .then((response) => { | |
379 | 379 | this.studentList = response.data.data; |
380 | 380 | }) |
381 | - .catch(err => { | |
381 | + .catch((err) => { | |
382 | 382 | // console.log("err====>", err); |
383 | 383 | }); |
384 | 384 | }, |
385 | 385 | getfeeType() { |
386 | 386 | http() |
387 | 387 | .get("/getFeesList", { |
388 | - headers: { Authorization: "Bearer " + this.token } | |
388 | + headers: { Authorization: "Bearer " + this.token }, | |
389 | 389 | }) |
390 | - .then(response => { | |
390 | + .then((response) => { | |
391 | 391 | this.feeTypes = response.data.data; |
392 | 392 | }) |
393 | - .catch(err => { | |
393 | + .catch((err) => { | |
394 | 394 | // console.log("err====>", err); |
395 | 395 | }); |
396 | 396 | }, |
... | ... | @@ -401,7 +401,7 @@ export default { |
401 | 401 | discount: "", |
402 | 402 | subTotal: "", |
403 | 403 | subParticularTotal: "", |
404 | - paidAmount: "" | |
404 | + paidAmount: "", | |
405 | 405 | }; |
406 | 406 | for (let i = 0; i < this.feeTypeData.length; i++) { |
407 | 407 | // *********** AMOUNT *********** |
... | ... | @@ -478,7 +478,7 @@ export default { |
478 | 478 | this.feeType.paidAmount = feeType.subTotal; |
479 | 479 | } |
480 | 480 | } |
481 | - } | |
481 | + }, | |
482 | 482 | // getPayMethodList() { |
483 | 483 | // if (this.editPayment.paymentStatus == "PARTIALLY_PAID") { |
484 | 484 | // this.showPayMethods = true; |
... | ... | @@ -495,14 +495,14 @@ export default { |
495 | 495 | this.getfeeType(); |
496 | 496 | }, |
497 | 497 | created() { |
498 | - this.$root.$on("app:search", search => { | |
498 | + this.$root.$on("app:search", (search) => { | |
499 | 499 | this.search = search; |
500 | 500 | }); |
501 | 501 | }, |
502 | 502 | beforeDestroy() { |
503 | 503 | // dont forget to remove the listener |
504 | 504 | this.$root.$off("app:search"); |
505 | - } | |
505 | + }, | |
506 | 506 | }; |
507 | 507 | </script> |
508 | 508 | ... | ... |
src/pages/Course/courseDetail.vue
... | ... | @@ -394,7 +394,7 @@ |
394 | 394 | </v-flex> |
395 | 395 | </v-layout> |
396 | 396 | <!-- LINK TO PDF --> |
397 | - <v-layout row justify-center> | |
397 | + <v-layout row justify-center v-show="editedItem.pdfFileUrl != ''"> | |
398 | 398 | <v-flex xs6> |
399 | 399 | <div style="width: 100%;"> |
400 | 400 | <a |
... | ... | @@ -967,7 +967,7 @@ export default { |
967 | 967 | }); |
968 | 968 | }, |
969 | 969 | profile(item) { |
970 | - console.log("chaper - ", item); | |
970 | + // console.log("chaper - ", item); | |
971 | 971 | this.editedIndex = this.chapters.indexOf(item); |
972 | 972 | this.editedItem = Object.assign({}, item); |
973 | 973 | this.viewProfileGallery = true; | ... | ... |
src/pages/Dashboard/LiveOnlineClass.vue
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 | class="open-dialog-button" |
44 | 44 | dark |
45 | 45 | v-if="studentBtn" |
46 | - @click="startChat();" | |
46 | + @click="showLoader = true;startChat();" | |
47 | 47 | >{{studentBtn}}</v-btn> |
48 | 48 | <span class="subheading grey--twxt lighten-1" v-else>Session hasnt started yet</span> |
49 | 49 | </div> |
... | ... | @@ -71,7 +71,7 @@ |
71 | 71 | <!-- JOIN OR END SESSION --> |
72 | 72 | <v-flex> |
73 | 73 | <div> |
74 | - <v-btn round class="open-dialog-button" dark @click="startChat()">Start Session</v-btn> | |
74 | + <v-btn round class="open-dialog-button" dark @click="showLoader = true;startChat()">Start Session</v-btn> | |
75 | 75 | </div> |
76 | 76 | </v-flex> |
77 | 77 | <v-flex id="teacherClone"> |
... | ... | @@ -233,6 +233,7 @@ export default { |
233 | 233 | _this.api.executeCommand("displayName", _this.username); |
234 | 234 | _this.api.executeCommand("password", _this.roomPassword); |
235 | 235 | }); |
236 | + this.showLoader = false | |
236 | 237 | this.api.on("readyToClose", () => { |
237 | 238 | this.$router.push({name:"Refresh"}) |
238 | 239 | }); |
... | ... | @@ -323,7 +324,7 @@ export default { |
323 | 324 | var username = response.data.data[0].teacherId.name; |
324 | 325 | this.roomPassword = response.data.data[0].password; |
325 | 326 | var this_ = this; |
326 | - console.log(this.room, this.roomPassword, this.username); | |
327 | + console.log("student - ",response); | |
327 | 328 | |
328 | 329 | if (username != "" || room != "") { |
329 | 330 | if (window.JitsiMeetExternalAPI) { | ... | ... |
src/pages/Dashboard/dashboard.vue
... | ... | @@ -530,7 +530,7 @@ |
530 | 530 | |
531 | 531 | <!-- LATEST EVENTS --> |
532 | 532 | <v-card class="my-3 elevation-0" v-if="role != 'TEACHER'"> |
533 | - <v-card-text> | |
533 | + <v-card-text v-if="$store.state.role === 'ADMIN' "> | |
534 | 534 | <v-card-title class="justify-center subheading font-weight-bold">Latest Events</v-card-title> |
535 | 535 | <div |
536 | 536 | v-for="(activity,index) in activityList" |
... | ... | @@ -544,20 +544,7 @@ |
544 | 544 | style="height: 12px;width: 12px;border-radius: 50%;display: inline-block;vertical-align: top;" |
545 | 545 | ></span> |
546 | 546 | <div style="display: inline-block;" class="ml-2"> |
547 | - <!-- LATEST EVENTS FOR PARENT --> | |
548 | - <div v-if="$store.state.role === 'PARENT' "> | |
549 | - <div | |
550 | - class="grey--text lighten-1 caption" | |
551 | - v-if="activity.meetingEvent" | |
552 | - >{{moment(activity.meetingEvent.dateOfEvent).format("DD MMMM, YYYY")}}</div> | |
553 | - <div | |
554 | - class="body-2" | |
555 | - v-if="activity.meetingEvent" | |
556 | - >{{activity.meetingEvent.title}}</div> | |
557 | - </div> | |
558 | - | |
559 | - <!-- LATEST EVENTS FOR TEACHER --> | |
560 | - <div v-if="role == 'TEACHER'"> | |
547 | + <div> | |
561 | 548 | <div |
562 | 549 | class="grey--text lighten-1 caption" |
563 | 550 | v-if="activity.dateOfEvent" |
... | ... | @@ -570,6 +557,43 @@ |
570 | 557 | <p class="text-center title grey lighten-4 error--text">No Data Found!</p> |
571 | 558 | </div> |
572 | 559 | </v-card-text> |
560 | + <v-card-text> | |
561 | + <!-- <v-card-title class="justify-center subheading font-weight-bold">Latest Events</v-card-title> --> | |
562 | + <!-- <div | |
563 | + v-for="(activity,index) in activityList" | |
564 | + :key="index" | |
565 | + class="mt-2" | |
566 | + style="cursor: pointer;" | |
567 | + @click="seeEventDetails(activity)" | |
568 | + > | |
569 | + <span | |
570 | + :style="{ 'background-color': colorsArray[index%colorsArray.length] }" | |
571 | + style="height: 12px;width: 12px;border-radius: 50%;display: inline-block;vertical-align: top;" | |
572 | + ></span>--> | |
573 | + <div style="display: inline-block;" class="ml-2"> | |
574 | + <!-- LATEST EVENTS FOR PARENT --> | |
575 | + <div v-if="$store.state.role === 'PARENT' "> | |
576 | + <div | |
577 | + class="grey--text lighten-1 caption" | |
578 | + v-if="activity.meetingEvent" | |
579 | + >{{moment(activity.meetingEvent.dateOfEvent).format("DD MMMM, YYYY")}}</div> | |
580 | + <div class="body-2" v-if="activity.meetingEvent">{{activity.meetingEvent.title}}</div> | |
581 | + </div> | |
582 | + | |
583 | + <!-- LATEST EVENTS FOR TEACHER --> | |
584 | + <div v-if="role === 'TEACHER'"> | |
585 | + <div | |
586 | + class="grey--text lighten-1 caption" | |
587 | + v-if="activity.dateOfEvent" | |
588 | + >{{moment(activity.dateOfEvent).format("DD MMMM, YYYY")}}</div> | |
589 | + <div class="body-2" v-if="activity.title">{{activity.title}}</div> | |
590 | + </div> | |
591 | + </div> | |
592 | + <div v-if="activityList.length == 0"> | |
593 | + <p class="text-center title grey lighten-4 error--text">No Data Found!</p> | |
594 | + </div> | |
595 | + <!-- </div> --> | |
596 | + </v-card-text> | |
573 | 597 | </v-card> |
574 | 598 | </v-card-text> |
575 | 599 | </v-card> |
... | ... | @@ -801,6 +825,12 @@ export default { |
801 | 825 | }); |
802 | 826 | this.viewEventDetails = true; |
803 | 827 | } |
828 | + if (this.$store.state.role === "ADMIN") { | |
829 | + await this.getParticularMeetingEvent({ | |
830 | + meetingEventId: activity._id, | |
831 | + }); | |
832 | + this.viewEventDetails = true; | |
833 | + } | |
804 | 834 | }, |
805 | 835 | async routeToCourseDetails(courseId) { |
806 | 836 | /* getParticularCourseDetail- To get courseDetail - defined in GetApis.js*/ |
... | ... | @@ -1017,7 +1047,7 @@ export default { |
1017 | 1047 | }); |
1018 | 1048 | }, |
1019 | 1049 | async getMeetingEventes() { |
1020 | - if (this.role == "TEACHER") { | |
1050 | + if (this.role == "TEACHER" || this.role === "ADMIN") { | |
1021 | 1051 | this.showLoader = true; |
1022 | 1052 | await http() |
1023 | 1053 | .get("/getMeetingEventesList") |
... | ... | @@ -1102,7 +1132,7 @@ export default { |
1102 | 1132 | } |
1103 | 1133 | |
1104 | 1134 | /* get Latest events list for teacher login*/ |
1105 | - if (this.role == "TEACHER") { | |
1135 | + if (this.role == "TEACHER" || this.role == "ADMIN") { | |
1106 | 1136 | await this.getMeetingEventes(); |
1107 | 1137 | } |
1108 | 1138 | }, |
... | ... | @@ -1115,7 +1145,4 @@ export default { |
1115 | 1145 | a { |
1116 | 1146 | color: white; |
1117 | 1147 | } |
1118 | - | |
1119 | -#pages-dasboard { | |
1120 | -} | |
1121 | 1148 | </style> |
1122 | 1149 | \ No newline at end of file | ... | ... |
src/pages/Report/admitCard.vue
... | ... | @@ -136,12 +136,17 @@ |
136 | 136 | style="widht:80px;height:80px;" |
137 | 137 | v-else-if="!userData.schoolLogoUrl" |
138 | 138 | /> |
139 | + <div class="school-name"> | |
140 | + <h3>{{ schoolData.address }}</h3> | |
141 | + <p>{{ schoolData.mobile }}</p> | |
142 | + </div> | |
139 | 143 | </v-flex> |
140 | 144 | <v-flex xs5 style="text-align:center;margin-bottom:0px"> |
141 | 145 | <p |
142 | 146 | style="font-size:24px;color: #700CE8;letter-spacing:1px;margin-bottom: 4px" |
143 | - >{{ userData.name }}</p> | |
144 | - <p>{{ userData.address }} {{ userData.pinCode }}</p> | |
147 | + >{{ schoolData.name }}</p> | |
148 | + <p>{{ schoolData.email }}</p> | |
149 | + | |
145 | 150 | <div> |
146 | 151 | <h4>{{ getScheduleList.scheduleData[0].examId.examName }} Exam Admit Card</h4> |
147 | 152 | </div> |
... | ... | @@ -358,6 +363,7 @@ |
358 | 363 | import http from "@/Services/http.js"; |
359 | 364 | import moment from "moment"; |
360 | 365 | import _ from "underscore"; |
366 | +var qs = require("qs"); | |
361 | 367 | |
362 | 368 | export default { |
363 | 369 | data: () => ({ |
... | ... | @@ -394,7 +400,7 @@ export default { |
394 | 400 | scheduleData: {}, |
395 | 401 | examData: [], |
396 | 402 | addSection: [], |
397 | - getStudentsList: [], | |
403 | + getStudentsList: [{ name: "Select All", _id: "selectAll" }], | |
398 | 404 | getScheduleList: [], |
399 | 405 | getScheduleListArray: [], |
400 | 406 | getReport: {}, |
... | ... | @@ -520,7 +526,10 @@ export default { |
520 | 526 | }, |
521 | 527 | }) |
522 | 528 | .then((response) => { |
523 | - this.getStudentsList = response.data.data; | |
529 | + for (var i = 0; i < response.data.data.length; i++) { | |
530 | + this.getStudentsList.push(response.data.data[i]); | |
531 | + } | |
532 | + | |
524 | 533 | this.showLoader = false; |
525 | 534 | }) |
526 | 535 | .catch((error) => { |
... | ... | @@ -531,18 +540,32 @@ export default { |
531 | 540 | getSchedule() { |
532 | 541 | if (this.$refs.form.validate()) { |
533 | 542 | this.showLoader = true; |
543 | + let studentId = []; | |
544 | + if (this.getReport.studentId == "selectAll") { | |
545 | + studentId = []; | |
546 | + for (var i = 1; i < this.getStudentsList.length; i++) { | |
547 | + studentId.push(this.getStudentsList[i]._id); | |
548 | + } | |
549 | + } else { | |
550 | + studentId = this.getReport.studentId; | |
551 | + } | |
552 | + console.log("this.getReport.studentId - ", studentId); | |
534 | 553 | http() |
535 | 554 | .get("/getScheduleForParticularStudent", { |
536 | 555 | params: { |
537 | 556 | examId: this.getReport.examId, |
538 | 557 | classId: this.getReport.classId, |
539 | 558 | sectionId: this.getReport.sectionId, |
540 | - studentId: this.getReport.studentId, | |
559 | + studentId: studentId, | |
560 | + }, | |
561 | + paramsSerializer: (params) => { | |
562 | + return qs.stringify(params); | |
541 | 563 | }, |
542 | 564 | }) |
543 | 565 | .then((response) => { |
544 | 566 | this.showTable = true; |
545 | 567 | this.getScheduleList = response.data.data; |
568 | + this.schoolData = response.data.data.studentData.schoolId; | |
546 | 569 | if (response.data.data.scheduleData.length === 0) { |
547 | 570 | this.showLoader = false; |
548 | 571 | this.snackbar = true; | ... | ... |
src/pages/Report/progressCardReport.vue
... | ... | @@ -136,7 +136,7 @@ |
136 | 136 | /> |
137 | 137 | </div> |
138 | 138 | <div class="school-name"> |
139 | - <h3>{{ userData.name }}</h3> | |
139 | + <h3>{{ schoolData.name }}</h3> | |
140 | 140 | </div> |
141 | 141 | </v-layout> |
142 | 142 | <!-- </v-flex> --> |
... | ... | @@ -157,16 +157,16 @@ |
157 | 157 | > |
158 | 158 | <p |
159 | 159 | style="font-size:20px;margin-bottom: 0px;" |
160 | - >{{ userData.name }}</p> | |
160 | + >{{ schoolData.name }}</p> | |
161 | 161 | <p |
162 | 162 | style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;" |
163 | - >{{ userData.address }}</p> | |
163 | + >{{ schoolData.address }}</p> | |
164 | 164 | <p |
165 | 165 | style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;" |
166 | - >Phone : {{ userData.mobile }}</p> | |
166 | + >Phone : {{ schoolData.mobile }}</p> | |
167 | 167 | <p |
168 | 168 | style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;" |
169 | - >Email : {{ userData.email }}</p> | |
169 | + >Email : {{ schoolData.email }}</p> | |
170 | 170 | </div> |
171 | 171 | </div> |
172 | 172 | <!-- Profile Student Report Card--> |
... | ... | @@ -424,9 +424,9 @@ export default { |
424 | 424 | addSection: [], |
425 | 425 | filterData: [], |
426 | 426 | getStudentsList: [], |
427 | - classRules: [v => !!v || "Class is required"], | |
428 | - sectionRules: [v => !!v || "Class is required"], | |
429 | - studentRules: [v => !!v || "Student is required"], | |
427 | + classRules: [(v) => !!v || "Class is required"], | |
428 | + sectionRules: [(v) => !!v || "Class is required"], | |
429 | + studentRules: [(v) => !!v || "Student is required"], | |
430 | 430 | getReport: {}, |
431 | 431 | classList: [], |
432 | 432 | output: null, |
... | ... | @@ -438,7 +438,7 @@ export default { |
438 | 438 | gradeB: "B", |
439 | 439 | gradeCPlus: "C+", |
440 | 440 | gradeC: "C", |
441 | - totalMarks: "" | |
441 | + totalMarks: "", | |
442 | 442 | }), |
443 | 443 | mounted() { |
444 | 444 | this.token = this.$store.state.token; |
... | ... | @@ -453,13 +453,13 @@ export default { |
453 | 453 | this.showLoader = true; |
454 | 454 | http() |
455 | 455 | .get("/getClassesList", { |
456 | - headers: { Authorization: "Bearer " + this.token } | |
456 | + headers: { Authorization: "Bearer " + this.token }, | |
457 | 457 | }) |
458 | - .then(response => { | |
458 | + .then((response) => { | |
459 | 459 | this.classList = response.data.data; |
460 | 460 | this.showLoader = false; |
461 | 461 | }) |
462 | - .catch(error => { | |
462 | + .catch((error) => { | |
463 | 463 | this.showLoader = false; |
464 | 464 | // console.log("err====>", err); |
465 | 465 | }); |
... | ... | @@ -471,14 +471,14 @@ export default { |
471 | 471 | "/getSectionsList", |
472 | 472 | { params: { classId: _id } }, |
473 | 473 | { |
474 | - headers: { Authorization: "Bearer " + this.token } | |
474 | + headers: { Authorization: "Bearer " + this.token }, | |
475 | 475 | } |
476 | 476 | ) |
477 | - .then(response => { | |
477 | + .then((response) => { | |
478 | 478 | this.addSection = response.data.data; |
479 | 479 | this.showLoader = false; |
480 | 480 | }) |
481 | - .catch(err => { | |
481 | + .catch((err) => { | |
482 | 482 | this.showLoader = false; |
483 | 483 | // console.log("err====>", err); |
484 | 484 | }); |
... | ... | @@ -489,18 +489,18 @@ export default { |
489 | 489 | .get("/getStudentWithClass", { |
490 | 490 | params: { |
491 | 491 | classId: this.getReport.classId, |
492 | - sectionId: this.getReport.sectionId | |
493 | - } | |
492 | + sectionId: this.getReport.sectionId, | |
493 | + }, | |
494 | 494 | }) |
495 | - .then(response => { | |
495 | + .then((response) => { | |
496 | 496 | response.data.data.unshift({ |
497 | 497 | name: "Select All", |
498 | - _id: "Select All" | |
498 | + _id: "Select All", | |
499 | 499 | }); |
500 | 500 | this.getStudentsList = response.data.data; |
501 | 501 | this.showLoader = false; |
502 | 502 | }) |
503 | - .catch(error => { | |
503 | + .catch((error) => { | |
504 | 504 | console.log("err====>", error); |
505 | 505 | this.showLoader = false; |
506 | 506 | }); |
... | ... | @@ -512,22 +512,24 @@ export default { |
512 | 512 | if (this.getReport.studentId == "Select All") { |
513 | 513 | getSelectMarks = { |
514 | 514 | classId: this.getReport.classId, |
515 | - sectionId: this.getReport.sectionId | |
515 | + sectionId: this.getReport.sectionId, | |
516 | 516 | }; |
517 | 517 | } else if (this.getReport.studentId != "Select All") { |
518 | 518 | getSelectMarks = { |
519 | 519 | classId: this.getReport.classId, |
520 | 520 | sectionId: this.getReport.sectionId, |
521 | - studentId: this.getReport.studentId | |
521 | + studentId: this.getReport.studentId, | |
522 | 522 | }; |
523 | 523 | } |
524 | 524 | http() |
525 | 525 | .get("/getParticularMark", { |
526 | 526 | params: getSelectMarks, |
527 | - headers: { Authorization: "Bearer " + this.token } | |
527 | + headers: { Authorization: "Bearer " + this.token }, | |
528 | 528 | }) |
529 | - .then(response => { | |
529 | + .then((response) => { | |
530 | + console.log("===response===", response.data.data[0].schoolId); | |
530 | 531 | this.cardData = response.data.data; |
532 | + this.schoolData = response.data.data[0].schoolId; | |
531 | 533 | let newData = response.data.data; |
532 | 534 | for (var i = 0; i < newData.length; i++) { |
533 | 535 | newData[i].examination = newData[i].examId._id; |
... | ... | @@ -537,7 +539,7 @@ export default { |
537 | 539 | studentMarkArray = _.groupBy(newData, ["studentsId"]); |
538 | 540 | for (let data in studentMarkArray) { |
539 | 541 | studentMarkArray[data] = _.groupBy(studentMarkArray[data], [ |
540 | - "examination" | |
542 | + "examination", | |
541 | 543 | ]); |
542 | 544 | } |
543 | 545 | this.filterData = studentMarkArray; |
... | ... | @@ -584,7 +586,7 @@ export default { |
584 | 586 | |
585 | 587 | this.showLoader = false; |
586 | 588 | }) |
587 | - .catch(error => { | |
589 | + .catch((error) => { | |
588 | 590 | // console.log("err====>", err); |
589 | 591 | this.showLoader = false; |
590 | 592 | this.snackbar = true; |
... | ... | @@ -607,18 +609,18 @@ export default { |
607 | 609 | getUserData() { |
608 | 610 | http() |
609 | 611 | .get("/getParticularUserDetail") |
610 | - .then(response => { | |
612 | + .then((response) => { | |
611 | 613 | this.userData = response.data.data; |
612 | 614 | }) |
613 | - .catch(error => { | |
615 | + .catch((error) => { | |
614 | 616 | if (error.response.status === 401) { |
615 | 617 | this.$router.replace({ path: "/" }); |
616 | 618 | this.$store.dispatch("setToken", null); |
617 | 619 | this.$store.dispatch("Id", null); |
618 | 620 | } |
619 | 621 | }); |
620 | - } | |
621 | - } | |
622 | + }, | |
623 | + }, | |
622 | 624 | }; |
623 | 625 | </script> |
624 | 626 | ... | ... |
src/pages/School/appVersion.vue
... | ... | @@ -0,0 +1,200 @@ |
1 | +<template> | |
2 | + <v-container fluid class="body-color"> | |
3 | + <!-- SHOW TABLE --> | |
4 | + <v-data-table :headers="headers" :items="versionList"> | |
5 | + <template slot="items" slot-scope="props"> | |
6 | + <tr class="tr"> | |
7 | + <td class="text-xs-center td td-row">{{ props.index + 1}}</td> | |
8 | + <td class="text-xs-center td td-row">{{ props.item.androidAppVersion}}</td> | |
9 | + <td class="text-xs-center td td-row">{{ props.item.iosAppVersion}}</td> | |
10 | + <td class="text-xs-center td td-row"> | |
11 | + <span> | |
12 | + <v-tooltip top> | |
13 | + <img | |
14 | + slot="activator" | |
15 | + style="cursor:pointer; width:20px; height:18px; " | |
16 | + @click="editAppVersion(props.item)" | |
17 | + src="/static/icon/edit.png" | |
18 | + class="mr-3" | |
19 | + /> | |
20 | + <span>Edit</span> | |
21 | + </v-tooltip> | |
22 | + </span> | |
23 | + </td> | |
24 | + </tr> | |
25 | + </template> | |
26 | + </v-data-table> | |
27 | + | |
28 | + <!-- EDIT VERSION DILAOG --> | |
29 | + <v-dialog v-model="editVerionDilaog" max-width="600px" scrollable> | |
30 | + <v-card flat class="card-style pa-2" dark> | |
31 | + <v-layout> | |
32 | + <v-flex xs12> | |
33 | + <label class="title text-xs-center">Edit Version</label> | |
34 | + <v-icon size="24" class="right" @click="editVerionDilaog = false">cancel</v-icon> | |
35 | + </v-flex> | |
36 | + </v-layout> | |
37 | + <v-card-text class="hidden-xs-only hidden-sm-only"> | |
38 | + <v-form ref="editAppVersionForm" v-model="validEditVersion" lazy-validation> | |
39 | + <v-flex xs12> | |
40 | + <v-layout> | |
41 | + <v-flex xs3 sm4 class="pt-4 subheading"> | |
42 | + <label class="right">App Version:</label> | |
43 | + </v-flex> | |
44 | + <v-flex xs8 sm6 class="ml-3"> | |
45 | + <v-text-field | |
46 | + placeholder="fill app version" | |
47 | + v-model="editedItem.androidAppVersion" | |
48 | + required | |
49 | + ></v-text-field> | |
50 | + </v-flex> | |
51 | + </v-layout> | |
52 | + </v-flex> | |
53 | + <v-flex xs12> | |
54 | + <v-layout> | |
55 | + <v-flex xs3 sm4 class="pt-4 subheading"> | |
56 | + <label class="right">IOS Version:</label> | |
57 | + </v-flex> | |
58 | + <v-flex xs8 sm6 class="ml-3"> | |
59 | + <v-text-field | |
60 | + placeholder="fill ios version" | |
61 | + v-model="editedItem.iosAppVersion" | |
62 | + required | |
63 | + ></v-text-field> | |
64 | + </v-flex> | |
65 | + </v-layout> | |
66 | + </v-flex> | |
67 | + <v-layout> | |
68 | + <v-flex xs12 sm12> | |
69 | + <v-card-actions> | |
70 | + <v-spacer></v-spacer> | |
71 | + <v-btn round dark @click="update" class="add-button">Update</v-btn> | |
72 | + <v-spacer></v-spacer> | |
73 | + </v-card-actions> | |
74 | + </v-flex> | |
75 | + </v-layout> | |
76 | + </v-form> | |
77 | + </v-card-text> | |
78 | + </v-card> | |
79 | + </v-dialog> | |
80 | + | |
81 | + <div class="loader" v-if="showLoader"> | |
82 | + <v-progress-circular indeterminate color="white"></v-progress-circular> | |
83 | + </div> | |
84 | + <v-snackbar | |
85 | + :timeout="timeout" | |
86 | + :top="y === 'top'" | |
87 | + :right="x === 'right'" | |
88 | + :vertical="mode === 'vertical'" | |
89 | + v-model="snackbar" | |
90 | + color="success" | |
91 | + >{{ text }}</v-snackbar> | |
92 | + </v-container> | |
93 | +</template> | |
94 | + | |
95 | +<script> | |
96 | +import http from "@/Services/http.js"; | |
97 | +import Util from "@/util"; | |
98 | +import moment from "moment"; | |
99 | + | |
100 | +export default { | |
101 | + data: () => ({ | |
102 | + //SNACKBAR | |
103 | + snackbar: false, | |
104 | + y: "top", | |
105 | + x: "right", | |
106 | + color: "", | |
107 | + mode: "", | |
108 | + timeout: 3000, | |
109 | + text: "", | |
110 | + | |
111 | + headers: [ | |
112 | + { | |
113 | + text: "No", | |
114 | + align: "center", | |
115 | + sortable: false, | |
116 | + value: "No", | |
117 | + }, | |
118 | + { | |
119 | + text: "Android App Version", | |
120 | + value: "", | |
121 | + sortable: false, | |
122 | + align: "center", | |
123 | + }, | |
124 | + { | |
125 | + text: "IOS App Version", | |
126 | + value: "", | |
127 | + sortable: false, | |
128 | + align: "center", | |
129 | + }, | |
130 | + { text: "Action", value: "", sortable: false, align: "center" }, | |
131 | + ], | |
132 | + versionList: [], | |
133 | + editedItem: { | |
134 | + androidAppVersion: "", | |
135 | + iosAppVersion: "", | |
136 | + }, | |
137 | + | |
138 | + editVerionDilaog: false, | |
139 | + validEditVersion: true, | |
140 | + showLoader: false, | |
141 | + }), | |
142 | + | |
143 | + methods: { | |
144 | + editAppVersion(item) { | |
145 | + this.editedIndex = this.versionList.indexOf(item); | |
146 | + this.editedItem = Object.assign({}, item); | |
147 | + this.editVerionDilaog = true; | |
148 | + }, | |
149 | + getAppVersion() { | |
150 | + http() | |
151 | + .get("getAppVersion", { | |
152 | + headers: { | |
153 | + Authorization: "Bearer " + this.schoolToken, | |
154 | + }, | |
155 | + }) | |
156 | + .then((response) => { | |
157 | + this.versionList = [response.data.data]; | |
158 | + }) | |
159 | + .catch((error) => { | |
160 | + this.showLoader = false; | |
161 | + this.snackbar = true; | |
162 | + this.color = "error"; | |
163 | + this.text = error.response.data.message; | |
164 | + }); | |
165 | + }, | |
166 | + update() { | |
167 | + if (this.$refs.editAppVersionForm.validate()) { | |
168 | + let editVersion = { | |
169 | + appVersionId: this.editedItem._id, | |
170 | + androidAppVersion: this.editedItem.androidAppVersion, | |
171 | + iosAppVersion: this.editedItem.iosAppVersion, | |
172 | + }; | |
173 | + http() | |
174 | + .put("/updateAppVersion", editVersion, { | |
175 | + headers: { Authorization: "Bearer " + this.schoolToken }, | |
176 | + }) | |
177 | + .then((response) => { | |
178 | + this.snackbar = true; | |
179 | + this.color = "success"; | |
180 | + this.text = response.data.message; | |
181 | + this.getAppVersion(); | |
182 | + this.editVerionDilaog = false; | |
183 | + }) | |
184 | + .catch((error) => { | |
185 | + this.snackbar = true; | |
186 | + this.color = "error"; | |
187 | + this.text = error.response.data.message; | |
188 | + }); | |
189 | + } | |
190 | + }, | |
191 | + }, | |
192 | + | |
193 | + mounted() { | |
194 | + this.getAppVersion(); | |
195 | + this.role = this.$store.state.role; | |
196 | + this.token = this.$store.state.token; | |
197 | + this.schoolToken = this.$store.state.schoolToken; | |
198 | + }, | |
199 | +}; | |
200 | +</script> | |
0 | 201 | \ No newline at end of file | ... | ... |
src/pages/School/school.vue
... | ... | @@ -30,12 +30,13 @@ |
30 | 30 | >{{ text }}</v-snackbar> |
31 | 31 | <v-dialog v-model="dialog" max-width="1500px" scrollable> |
32 | 32 | <v-card flat> |
33 | - <v-toolbar color="grey lighten-2" flat> | |
33 | + <v-toolbar dark class="card-styles" flat> | |
34 | 34 | <v-spacer></v-spacer> |
35 | 35 | <v-toolbar-title> |
36 | 36 | <h3>Edit School</h3> |
37 | 37 | </v-toolbar-title> |
38 | 38 | <v-spacer></v-spacer> |
39 | + <v-icon size="24" class="right" @click="dialog = false">cancel</v-icon> | |
39 | 40 | </v-toolbar> |
40 | 41 | <v-card-text style="height: 686px;"> |
41 | 42 | <v-form ref="form"> |
... | ... | @@ -305,10 +306,16 @@ |
305 | 306 | <v-flex xs12 sm12> |
306 | 307 | <v-layout> |
307 | 308 | <v-flex xs6> |
308 | - <v-btn round dark @click.native="close">Cancel</v-btn> | |
309 | + <v-btn round dark @click.native="close" class="clear-button">Cancel</v-btn> | |
309 | 310 | </v-flex> |
310 | 311 | <v-flex xs6> |
311 | - <v-btn @click="save" round dark :loading="loading" class="right">Save</v-btn> | |
312 | + <v-btn | |
313 | + @click="save" | |
314 | + round | |
315 | + dark | |
316 | + :loading="loading" | |
317 | + class="right add-button" | |
318 | + >Save</v-btn> | |
312 | 319 | </v-flex> |
313 | 320 | </v-layout> |
314 | 321 | </v-flex> |
... | ... | @@ -718,10 +725,16 @@ |
718 | 725 | <v-flex xs12 sm11 offset-md1> |
719 | 726 | <v-layout> |
720 | 727 | <v-flex xs6> |
721 | - <v-btn round dark @click="clear()">Clear</v-btn> | |
728 | + <v-btn round dark @click="clear()" class="clear-button">Clear</v-btn> | |
722 | 729 | </v-flex> |
723 | 730 | <v-flex xs6> |
724 | - <v-btn @click="submit" round dark :loading="loading" class="right">Add</v-btn> | |
731 | + <v-btn | |
732 | + @click="submit" | |
733 | + round | |
734 | + dark | |
735 | + :loading="loading" | |
736 | + class="right add-button" | |
737 | + >Add</v-btn> | |
725 | 738 | </v-flex> |
726 | 739 | </v-layout> |
727 | 740 | </v-flex> |
... | ... | @@ -764,31 +777,31 @@ export default { |
764 | 777 | isActive: true, |
765 | 778 | newActive: false, |
766 | 779 | pagination: { |
767 | - rowsPerPage: 15 | |
780 | + rowsPerPage: 15, | |
768 | 781 | }, |
769 | 782 | imageData: {}, |
770 | 783 | imageName: "", |
771 | 784 | imageUrl: "", |
772 | 785 | imageFile: "", |
773 | - nameRules: [v => !!v || "Full Name is required"], | |
774 | - dateRules: [v => !!v || "DOB is required"], | |
775 | - cityRules: [v => !!v || "City Name is required"], | |
776 | - pincode: [v => !!v || " Pincode is required"], | |
777 | - country: [v => !!v || " Country Name is required"], | |
778 | - permanentAddress: [v => !!v || " Permanent Address is requiclearred"], | |
779 | - presentAddress: [v => !!v || " Present Address is required"], | |
780 | - mobileNoRules: [v => !!v || "Mobile Number is required"], | |
781 | - stateRules: [v => !!v || "State Name is required"], | |
782 | - schoolDetailRule: [v => !!v || "school Detail is required"], | |
783 | - sectionRules: [v => !!v || " Section Name is required"], | |
784 | - genderRules: [v => !!v || " Select Gender is required"], | |
785 | - establishmentYearRules: [v => !!v || " Academic Year is required"], | |
786 | + nameRules: [(v) => !!v || "Full Name is required"], | |
787 | + dateRules: [(v) => !!v || "DOB is required"], | |
788 | + cityRules: [(v) => !!v || "City Name is required"], | |
789 | + pincode: [(v) => !!v || " Pincode is required"], | |
790 | + country: [(v) => !!v || " Country Name is required"], | |
791 | + permanentAddress: [(v) => !!v || " Permanent Address is requiclearred"], | |
792 | + presentAddress: [(v) => !!v || " Present Address is required"], | |
793 | + mobileNoRules: [(v) => !!v || "Mobile Number is required"], | |
794 | + stateRules: [(v) => !!v || "State Name is required"], | |
795 | + schoolDetailRule: [(v) => !!v || "school Detail is required"], | |
796 | + sectionRules: [(v) => !!v || " Section Name is required"], | |
797 | + genderRules: [(v) => !!v || " Select Gender is required"], | |
798 | + establishmentYearRules: [(v) => !!v || " Academic Year is required"], | |
786 | 799 | errorMessages: "", |
787 | 800 | emailRules: [ |
788 | - v => !!v || "E-mail is required", | |
789 | - v => | |
801 | + (v) => !!v || "E-mail is required", | |
802 | + (v) => | |
790 | 803 | /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(v) || |
791 | - "E-mail must be valid" | |
804 | + "E-mail must be valid", | |
792 | 805 | ], |
793 | 806 | countries: [], |
794 | 807 | headers: [ |
... | ... | @@ -796,13 +809,13 @@ export default { |
796 | 809 | text: "No.", |
797 | 810 | align: "center", |
798 | 811 | sortable: false, |
799 | - value: "rollNo" | |
812 | + value: "rollNo", | |
800 | 813 | }, |
801 | 814 | { |
802 | 815 | text: "school Logo", |
803 | 816 | value: "schoolLogoUrl", |
804 | 817 | sortable: false, |
805 | - align: "center" | |
818 | + align: "center", | |
806 | 819 | }, |
807 | 820 | { text: "Name", value: "name", sortable: false, align: "center" }, |
808 | 821 | { text: "Email", value: "email", sortable: false, align: "center" }, |
... | ... | @@ -811,36 +824,36 @@ export default { |
811 | 824 | text: "State", |
812 | 825 | value: "state", |
813 | 826 | sortable: false, |
814 | - align: "center" | |
827 | + align: "center", | |
815 | 828 | }, |
816 | 829 | { |
817 | 830 | text: "Mobile", |
818 | 831 | value: "mobile", |
819 | 832 | sortable: false, |
820 | - align: "center" | |
833 | + align: "center", | |
821 | 834 | }, |
822 | - { text: "Action", value: "", sortable: false, align: "center" } | |
835 | + { text: "Action", value: "", sortable: false, align: "center" }, | |
823 | 836 | ], |
824 | 837 | schoolList: [], |
825 | 838 | editedIndex: -1, |
826 | 839 | addSchool: { |
827 | - role: "ADMIN" | |
840 | + role: "ADMIN", | |
828 | 841 | }, |
829 | 842 | editedItem: {}, |
830 | - schoolToken: {} | |
843 | + schoolToken: {}, | |
831 | 844 | }), |
832 | 845 | methods: { |
833 | 846 | getSchool() { |
834 | 847 | this.showLoader = true; |
835 | 848 | http() |
836 | 849 | .get("/getSchoolList", { |
837 | - headers: { Authorization: "Bearer " + this.$store.state.schoolToken } | |
850 | + headers: { Authorization: "Bearer " + this.$store.state.schoolToken }, | |
838 | 851 | }) |
839 | - .then(response => { | |
852 | + .then((response) => { | |
840 | 853 | this.schoolList = response.data.data; |
841 | 854 | this.showLoader = false; |
842 | 855 | }) |
843 | - .catch(error => { | |
856 | + .catch((error) => { | |
844 | 857 | this.showLoader = false; |
845 | 858 | // if (error.response.status === 401) { |
846 | 859 | // this.$router.replace({ path: "/" }); |
... | ... | @@ -853,7 +866,7 @@ export default { |
853 | 866 | pickFile() { |
854 | 867 | this.$refs.image.click(); |
855 | 868 | }, |
856 | - dates: function(date) { | |
869 | + dates: function (date) { | |
857 | 870 | return moment(date).format("MMMM DD, YYYY"); |
858 | 871 | }, |
859 | 872 | onFilePicked(e) { |
... | ... | @@ -913,16 +926,16 @@ export default { |
913 | 926 | this.loading = true; |
914 | 927 | http() |
915 | 928 | .post("/createSchool", this.addSchool, { |
916 | - headers: { Authorization: "Bearer " + this.schoolToken } | |
929 | + headers: { Authorization: "Bearer " + this.schoolToken }, | |
917 | 930 | }) |
918 | - .then(response => { | |
931 | + .then((response) => { | |
919 | 932 | this.snackbar = true; |
920 | 933 | this.text = "New School added successfully"; |
921 | 934 | this.clear(); |
922 | 935 | this.getSchool(); |
923 | 936 | this.loading = false; |
924 | 937 | }) |
925 | - .catch(error => { | |
938 | + .catch((error) => { | |
926 | 939 | this.snackbar = true; |
927 | 940 | this.text = error.response.data.message; |
928 | 941 | this.loading = false; |
... | ... | @@ -942,16 +955,16 @@ export default { |
942 | 955 | this.editedItem.schoolId = this.editedItem._id; |
943 | 956 | http() |
944 | 957 | .put("/updateSchool", this.editedItem, { |
945 | - headers: { Authorization: "Bearer " + this.schoolToken } | |
958 | + headers: { Authorization: "Bearer " + this.schoolToken }, | |
946 | 959 | }) |
947 | - .then(response => { | |
960 | + .then((response) => { | |
948 | 961 | this.snackbar = true; |
949 | 962 | this.text = "Successfully School Existing User"; |
950 | 963 | this.imageUrl = ""; |
951 | 964 | this.getSchool(); |
952 | 965 | this.close(); |
953 | 966 | }) |
954 | - .catch(error => { | |
967 | + .catch((error) => { | |
955 | 968 | // console.log(error); |
956 | 969 | if ((this.snackbar = true)) { |
957 | 970 | this.text = error.response.data.statusText; |
... | ... | @@ -964,9 +977,9 @@ export default { |
964 | 977 | http() |
965 | 978 | .get("/getAdminAccess", { |
966 | 979 | params: { schoolId: data._id }, |
967 | - headers: { Authorization: "Bearer " + this.schoolToken } | |
980 | + headers: { Authorization: "Bearer " + this.schoolToken }, | |
968 | 981 | }) |
969 | - .then(response => { | |
982 | + .then((response) => { | |
970 | 983 | this.$store.dispatch("setToken", response.data.data.token); |
971 | 984 | this.$store.dispatch("Id", response.data.data.id); |
972 | 985 | this.$store.dispatch("Role", response.data.data.role); |
... | ... | @@ -981,30 +994,30 @@ export default { |
981 | 994 | |
982 | 995 | this.showLoader = false; |
983 | 996 | }) |
984 | - .catch(error => { | |
997 | + .catch((error) => { | |
985 | 998 | this.showLoader = false; |
986 | 999 | }); |
987 | 1000 | }, |
988 | 1001 | suspendSchoolStatus(suspendStatus, id) { |
989 | 1002 | let suspendStatusData = { |
990 | 1003 | schoolId: id, |
991 | - status: suspendStatus | |
1004 | + status: suspendStatus, | |
992 | 1005 | }; |
993 | 1006 | http() |
994 | 1007 | .put("/suspendSchoolAccount", suspendStatusData, { |
995 | - headers: { Authorization: "Bearer " + this.schoolToken } | |
1008 | + headers: { Authorization: "Bearer " + this.schoolToken }, | |
996 | 1009 | }) |
997 | - .then(response => { | |
1010 | + .then((response) => { | |
998 | 1011 | this.getSchool(); |
999 | 1012 | this.text = response.data.message; |
1000 | 1013 | this.snackbar = true; |
1001 | 1014 | }) |
1002 | - .catch(error => { | |
1015 | + .catch((error) => { | |
1003 | 1016 | // console.log(error.response.data.data); |
1004 | 1017 | this.snackbar = true; |
1005 | 1018 | this.text = error.response.data.message; |
1006 | 1019 | }); |
1007 | - } | |
1020 | + }, | |
1008 | 1021 | }, |
1009 | 1022 | mounted() { |
1010 | 1023 | const getCountryList = countryList(); |
... | ... | @@ -1014,14 +1027,14 @@ export default { |
1014 | 1027 | this.getSchool(); |
1015 | 1028 | }, |
1016 | 1029 | created() { |
1017 | - this.$root.$on("app:search", search => { | |
1030 | + this.$root.$on("app:search", (search) => { | |
1018 | 1031 | this.search = search; |
1019 | 1032 | }); |
1020 | 1033 | }, |
1021 | 1034 | beforeDestroy() { |
1022 | 1035 | // dont forget to remove the listener |
1023 | 1036 | this.$root.$off("app:search"); |
1024 | - } | |
1037 | + }, | |
1025 | 1038 | }; |
1026 | 1039 | </script> |
1027 | 1040 | <style scoped> | ... | ... |
src/pages/User/user.vue
... | ... | @@ -460,7 +460,7 @@ |
460 | 460 | /> |
461 | 461 | <span>Edit</span> |
462 | 462 | </v-tooltip> |
463 | - <v-tooltip top> | |
463 | + <!-- <v-tooltip top> | |
464 | 464 | <img |
465 | 465 | slot="activator" |
466 | 466 | style="cursor:pointer; width:20px; height:20px; " |
... | ... | @@ -469,7 +469,7 @@ |
469 | 469 | src="/static/icon/delete.png" |
470 | 470 | /> |
471 | 471 | <span>Delete</span> |
472 | - </v-tooltip> | |
472 | + </v-tooltip>--> | |
473 | 473 | </span> |
474 | 474 | </td> |
475 | 475 | </template> |
... | ... | @@ -958,6 +958,8 @@ export default { |
958 | 958 | headers: { Authorization: "Bearer " + token }, |
959 | 959 | }) |
960 | 960 | .then((response) => { |
961 | + // this.snackbar = true; | |
962 | + this.color = "success"; | |
961 | 963 | this.Users = response.data.data; |
962 | 964 | this.showLoader = false; |
963 | 965 | }) |
... | ... | @@ -1140,6 +1142,7 @@ export default { |
1140 | 1142 | .catch((error) => { |
1141 | 1143 | // console.log(error.response.data.data); |
1142 | 1144 | this.snackbar = true; |
1145 | + this.color = "success"; | |
1143 | 1146 | this.text = error.response.data.message; |
1144 | 1147 | this.showLoader = false; |
1145 | 1148 | }); | ... | ... |
src/router/paths.js
1 | 1 | export default [{ |
2 | - path: '*', | |
3 | - meta: { | |
4 | - public: true, | |
5 | - }, | |
6 | - redirect: { | |
7 | - path: '/404' | |
8 | - } | |
9 | - }, | |
10 | - { | |
11 | - path: '/404', | |
12 | - meta: { | |
13 | - public: true, | |
14 | - }, | |
15 | - name: 'NotFound', | |
16 | - component: () => | |
17 | - import( | |
18 | - /* webpackChunkName: "routes" */ | |
19 | - /* webpackMode: "lazy-once" */ | |
20 | - `@/pages/NotFound/NotFound.vue` | |
21 | - ) | |
22 | - }, | |
23 | - { | |
24 | - path: '*', | |
25 | - meta: {}, | |
26 | - name: 'dashboardAdmin', | |
27 | - props: (route) => ({ | |
28 | - type: route.query.type | |
29 | - }), | |
30 | - component: () => | |
31 | - import( | |
32 | - /* webpackChunkName: "routes" */ | |
33 | - /* webpackMode: "lazy-once" */ | |
34 | - `@/pages/Dashboard/dashboard.vue` | |
35 | - ) | |
36 | - }, | |
37 | - { | |
38 | - path: '/500', | |
39 | - meta: { | |
40 | - public: true, | |
41 | - }, | |
42 | - name: 'ServerError', | |
43 | - component: () => | |
44 | - import( | |
45 | - /* webpackChunkName: "routes" */ | |
46 | - /* webpackMode: "lazy-once" */ | |
47 | - `@/pages/NotFound/Error.vue` | |
48 | - ) | |
49 | - }, | |
50 | - { | |
51 | - path: '/Refresh', | |
52 | - meta: { | |
53 | - public: true, | |
54 | - }, | |
55 | - name: 'Refresh', | |
56 | - component: () => | |
57 | - import( | |
58 | - /* webpackChunkName: "routes" */ | |
59 | - /* webpackMode: "lazy-once" */ | |
60 | - `@/pages/Common/Refresh.vue` | |
61 | - ) | |
62 | - }, | |
63 | - { | |
64 | - path: '/changepassword', | |
65 | - meta: {}, | |
66 | - name: 'changepassword', | |
67 | - props: (route) => ({ | |
68 | - type: route.query.type | |
69 | - }), | |
70 | - component: () => | |
71 | - import( | |
72 | - /* webpackChunkName: "routes" */ | |
73 | - /* webpackMode: "lazy-once" */ | |
74 | - `@/pages/Authentication/changepassword.vue` | |
75 | - ) | |
76 | - }, | |
77 | - { | |
78 | - path: '/teachers', | |
79 | - meta: { | |
80 | - breadcrumb: false | |
81 | - }, | |
82 | - name: 'Teachers', | |
83 | - component: () => | |
84 | - import( | |
85 | - /* webpackChunkName: "routes" */ | |
86 | - /* webpackMode: "lazy-once" */ | |
87 | - `@/pages/Teachers/teachers.vue` | |
88 | - ) | |
89 | - }, | |
90 | - { | |
91 | - path: '/', | |
92 | - meta: { | |
93 | - public: true, | |
94 | - }, | |
95 | - name: 'Login', | |
96 | - component: () => | |
97 | - import( | |
98 | - /* webpackChunkName: "routes" */ | |
99 | - /* webpackMode: "lazy-once" */ | |
100 | - `@/pages/Authentication/Login.vue` | |
101 | - ) | |
102 | - }, | |
103 | - { | |
104 | - path: '/forgetpassword', | |
105 | - meta: { | |
106 | - public: true, | |
107 | - }, | |
108 | - name: 'forgetpassword', | |
109 | - component: () => | |
110 | - import( | |
111 | - /* webpackChunkName: "routes" */ | |
112 | - /* webpackMode: "lazy-once" */ | |
113 | - `@/pages/Authentication/forgetpassword.vue` | |
114 | - ) | |
115 | - }, | |
116 | - { | |
117 | - path: '/students', | |
118 | - meta: {}, | |
119 | - name: 'Students', | |
120 | - props: (route) => ({ | |
121 | - type: route.query.type | |
122 | - }), | |
123 | - component: () => | |
124 | - import( | |
125 | - /* webpackChunkName: "routes" */ | |
126 | - /* webpackMode: "lazy-once" */ | |
127 | - `@/pages/Students/students.vue` | |
128 | - ) | |
129 | - }, | |
130 | - { | |
131 | - path: '/class', | |
132 | - meta: {}, | |
133 | - name: 'Class', | |
134 | - props: (route) => ({ | |
135 | - type: route.query.type | |
136 | - }), | |
137 | - component: () => | |
138 | - import( | |
139 | - /* webpackChunkName: "routes" */ | |
140 | - /* webpackMode: "lazy-once" */ | |
141 | - `@/pages/Class/addclass.vue` | |
142 | - ) | |
143 | - }, | |
144 | - { | |
145 | - path: '/section', | |
146 | - meta: {}, | |
147 | - name: 'Section', | |
148 | - props: (route) => ({ | |
149 | - type: route.query.type | |
150 | - }), | |
151 | - component: () => | |
152 | - import( | |
153 | - /* webpackChunkName: "routes" */ | |
154 | - /* webpackMode: "lazy-once" */ | |
155 | - `@/pages/Section/section.vue` | |
156 | - ) | |
157 | - }, | |
158 | - { | |
159 | - path: '/noticeBoard', | |
160 | - meta: {}, | |
161 | - name: 'Notice Board', | |
162 | - props: (route) => ({ | |
163 | - type: route.query.type | |
164 | - }), | |
165 | - component: () => | |
166 | - import( | |
167 | - /* webpackChunkName: "routes" */ | |
168 | - /* webpackMode: "lazy-once" */ | |
169 | - `@/pages/NoticeBoard/noticeBoard.vue` | |
170 | - ) | |
171 | - }, | |
172 | - { | |
173 | - path: '/news', | |
174 | - meta: {}, | |
175 | - name: 'News', | |
176 | - props: (route) => ({ | |
177 | - type: route.query.type | |
178 | - }), | |
179 | - component: () => | |
180 | - import( | |
181 | - /* webpackChunkName: "routes" */ | |
182 | - /* webpackMode: "lazy-once" */ | |
183 | - `@/pages/News/news.vue` | |
184 | - ) | |
185 | - }, | |
186 | - // { | |
187 | - // path: '/reminder', | |
188 | - // meta: { }, | |
189 | - // name: 'reminder', | |
190 | - // props: (route) => ({ type: route.query.type }), | |
191 | - // component: () => import( | |
192 | - // /* webpackChunkName: "routes" */ | |
193 | - // /* webpackMode: "lazy-once" */ | |
194 | - // `@/pages/Reminder/reminder.vue` | |
195 | - // ) | |
196 | - // }, | |
197 | - { | |
198 | - path: '/timeTable', | |
199 | - meta: {}, | |
200 | - name: 'Time Table', | |
201 | - props: (route) => ({ | |
202 | - type: route.query.type | |
203 | - }), | |
204 | - component: () => | |
205 | - import( | |
206 | - /* webpackChunkName: "routes" */ | |
207 | - /* webpackMode: "lazy-once" */ | |
208 | - `@/pages/TimeTable/timeTable.vue` | |
209 | - ) | |
210 | - }, | |
211 | - { | |
212 | - path: '/notification', | |
213 | - meta: {}, | |
214 | - name: 'Notification', | |
215 | - props: (route) => ({ | |
216 | - type: route.query.type | |
217 | - }), | |
218 | - component: () => | |
219 | - import( | |
220 | - /* webpackChunkName: "routes" */ | |
221 | - /* webpackMode: "lazy-once" */ | |
222 | - `@/pages/Notification/notification.vue` | |
223 | - ) | |
224 | - }, | |
225 | - { | |
226 | - path: '/parents', | |
227 | - meta: {}, | |
228 | - name: 'Parents', | |
229 | - props: (route) => ({ | |
230 | - type: route.query.type | |
231 | - }), | |
232 | - component: () => | |
233 | - import( | |
234 | - /* webpackChunkName: "routes" */ | |
235 | - /* webpackMode: "lazy-once" */ | |
236 | - `@/pages/Parent/parents.vue` | |
237 | - ) | |
238 | - }, | |
239 | - // { | |
240 | - // path: '/subject', | |
241 | - // meta: {}, | |
242 | - // name: 'Subject', | |
243 | - // props: (route) => ({ type: route.query.type }), | |
244 | - // component: () => | |
245 | - // import ( | |
246 | - // /* webpackChunkName: "routes" */ | |
247 | - // /* webpackMode: "lazy-once" */ | |
248 | - // `@/pages/Subjects/subjects.vue` | |
249 | - // ) | |
250 | - // }, | |
251 | - { | |
252 | - path: '/dashboard', | |
253 | - meta: {}, | |
254 | - name: 'Dashboard', | |
255 | - props: (route) => ({ | |
256 | - type: route.query.type | |
257 | - }), | |
258 | - component: () => | |
259 | - import( | |
260 | - /* webpackChunkName: "routes" */ | |
261 | - /* webpackMode: "lazy-once" */ | |
262 | - `@/pages/Dashboard/dashboard.vue` | |
263 | - ) | |
264 | - }, | |
265 | - { | |
266 | - path: '/CourseDetails', | |
267 | - meta: {}, | |
268 | - name: 'Course Details', | |
269 | - props: (route) => ({ | |
270 | - type: route.query.type | |
271 | - }), | |
272 | - component: () => | |
273 | - import( | |
274 | - /* webpackChunkName: "routes" */ | |
275 | - /* webpackMode: "lazy-once" */ | |
276 | - `@/pages/Dashboard/CourseDetails.vue` | |
277 | - ) | |
278 | - }, | |
279 | - { | |
280 | - path: '/ChapterInfo', | |
281 | - meta: {}, | |
282 | - name: 'Chapter Info', | |
283 | - props: (route) => ({ | |
284 | - type: route.query.type | |
285 | - }), | |
286 | - component: () => | |
287 | - import( | |
288 | - /* webpackChunkName: "routes" */ | |
289 | - /* webpackMode: "lazy-once" */ | |
290 | - `@/pages/Dashboard/ChapterInfo.vue` | |
291 | - ) | |
292 | - }, | |
293 | - { | |
294 | - path: '/LiveOnlineClass', | |
295 | - meta: {}, | |
296 | - name: 'Live Online Class', | |
297 | - props: (route) => ({ | |
298 | - type: route.query.type | |
299 | - }), | |
300 | - component: () => | |
301 | - import( | |
302 | - /* webpackChunkName: "routes" */ | |
303 | - /* webpackMode: "lazy-once" */ | |
304 | - `@/pages/Dashboard/LiveOnlineClass.vue` | |
305 | - ) | |
306 | - }, | |
307 | - { | |
308 | - path: '/CourseDiscussionForum', | |
309 | - meta: {}, | |
310 | - name: 'Course Discussion Forum', | |
311 | - props: (route) => ({ | |
312 | - type: route.query.type | |
313 | - }), | |
314 | - component: () => | |
315 | - import( | |
316 | - /* webpackChunkName: "routes" */ | |
317 | - /* webpackMode: "lazy-once" */ | |
318 | - `@/pages/Dashboard/CourseDiscussionForum.vue` | |
319 | - ) | |
320 | - }, | |
321 | - { | |
322 | - path: '/courseDiscussion', | |
323 | - meta: {}, | |
324 | - name: 'Course Discussion', | |
325 | - props: (route) => ({ | |
326 | - type: route.query.type | |
327 | - }), | |
328 | - component: () => | |
329 | - import( | |
330 | - /* webpackChunkName: "routes" */ | |
331 | - /* webpackMode: "lazy-once" */ | |
332 | - `@/pages/Course/courseDiscussion.vue` | |
333 | - ) | |
334 | - }, | |
335 | - { | |
336 | - path: '/courseDiscussionesForm/:discussionId', | |
337 | - meta: {}, | |
338 | - name: 'Course Discussiones Fourm', | |
339 | - props: (route) => ({ | |
340 | - type: route.query.type | |
341 | - }), | |
342 | - component: () => | |
343 | - import( | |
344 | - /* webpackChunkName: "routes" */ | |
345 | - /* webpackMode: "lazy-once" */ | |
346 | - `@/pages/Course/discussion.vue` | |
347 | - ) | |
348 | - }, | |
349 | - { | |
350 | - path: '/Announcement', | |
351 | - meta: {}, | |
352 | - name: 'Announcement', | |
353 | - props: (route) => ({ | |
354 | - type: route.query.type | |
355 | - }), | |
356 | - component: () => | |
357 | - import( | |
358 | - /* webpackChunkName: "routes" */ | |
359 | - /* webpackMode: "lazy-once" */ | |
360 | - `@/pages/Dashboard/Announcement.vue` | |
361 | - ) | |
362 | - }, | |
363 | - { | |
364 | - path: '/annoucementForum/:annoucementId', | |
365 | - meta: {}, | |
366 | - name: 'Annoucement Forum', | |
367 | - props: (route) => ({ | |
368 | - type: route.query.type | |
369 | - }), | |
370 | - component: () => | |
371 | - import( | |
372 | - /* webpackChunkName: "routes" */ | |
373 | - /* webpackMode: "lazy-once" */ | |
374 | - `@/pages/Annoucement/annoucementForum.vue` | |
375 | - ) | |
376 | - }, | |
377 | - { | |
378 | - path: '/socialMedia', | |
379 | - meta: {}, | |
380 | - name: 'Social Media', | |
381 | - props: (route) => ({ | |
382 | - type: route.query.type | |
383 | - }), | |
384 | - component: () => | |
385 | - import( | |
386 | - /* webpackChunkName: "routes" */ | |
387 | - /* webpackMode: "lazy-once" */ | |
388 | - `@/pages/socialMedia/socialMedia.vue` | |
389 | - ) | |
390 | - }, | |
391 | - { | |
392 | - path: '/gallery', | |
393 | - meta: {}, | |
394 | - name: 'Gallery', | |
395 | - props: (route) => ({ | |
396 | - type: route.query.type | |
397 | - }), | |
398 | - component: () => | |
399 | - import( | |
400 | - /* webpackChunkName: "routes" */ | |
401 | - /* webpackMode: "lazy-once" */ | |
402 | - `@/pages/Gallery/gallery.vue` | |
403 | - ) | |
404 | - }, | |
405 | - { | |
406 | - path: '/event', | |
407 | - meta: {}, | |
408 | - name: 'Event', | |
409 | - props: (route) => ({ | |
410 | - type: route.query.type | |
411 | - }), | |
412 | - component: () => | |
413 | - import( | |
414 | - /* webpackChunkName: "routes" */ | |
415 | - /* webpackMode: "lazy-once" */ | |
416 | - `@/pages/Event/event.vue` | |
417 | - ) | |
418 | - }, | |
419 | - { | |
420 | - path: '/holiday', | |
421 | - meta: {}, | |
422 | - name: 'Holiday', | |
423 | - props: (route) => ({ | |
424 | - type: route.query.type | |
425 | - }), | |
426 | - component: () => | |
427 | - import( | |
428 | - /* webpackChunkName: "routes" */ | |
429 | - /* webpackMode: "lazy-once" */ | |
430 | - `@/pages/Holiday/holiday.vue` | |
431 | - ) | |
432 | - }, | |
433 | - { | |
434 | - path: '/user', | |
435 | - meta: {}, | |
436 | - name: 'User', | |
437 | - props: (route) => ({ | |
438 | - type: route.query.type | |
439 | - }), | |
440 | - component: () => | |
441 | - import( | |
442 | - /* webpackChunkName: "routes" */ | |
443 | - /* webpackMode: "lazy-once" */ | |
444 | - `@/pages/User/user.vue` | |
445 | - ) | |
446 | - }, | |
447 | - { | |
448 | - path: '/AttendenceStudent', | |
449 | - meta: {}, | |
450 | - name: 'Student Attendence', | |
451 | - props: (route) => ({ | |
452 | - type: route.query.type | |
453 | - }), | |
454 | - component: () => | |
455 | - import( | |
456 | - /* webpackChunkName: "routes" */ | |
457 | - /* webpackMode: "lazy-once" */ | |
458 | - `@/pages/Attendence/studentAttendence.vue` | |
459 | - ) | |
460 | - }, | |
461 | - { | |
462 | - path: '/AttendenceTeacher', | |
463 | - meta: {}, | |
464 | - name: 'Teacher Attendence', | |
465 | - props: (route) => ({ | |
466 | - type: route.query.type | |
467 | - }), | |
468 | - component: () => | |
469 | - import( | |
470 | - /* webpackChunkName: "routes" */ | |
471 | - /* webpackMode: "lazy-once" */ | |
472 | - `@/pages/Attendence/teacherAttendence.vue` | |
473 | - ) | |
474 | - }, | |
475 | - { | |
476 | - path: '/salaryTemplate', | |
477 | - meta: {}, | |
478 | - name: 'Salary Template', | |
479 | - props: (route) => ({ | |
480 | - type: route.query.type | |
481 | - }), | |
482 | - component: () => | |
483 | - import( | |
484 | - `@/pages/Payroll/salaryTemplate.vue` | |
485 | - ) | |
486 | - }, | |
487 | - { | |
488 | - path: '/hourlyTemplate', | |
489 | - meta: {}, | |
490 | - name: 'Hourly Template', | |
491 | - props: (route) => ({ | |
492 | - type: route.query.type | |
493 | - }), | |
494 | - component: () => | |
495 | - import( | |
496 | - `@/pages/Payroll/hourlyTemplate.vue` | |
497 | - ) | |
498 | - }, | |
499 | - { | |
500 | - path: '/manageSalary', | |
501 | - meta: {}, | |
502 | - name: 'Manage Salary', | |
503 | - props: (route) => ({ | |
504 | - type: route.query.type | |
505 | - }), | |
506 | - component: () => | |
507 | - import( | |
508 | - `@/pages/Payroll/manageSalary.vue` | |
509 | - ) | |
510 | - }, | |
511 | - // { | |
512 | - // path: '/makePayment', | |
513 | - // meta: {}, | |
514 | - // name: 'Make Payment', | |
515 | - // props: (route) => ({ type: route.query.type }), | |
516 | - // component: () => | |
517 | - // import ( | |
518 | - // `@/pages/Payroll/makePayment.vue` | |
519 | - // ) | |
520 | - // }, | |
521 | - { | |
522 | - path: '/AttendenceUser', | |
523 | - meta: {}, | |
524 | - name: 'User Attendence', | |
525 | - props: (route) => ({ | |
526 | - type: route.query.type | |
527 | - }), | |
528 | - component: () => | |
529 | - import( | |
530 | - /* webpackChunkName: "routes" */ | |
531 | - /* webpackMode: "lazy-once" */ | |
532 | - `@/pages/Attendence/userAttendence.vue` | |
533 | - ) | |
534 | - }, | |
535 | - { | |
536 | - path: '/feeTypes', | |
537 | - meta: {}, | |
538 | - name: 'Fee Types', | |
539 | - props: (route) => ({ | |
540 | - type: route.query.type | |
541 | - }), | |
542 | - component: () => | |
543 | - import( | |
544 | - /* webpackChunkName: "routes" */ | |
545 | - /* webpackMode: "lazy-once" */ | |
546 | - `@/pages/Account/feeTypes.vue` | |
547 | - ) | |
548 | - }, | |
549 | - { | |
550 | - path: '/invoice', | |
551 | - meta: {}, | |
552 | - name: 'Invoice', | |
553 | - props: (route) => ({ | |
554 | - type: route.query.type | |
555 | - }), | |
556 | - component: () => | |
557 | - import( | |
558 | - /* webpackChunkName: "routes" */ | |
559 | - /* webpackMode: "lazy-once" */ | |
560 | - `@/pages/Account/invoice.vue` | |
561 | - ) | |
562 | - }, | |
563 | - { | |
564 | - path: '/paymentHistory', | |
565 | - meta: {}, | |
566 | - name: 'Payment History', | |
567 | - props: (route) => ({ | |
568 | - type: route.query.type | |
569 | - }), | |
570 | - component: () => | |
571 | - import( | |
572 | - /* webpackChunkName: "routes" */ | |
573 | - /* webpackMode: "lazy-once" */ | |
574 | - `@/pages/Account/paymentHistory.vue` | |
575 | - ) | |
576 | - }, | |
577 | - { | |
578 | - path: '/expense', | |
579 | - meta: {}, | |
580 | - name: 'Expense', | |
581 | - props: (route) => ({ | |
582 | - type: route.query.type | |
583 | - }), | |
584 | - component: () => | |
585 | - import( | |
586 | - /* webpackChunkName: "routes" */ | |
587 | - /* webpackMode: "lazy-once" */ | |
588 | - `@/pages/Account/expense.vue` | |
589 | - ) | |
590 | - }, | |
591 | - { | |
592 | - path: '/income', | |
593 | - meta: {}, | |
594 | - name: 'Income', | |
595 | - props: (route) => ({ | |
596 | - type: route.query.type | |
597 | - }), | |
598 | - component: () => | |
599 | - import( | |
600 | - /* webpackChunkName: "routes" */ | |
601 | - /* webpackMode: "lazy-once" */ | |
602 | - `@/pages/Account/income.vue` | |
603 | - ) | |
604 | - }, | |
605 | - { | |
606 | - path: '/libraryMember', | |
607 | - meta: {}, | |
608 | - name: 'Library Member', | |
609 | - props: (route) => ({ | |
610 | - type: route.query.type | |
611 | - }), | |
612 | - component: () => | |
613 | - import( | |
614 | - /* webpackChunkName: "routes" */ | |
615 | - /* webpackMode: "lazy-once" */ | |
616 | - `@/pages/Library/member.vue` | |
617 | - ) | |
618 | - }, | |
619 | - { | |
620 | - path: '/books', | |
621 | - meta: {}, | |
622 | - name: 'Books', | |
623 | - props: (route) => ({ | |
624 | - type: route.query.type | |
625 | - }), | |
626 | - component: () => | |
627 | - import( | |
628 | - /* webpackChunkName: "routes" */ | |
629 | - /* webpackMode: "lazy-once" */ | |
630 | - `@/pages/Library/books.vue` | |
631 | - ) | |
632 | - }, | |
633 | - { | |
634 | - path: '/issue', | |
635 | - meta: {}, | |
636 | - name: 'Issue', | |
637 | - props: (route) => ({ | |
638 | - type: route.query.type | |
639 | - }), | |
640 | - component: () => | |
641 | - import( | |
642 | - /* webpackChunkName: "routes" */ | |
643 | - /* webpackMode: "lazy-once" */ | |
644 | - `@/pages/Library/issue.vue` | |
645 | - ) | |
646 | - }, | |
647 | - { | |
648 | - path: '/e-books', | |
649 | - meta: {}, | |
650 | - name: 'E-Books', | |
651 | - props: (route) => ({ | |
652 | - type: route.query.type | |
653 | - }), | |
654 | - component: () => | |
655 | - import( | |
656 | - /* webpackChunkName: "routes" */ | |
657 | - /* webpackMode: "lazy-once" */ | |
658 | - `@/pages/Library/eBook.vue` | |
659 | - ) | |
660 | - }, | |
661 | - { | |
662 | - path: '/editInvoice/:invoiceid', | |
663 | - meta: {}, | |
664 | - name: 'Edit Invoice', | |
665 | - // props: (route) => ({ type: route.query.type }), | |
666 | - component: () => | |
667 | - import( | |
668 | - /* webpackChunkName: "routes" */ | |
669 | - /* webpackMode: "lazy-once" */ | |
670 | - `@/pages/Account/editInvoice.vue` | |
671 | - ) | |
672 | - }, | |
673 | - { | |
674 | - path: '/StudentsAttendence/:id', | |
675 | - meta: {}, | |
676 | - name: 'View Students Attendence', | |
677 | - props: (route) => ({ | |
678 | - type: route.query.type | |
679 | - }), | |
680 | - component: () => | |
681 | - import( | |
682 | - /* webpackChunkName: "routes" */ | |
683 | - /* webpackMode: "lazy-once" */ | |
684 | - `@/pages/Attendence/viewStudentsAttendence.vue` | |
685 | - ) | |
686 | - }, | |
687 | - { | |
688 | - path: '/TeacherAttendence/:teacherId', | |
689 | - meta: {}, | |
690 | - name: 'View Teacher Attendence', | |
691 | - props: (route) => ({ | |
692 | - type: route.query.type | |
693 | - }), | |
694 | - component: () => | |
695 | - import( | |
696 | - /* webpackChunkName: "routes" */ | |
697 | - /* webpackMode: "lazy-once" */ | |
698 | - `@/pages/Attendence/viewTeacherAttendence.vue` | |
699 | - ) | |
700 | - }, | |
701 | - { | |
702 | - path: '/viewInvoice/:viewInvoiceId', | |
703 | - meta: {}, | |
704 | - name: 'View Invoice', | |
705 | - props: (route) => ({ | |
706 | - type: route.query.type | |
707 | - }), | |
708 | - component: () => | |
709 | - import( | |
710 | - /* webpackChunkName: "routes" */ | |
711 | - /* webpackMode: "lazy-once" */ | |
712 | - `@/pages/Account/viewInvoice.vue` | |
713 | - ) | |
714 | - }, | |
715 | - { | |
716 | - path: '/viewPaymentInvoice/:viewPaymentInvoiceId', | |
717 | - meta: {}, | |
718 | - name: 'View Payment Invoice', | |
719 | - props: (route) => ({ | |
720 | - type: route.query.type | |
721 | - }), | |
722 | - component: () => | |
723 | - import( | |
724 | - /* webpackChunkName: "routes" */ | |
725 | - /* webpackMode: "lazy-once" */ | |
726 | - `@/pages/Account/viewPaymentInvoice.vue` | |
727 | - ) | |
728 | - }, | |
729 | - { | |
730 | - path: '/globalPayment', | |
731 | - meta: {}, | |
732 | - name: 'Global Payment', | |
733 | - props: (route) => ({ | |
734 | - type: route.query.type | |
735 | - }), | |
736 | - component: () => | |
737 | - import( | |
738 | - /* webpackChunkName: "routes" */ | |
739 | - /* webpackMode: "lazy-once" */ | |
740 | - `@/pages/Account/globalPayment.vue` | |
741 | - ) | |
742 | - }, | |
743 | - { | |
744 | - path: '/exam', | |
745 | - meta: {}, | |
746 | - name: 'Exam', | |
747 | - props: (route) => ({ | |
748 | - type: route.query.type | |
749 | - }), | |
750 | - component: () => | |
751 | - import( | |
752 | - /* webpackChunkName: "routes" */ | |
753 | - /* webpackMode: "lazy-once" */ | |
754 | - `@/pages/Exam/exam.vue` | |
755 | - ) | |
756 | - }, | |
757 | - { | |
758 | - path: '/grade', | |
759 | - meta: {}, | |
760 | - name: 'Grade', | |
761 | - props: (route) => ({ | |
762 | - type: route.query.type | |
763 | - }), | |
764 | - component: () => | |
765 | - import( | |
766 | - /* webpackChunkName: "routes" */ | |
767 | - /* webpackMode: "lazy-once" */ | |
768 | - `@/pages/Exam/grade.vue` | |
769 | - ) | |
770 | - }, | |
771 | - { | |
772 | - path: '/examSchedule', | |
773 | - meta: {}, | |
774 | - name: 'Exam Schedule', | |
775 | - props: (route) => ({ | |
776 | - type: route.query.type | |
777 | - }), | |
778 | - component: () => | |
779 | - import( | |
780 | - /* webpackChunkName: "routes" */ | |
781 | - /* webpackMode: "lazy-once" */ | |
782 | - `@/pages/Exam/examSchedule.vue` | |
783 | - ) | |
784 | - }, | |
785 | - { | |
786 | - path: '/examAttendence', | |
787 | - meta: {}, | |
788 | - name: 'Exam Attendence', | |
789 | - props: (route) => ({ | |
790 | - type: route.query.type | |
791 | - }), | |
792 | - component: () => | |
793 | - import( | |
794 | - /* webpackChunkName: "routes" */ | |
795 | - /* webpackMode: "lazy-once" */ | |
796 | - `@/pages/Exam/examAttendence.vue` | |
797 | - ) | |
798 | - }, | |
799 | - { | |
800 | - path: '/mark', | |
801 | - meta: {}, | |
802 | - name: 'Mark', | |
803 | - props: (route) => ({ | |
804 | - type: route.query.type | |
805 | - }), | |
806 | - component: () => | |
807 | - import( | |
808 | - /* webpackChunkName: "routes" */ | |
809 | - /* webpackMode: "lazy-once" */ | |
810 | - `@/pages/Mark/mark.vue` | |
811 | - ) | |
812 | - }, | |
813 | - { | |
814 | - path: '/viewMark/:markId', | |
815 | - meta: {}, | |
816 | - name: 'view Mark', | |
817 | - props: (route) => ({ | |
818 | - type: route.query.type | |
819 | - }), | |
820 | - component: () => | |
821 | - import( | |
822 | - /* webpackChunkName: "routes" */ | |
823 | - /* webpackMode: "lazy-once" */ | |
824 | - `@/pages/Mark/viewMark.vue` | |
825 | - ) | |
826 | - }, | |
827 | - { | |
828 | - path: '/markDistribution', | |
829 | - meta: {}, | |
830 | - name: 'Mark Distribution', | |
831 | - props: (route) => ({ | |
832 | - type: route.query.type | |
833 | - }), | |
834 | - component: () => | |
835 | - import( | |
836 | - /* webpackChunkName: "routes" */ | |
837 | - /* webpackMode: "lazy-once" */ | |
838 | - `@/pages/Mark/markDistribution.vue` | |
839 | - ) | |
840 | - }, | |
841 | - { | |
842 | - path: '/meet', | |
843 | - meta: {}, | |
844 | - name: 'Meet', | |
845 | - props: (route) => ({ | |
846 | - type: route.query.type | |
847 | - }), | |
848 | - component: () => | |
849 | - import( | |
850 | - /* webpackChunkName: "routes" */ | |
851 | - /* webpackMode: "lazy-once" */ | |
852 | - `@/pages/Meet/meet.vue` | |
853 | - ) | |
854 | - }, | |
855 | - { | |
856 | - path: '/academicYear', | |
857 | - meta: {}, | |
858 | - name: 'Academic Year', | |
859 | - props: (route) => ({ | |
860 | - type: route.query.type | |
861 | - }), | |
862 | - component: () => | |
863 | - import( | |
864 | - /* webpackChunkName: "routes" */ | |
865 | - /* webpackMode: "lazy-once" */ | |
866 | - `@/pages/Administrator/academicYear.vue` | |
867 | - ) | |
868 | - }, | |
869 | - { | |
870 | - path: '/systemAdmin', | |
871 | - meta: {}, | |
872 | - name: 'System Admin', | |
873 | - props: (route) => ({ | |
874 | - type: route.query.type | |
875 | - }), | |
876 | - component: () => | |
877 | - import( | |
878 | - /* webpackChunkName: "routes" */ | |
879 | - /* webpackMode: "lazy-once" */ | |
880 | - `@/pages/Administrator/systemAdmin.vue` | |
881 | - ) | |
882 | - }, | |
883 | - { | |
884 | - path: '/resetPassword', | |
885 | - meta: {}, | |
886 | - name: 'Change Password', | |
887 | - props: (route) => ({ | |
888 | - type: route.query.type | |
889 | - }), | |
890 | - component: () => | |
891 | - import( | |
892 | - /* webpackChunkName: "routes" */ | |
893 | - /* webpackMode: "lazy-once" */ | |
894 | - `@/pages/Administrator/resetPassword.vue` | |
895 | - ) | |
896 | - }, | |
897 | - { | |
898 | - path: '/role', | |
899 | - meta: {}, | |
900 | - name: 'Role', | |
901 | - props: (route) => ({ | |
902 | - type: route.query.type | |
903 | - }), | |
904 | - component: () => | |
905 | - import( | |
906 | - /* webpackChunkName: "routes" */ | |
907 | - /* webpackMode: "lazy-once" */ | |
908 | - `@/pages/Administrator/role.vue` | |
909 | - ) | |
910 | - }, | |
911 | - { | |
912 | - path: '/bulkImport', | |
913 | - meta: {}, | |
914 | - name: 'Bulk Import', | |
915 | - props: (route) => ({ | |
916 | - type: route.query.type | |
917 | - }), | |
918 | - component: () => | |
919 | - import( | |
920 | - /* webpackChunkName: "routes" */ | |
921 | - /* webpackMode: "lazy-once" */ | |
922 | - `@/pages/Administrator/bulkImport.vue` | |
923 | - ) | |
924 | - }, | |
925 | - { | |
926 | - path: '/studentReport', | |
927 | - meta: {}, | |
928 | - name: 'Student Report', | |
929 | - props: (route) => ({ | |
930 | - type: route.query.type | |
931 | - }), | |
932 | - component: () => | |
933 | - import( | |
934 | - /* webpackChunkName: "routes" */ | |
935 | - /* webpackMode: "lazy-once" */ | |
936 | - `@/pages/Report/studentReport.vue` | |
937 | - ) | |
938 | - }, | |
939 | - { | |
940 | - path: '/progressCardReport', | |
941 | - meta: {}, | |
942 | - name: 'Progress Card Report', | |
943 | - props: (route) => ({ | |
944 | - type: route.query.type | |
945 | - }), | |
946 | - component: () => | |
947 | - import( | |
948 | - /* webpackChunkName: "routes" */ | |
949 | - /* webpackMode: "lazy-once" */ | |
950 | - `@/pages/Report/progressCardReport.vue` | |
951 | - ) | |
952 | - }, | |
953 | - { | |
954 | - path: '/idCard', | |
955 | - meta: {}, | |
956 | - name: 'Id Card Report', | |
957 | - props: (route) => ({ | |
958 | - type: route.query.type | |
959 | - }), | |
960 | - component: () => | |
961 | - import( | |
962 | - `@/pages/Report/idCard.vue` | |
963 | - ) | |
964 | - }, | |
965 | - { | |
966 | - path: '/admitCard', | |
967 | - meta: {}, | |
968 | - name: 'Admit Card Report', | |
969 | - props: (route) => ({ | |
970 | - type: route.query.type | |
971 | - }), | |
972 | - component: () => | |
973 | - import( | |
974 | - `@/pages/Report/admitCard.vue` | |
975 | - ) | |
976 | - }, | |
977 | - { | |
978 | - path: '/generalSetting', | |
979 | - meta: {}, | |
980 | - name: 'General Setting', | |
981 | - props: (route) => ({ | |
982 | - type: route.query.type | |
983 | - }), | |
984 | - component: () => | |
985 | - import( | |
986 | - /* webpackChunkName: "routes" */ | |
987 | - /* webpackMode: "lazy-once" */ | |
988 | - `@/pages/generalSetting/generalSetting.vue` | |
989 | - ) | |
990 | - }, | |
991 | - { | |
992 | - path: '/assignment', | |
993 | - meta: {}, | |
994 | - name: 'Assignment', | |
995 | - props: (route) => ({ | |
996 | - type: route.query.type | |
997 | - }), | |
998 | - component: () => | |
999 | - import( | |
1000 | - `@/pages/Academic/assignment.vue` | |
1001 | - ) | |
1002 | - }, | |
1003 | - { | |
1004 | - path: '/routine', | |
1005 | - meta: {}, | |
1006 | - name: 'Routine', | |
1007 | - props: (route) => ({ | |
1008 | - type: route.query.type | |
1009 | - }), | |
1010 | - component: () => | |
1011 | - import( | |
1012 | - `@/pages/Academic/routine.vue` | |
1013 | - ) | |
1014 | - }, | |
1015 | - { | |
1016 | - path: '/subject', | |
1017 | - meta: {}, | |
1018 | - name: 'Subject', | |
1019 | - props: (route) => ({ | |
1020 | - type: route.query.type | |
1021 | - }), | |
1022 | - component: () => | |
1023 | - import( | |
1024 | - `@/pages/Academic/subject.vue` | |
1025 | - ) | |
1026 | - }, | |
1027 | - { | |
1028 | - path: '/syllabus', | |
1029 | - meta: {}, | |
1030 | - name: 'Syllabus', | |
1031 | - props: (route) => ({ | |
1032 | - type: route.query.type | |
1033 | - }), | |
1034 | - component: () => | |
1035 | - import( | |
1036 | - `@/pages/Academic/syllabus.vue` | |
1037 | - ) | |
1038 | - }, | |
1039 | - { | |
1040 | - path: '/course', | |
1041 | - meta: {}, | |
1042 | - name: 'Course', | |
1043 | - props: (route) => ({ | |
1044 | - type: route.query.type | |
1045 | - }), | |
1046 | - component: () => | |
1047 | - import( | |
1048 | - /* webpackChunkName: "routes" */ | |
1049 | - /* webpackMode: "lazy-once" */ | |
1050 | - `@/pages/Course/course.vue` | |
1051 | - ) | |
1052 | - }, | |
1053 | - { | |
1054 | - path: '/courseDetail', | |
1055 | - meta: {}, | |
1056 | - name: 'Course Detail', | |
1057 | - props: (route) => ({ | |
1058 | - type: route.query.type | |
1059 | - }), | |
1060 | - component: () => | |
1061 | - import( | |
1062 | - /* webpackChunkName: "routes" */ | |
1063 | - /* webpackMode: "lazy-once" */ | |
1064 | - `@/pages/Course/courseDetail.vue` | |
1065 | - ) | |
1066 | - }, | |
1067 | - { | |
1068 | - path: '/enrollStudents', | |
1069 | - meta: {}, | |
1070 | - name: 'Enroll Students', | |
1071 | - props: (route) => ({ | |
1072 | - type: route.query.type | |
1073 | - }), | |
1074 | - component: () => | |
1075 | - import( | |
1076 | - /* webpackChunkName: "routes" */ | |
1077 | - /* webpackMode: "lazy-once" */ | |
1078 | - `@/pages/Course/enrollStudents.vue` | |
1079 | - ) | |
1080 | - }, | |
1081 | - { | |
1082 | - path: '/changeStudents', | |
1083 | - meta: {}, | |
1084 | - name: 'Change Students', | |
1085 | - props: (route) => ({ | |
1086 | - type: route.query.type | |
1087 | - }), | |
1088 | - component: () => | |
1089 | - import( | |
1090 | - /* webpackChunkName: "routes" */ | |
1091 | - /* webpackMode: "lazy-once" */ | |
1092 | - `@/pages/changeStudents/changeStudents.vue` | |
1093 | - ) | |
1094 | - }, | |
1095 | - { | |
1096 | - path: '/annoucement', | |
1097 | - meta: {}, | |
1098 | - name: 'Annoucement', | |
1099 | - props: (route) => ({ | |
1100 | - type: route.query.type | |
1101 | - }), | |
1102 | - component: () => | |
1103 | - import( | |
1104 | - /* webpackChunkName: "routes" */ | |
1105 | - /* webpackMode: "lazy-once" */ | |
1106 | - `@/pages/Annoucement/annoucement.vue` | |
1107 | - ) | |
1108 | - }, | |
1109 | - { | |
1110 | - path: '/meetingEvent', | |
1111 | - meta: {}, | |
1112 | - name: 'Meeting Event', | |
1113 | - props: (route) => ({ | |
1114 | - type: route.query.type | |
1115 | - }), | |
1116 | - component: () => | |
1117 | - import( | |
1118 | - /* webpackChunkName: "routes" */ | |
1119 | - /* webpackMode: "lazy-once" */ | |
1120 | - `@/pages/meetingEvent/meetingEvent.vue` | |
1121 | - ) | |
1122 | - }, | |
1123 | - //////SCHOOL | |
2 | + path: '*', | |
3 | + meta: { | |
4 | + public: true, | |
5 | + }, | |
6 | + redirect: { | |
7 | + path: '/404' | |
8 | + } | |
9 | +}, | |
10 | +{ | |
11 | + path: '/404', | |
12 | + meta: { | |
13 | + public: true, | |
14 | + }, | |
15 | + name: 'NotFound', | |
16 | + component: () => | |
17 | + import( | |
18 | + /* webpackChunkName: "routes" */ | |
19 | + /* webpackMode: "lazy-once" */ | |
20 | + `@/pages/NotFound/NotFound.vue` | |
21 | + ) | |
22 | +}, | |
23 | +{ | |
24 | + path: '*', | |
25 | + meta: {}, | |
26 | + name: 'dashboardAdmin', | |
27 | + props: (route) => ({ | |
28 | + type: route.query.type | |
29 | + }), | |
30 | + component: () => | |
31 | + import( | |
32 | + /* webpackChunkName: "routes" */ | |
33 | + /* webpackMode: "lazy-once" */ | |
34 | + `@/pages/Dashboard/dashboard.vue` | |
35 | + ) | |
36 | +}, | |
37 | +{ | |
38 | + path: '/500', | |
39 | + meta: { | |
40 | + public: true, | |
41 | + }, | |
42 | + name: 'ServerError', | |
43 | + component: () => | |
44 | + import( | |
45 | + /* webpackChunkName: "routes" */ | |
46 | + /* webpackMode: "lazy-once" */ | |
47 | + `@/pages/NotFound/Error.vue` | |
48 | + ) | |
49 | +}, | |
50 | +{ | |
51 | + path: '/Refresh', | |
52 | + meta: { | |
53 | + public: true, | |
54 | + }, | |
55 | + name: 'Refresh', | |
56 | + component: () => | |
57 | + import( | |
58 | + /* webpackChunkName: "routes" */ | |
59 | + /* webpackMode: "lazy-once" */ | |
60 | + `@/pages/Common/Refresh.vue` | |
61 | + ) | |
62 | +}, | |
63 | +{ | |
64 | + path: '/changepassword', | |
65 | + meta: {}, | |
66 | + name: 'changepassword', | |
67 | + props: (route) => ({ | |
68 | + type: route.query.type | |
69 | + }), | |
70 | + component: () => | |
71 | + import( | |
72 | + /* webpackChunkName: "routes" */ | |
73 | + /* webpackMode: "lazy-once" */ | |
74 | + `@/pages/Authentication/changepassword.vue` | |
75 | + ) | |
76 | +}, | |
77 | +{ | |
78 | + path: '/teachers', | |
79 | + meta: { | |
80 | + breadcrumb: false | |
81 | + }, | |
82 | + name: 'Teachers', | |
83 | + component: () => | |
84 | + import( | |
85 | + /* webpackChunkName: "routes" */ | |
86 | + /* webpackMode: "lazy-once" */ | |
87 | + `@/pages/Teachers/teachers.vue` | |
88 | + ) | |
89 | +}, | |
90 | +{ | |
91 | + path: '/', | |
92 | + meta: { | |
93 | + public: true, | |
94 | + }, | |
95 | + name: 'Login', | |
96 | + component: () => | |
97 | + import( | |
98 | + /* webpackChunkName: "routes" */ | |
99 | + /* webpackMode: "lazy-once" */ | |
100 | + `@/pages/Authentication/Login.vue` | |
101 | + ) | |
102 | +}, | |
103 | +{ | |
104 | + path: '/forgetpassword', | |
105 | + meta: { | |
106 | + public: true, | |
107 | + }, | |
108 | + name: 'forgetpassword', | |
109 | + component: () => | |
110 | + import( | |
111 | + /* webpackChunkName: "routes" */ | |
112 | + /* webpackMode: "lazy-once" */ | |
113 | + `@/pages/Authentication/forgetpassword.vue` | |
114 | + ) | |
115 | +}, | |
116 | +{ | |
117 | + path: '/students', | |
118 | + meta: {}, | |
119 | + name: 'Students', | |
120 | + props: (route) => ({ | |
121 | + type: route.query.type | |
122 | + }), | |
123 | + component: () => | |
124 | + import( | |
125 | + /* webpackChunkName: "routes" */ | |
126 | + /* webpackMode: "lazy-once" */ | |
127 | + `@/pages/Students/students.vue` | |
128 | + ) | |
129 | +}, | |
130 | +{ | |
131 | + path: '/class', | |
132 | + meta: {}, | |
133 | + name: 'Class', | |
134 | + props: (route) => ({ | |
135 | + type: route.query.type | |
136 | + }), | |
137 | + component: () => | |
138 | + import( | |
139 | + /* webpackChunkName: "routes" */ | |
140 | + /* webpackMode: "lazy-once" */ | |
141 | + `@/pages/Class/addclass.vue` | |
142 | + ) | |
143 | +}, | |
144 | +{ | |
145 | + path: '/section', | |
146 | + meta: {}, | |
147 | + name: 'Section', | |
148 | + props: (route) => ({ | |
149 | + type: route.query.type | |
150 | + }), | |
151 | + component: () => | |
152 | + import( | |
153 | + /* webpackChunkName: "routes" */ | |
154 | + /* webpackMode: "lazy-once" */ | |
155 | + `@/pages/Section/section.vue` | |
156 | + ) | |
157 | +}, | |
158 | +{ | |
159 | + path: '/noticeBoard', | |
160 | + meta: {}, | |
161 | + name: 'Notice Board', | |
162 | + props: (route) => ({ | |
163 | + type: route.query.type | |
164 | + }), | |
165 | + component: () => | |
166 | + import( | |
167 | + /* webpackChunkName: "routes" */ | |
168 | + /* webpackMode: "lazy-once" */ | |
169 | + `@/pages/NoticeBoard/noticeBoard.vue` | |
170 | + ) | |
171 | +}, | |
172 | +{ | |
173 | + path: '/news', | |
174 | + meta: {}, | |
175 | + name: 'News', | |
176 | + props: (route) => ({ | |
177 | + type: route.query.type | |
178 | + }), | |
179 | + component: () => | |
180 | + import( | |
181 | + /* webpackChunkName: "routes" */ | |
182 | + /* webpackMode: "lazy-once" */ | |
183 | + `@/pages/News/news.vue` | |
184 | + ) | |
185 | +}, | |
186 | +// { | |
187 | +// path: '/reminder', | |
188 | +// meta: { }, | |
189 | +// name: 'reminder', | |
190 | +// props: (route) => ({ type: route.query.type }), | |
191 | +// component: () => import( | |
192 | +// /* webpackChunkName: "routes" */ | |
193 | +// /* webpackMode: "lazy-once" */ | |
194 | +// `@/pages/Reminder/reminder.vue` | |
195 | +// ) | |
196 | +// }, | |
197 | +{ | |
198 | + path: '/timeTable', | |
199 | + meta: {}, | |
200 | + name: 'Time Table', | |
201 | + props: (route) => ({ | |
202 | + type: route.query.type | |
203 | + }), | |
204 | + component: () => | |
205 | + import( | |
206 | + /* webpackChunkName: "routes" */ | |
207 | + /* webpackMode: "lazy-once" */ | |
208 | + `@/pages/TimeTable/timeTable.vue` | |
209 | + ) | |
210 | +}, | |
211 | +{ | |
212 | + path: '/notification', | |
213 | + meta: {}, | |
214 | + name: 'Notification', | |
215 | + props: (route) => ({ | |
216 | + type: route.query.type | |
217 | + }), | |
218 | + component: () => | |
219 | + import( | |
220 | + /* webpackChunkName: "routes" */ | |
221 | + /* webpackMode: "lazy-once" */ | |
222 | + `@/pages/Notification/notification.vue` | |
223 | + ) | |
224 | +}, | |
225 | +{ | |
226 | + path: '/parents', | |
227 | + meta: {}, | |
228 | + name: 'Parents', | |
229 | + props: (route) => ({ | |
230 | + type: route.query.type | |
231 | + }), | |
232 | + component: () => | |
233 | + import( | |
234 | + /* webpackChunkName: "routes" */ | |
235 | + /* webpackMode: "lazy-once" */ | |
236 | + `@/pages/Parent/parents.vue` | |
237 | + ) | |
238 | +}, | |
239 | +// { | |
240 | +// path: '/subject', | |
241 | +// meta: {}, | |
242 | +// name: 'Subject', | |
243 | +// props: (route) => ({ type: route.query.type }), | |
244 | +// component: () => | |
245 | +// import ( | |
246 | +// /* webpackChunkName: "routes" */ | |
247 | +// /* webpackMode: "lazy-once" */ | |
248 | +// `@/pages/Subjects/subjects.vue` | |
249 | +// ) | |
250 | +// }, | |
251 | +{ | |
252 | + path: '/dashboard', | |
253 | + meta: {}, | |
254 | + name: 'Dashboard', | |
255 | + props: (route) => ({ | |
256 | + type: route.query.type | |
257 | + }), | |
258 | + component: () => | |
259 | + import( | |
260 | + /* webpackChunkName: "routes" */ | |
261 | + /* webpackMode: "lazy-once" */ | |
262 | + `@/pages/Dashboard/dashboard.vue` | |
263 | + ) | |
264 | +}, | |
265 | +{ | |
266 | + path: '/CourseDetails', | |
267 | + meta: {}, | |
268 | + name: 'Course Details', | |
269 | + props: (route) => ({ | |
270 | + type: route.query.type | |
271 | + }), | |
272 | + component: () => | |
273 | + import( | |
274 | + /* webpackChunkName: "routes" */ | |
275 | + /* webpackMode: "lazy-once" */ | |
276 | + `@/pages/Dashboard/CourseDetails.vue` | |
277 | + ) | |
278 | +}, | |
279 | +{ | |
280 | + path: '/ChapterInfo', | |
281 | + meta: {}, | |
282 | + name: 'Chapter Info', | |
283 | + props: (route) => ({ | |
284 | + type: route.query.type | |
285 | + }), | |
286 | + component: () => | |
287 | + import( | |
288 | + /* webpackChunkName: "routes" */ | |
289 | + /* webpackMode: "lazy-once" */ | |
290 | + `@/pages/Dashboard/ChapterInfo.vue` | |
291 | + ) | |
292 | +}, | |
293 | +{ | |
294 | + path: '/LiveOnlineClass', | |
295 | + meta: {}, | |
296 | + name: 'Live Online Class', | |
297 | + props: (route) => ({ | |
298 | + type: route.query.type | |
299 | + }), | |
300 | + component: () => | |
301 | + import( | |
302 | + /* webpackChunkName: "routes" */ | |
303 | + /* webpackMode: "lazy-once" */ | |
304 | + `@/pages/Dashboard/LiveOnlineClass.vue` | |
305 | + ) | |
306 | +}, | |
307 | +{ | |
308 | + path: '/CourseDiscussionForum', | |
309 | + meta: {}, | |
310 | + name: 'Course Discussion Forum', | |
311 | + props: (route) => ({ | |
312 | + type: route.query.type | |
313 | + }), | |
314 | + component: () => | |
315 | + import( | |
316 | + /* webpackChunkName: "routes" */ | |
317 | + /* webpackMode: "lazy-once" */ | |
318 | + `@/pages/Dashboard/CourseDiscussionForum.vue` | |
319 | + ) | |
320 | +}, | |
321 | +{ | |
322 | + path: '/courseDiscussion', | |
323 | + meta: {}, | |
324 | + name: 'Course Discussion', | |
325 | + props: (route) => ({ | |
326 | + type: route.query.type | |
327 | + }), | |
328 | + component: () => | |
329 | + import( | |
330 | + /* webpackChunkName: "routes" */ | |
331 | + /* webpackMode: "lazy-once" */ | |
332 | + `@/pages/Course/courseDiscussion.vue` | |
333 | + ) | |
334 | +}, | |
335 | +{ | |
336 | + path: '/courseDiscussionesForm/:discussionId', | |
337 | + meta: {}, | |
338 | + name: 'Course Discussiones Fourm', | |
339 | + props: (route) => ({ | |
340 | + type: route.query.type | |
341 | + }), | |
342 | + component: () => | |
343 | + import( | |
344 | + /* webpackChunkName: "routes" */ | |
345 | + /* webpackMode: "lazy-once" */ | |
346 | + `@/pages/Course/discussion.vue` | |
347 | + ) | |
348 | +}, | |
349 | +{ | |
350 | + path: '/Announcement', | |
351 | + meta: {}, | |
352 | + name: 'Announcement', | |
353 | + props: (route) => ({ | |
354 | + type: route.query.type | |
355 | + }), | |
356 | + component: () => | |
357 | + import( | |
358 | + /* webpackChunkName: "routes" */ | |
359 | + /* webpackMode: "lazy-once" */ | |
360 | + `@/pages/Dashboard/Announcement.vue` | |
361 | + ) | |
362 | +}, | |
363 | +{ | |
364 | + path: '/annoucementForum/:annoucementId', | |
365 | + meta: {}, | |
366 | + name: 'Annoucement Forum', | |
367 | + props: (route) => ({ | |
368 | + type: route.query.type | |
369 | + }), | |
370 | + component: () => | |
371 | + import( | |
372 | + /* webpackChunkName: "routes" */ | |
373 | + /* webpackMode: "lazy-once" */ | |
374 | + `@/pages/Annoucement/annoucementForum.vue` | |
375 | + ) | |
376 | +}, | |
377 | +{ | |
378 | + path: '/socialMedia', | |
379 | + meta: {}, | |
380 | + name: 'Social Media', | |
381 | + props: (route) => ({ | |
382 | + type: route.query.type | |
383 | + }), | |
384 | + component: () => | |
385 | + import( | |
386 | + /* webpackChunkName: "routes" */ | |
387 | + /* webpackMode: "lazy-once" */ | |
388 | + `@/pages/socialMedia/socialMedia.vue` | |
389 | + ) | |
390 | +}, | |
391 | +{ | |
392 | + path: '/gallery', | |
393 | + meta: {}, | |
394 | + name: 'Gallery', | |
395 | + props: (route) => ({ | |
396 | + type: route.query.type | |
397 | + }), | |
398 | + component: () => | |
399 | + import( | |
400 | + /* webpackChunkName: "routes" */ | |
401 | + /* webpackMode: "lazy-once" */ | |
402 | + `@/pages/Gallery/gallery.vue` | |
403 | + ) | |
404 | +}, | |
405 | +{ | |
406 | + path: '/event', | |
407 | + meta: {}, | |
408 | + name: 'Event', | |
409 | + props: (route) => ({ | |
410 | + type: route.query.type | |
411 | + }), | |
412 | + component: () => | |
413 | + import( | |
414 | + /* webpackChunkName: "routes" */ | |
415 | + /* webpackMode: "lazy-once" */ | |
416 | + `@/pages/Event/event.vue` | |
417 | + ) | |
418 | +}, | |
419 | +{ | |
420 | + path: '/holiday', | |
421 | + meta: {}, | |
422 | + name: 'Holiday', | |
423 | + props: (route) => ({ | |
424 | + type: route.query.type | |
425 | + }), | |
426 | + component: () => | |
427 | + import( | |
428 | + /* webpackChunkName: "routes" */ | |
429 | + /* webpackMode: "lazy-once" */ | |
430 | + `@/pages/Holiday/holiday.vue` | |
431 | + ) | |
432 | +}, | |
433 | +{ | |
434 | + path: '/user', | |
435 | + meta: {}, | |
436 | + name: 'User', | |
437 | + props: (route) => ({ | |
438 | + type: route.query.type | |
439 | + }), | |
440 | + component: () => | |
441 | + import( | |
442 | + /* webpackChunkName: "routes" */ | |
443 | + /* webpackMode: "lazy-once" */ | |
444 | + `@/pages/User/user.vue` | |
445 | + ) | |
446 | +}, | |
447 | +{ | |
448 | + path: '/AttendenceStudent', | |
449 | + meta: {}, | |
450 | + name: 'Student Attendence', | |
451 | + props: (route) => ({ | |
452 | + type: route.query.type | |
453 | + }), | |
454 | + component: () => | |
455 | + import( | |
456 | + /* webpackChunkName: "routes" */ | |
457 | + /* webpackMode: "lazy-once" */ | |
458 | + `@/pages/Attendence/studentAttendence.vue` | |
459 | + ) | |
460 | +}, | |
461 | +{ | |
462 | + path: '/AttendenceTeacher', | |
463 | + meta: {}, | |
464 | + name: 'Teacher Attendence', | |
465 | + props: (route) => ({ | |
466 | + type: route.query.type | |
467 | + }), | |
468 | + component: () => | |
469 | + import( | |
470 | + /* webpackChunkName: "routes" */ | |
471 | + /* webpackMode: "lazy-once" */ | |
472 | + `@/pages/Attendence/teacherAttendence.vue` | |
473 | + ) | |
474 | +}, | |
475 | +{ | |
476 | + path: '/salaryTemplate', | |
477 | + meta: {}, | |
478 | + name: 'Salary Template', | |
479 | + props: (route) => ({ | |
480 | + type: route.query.type | |
481 | + }), | |
482 | + component: () => | |
483 | + import( | |
484 | + `@/pages/Payroll/salaryTemplate.vue` | |
485 | + ) | |
486 | +}, | |
487 | +{ | |
488 | + path: '/hourlyTemplate', | |
489 | + meta: {}, | |
490 | + name: 'Hourly Template', | |
491 | + props: (route) => ({ | |
492 | + type: route.query.type | |
493 | + }), | |
494 | + component: () => | |
495 | + import( | |
496 | + `@/pages/Payroll/hourlyTemplate.vue` | |
497 | + ) | |
498 | +}, | |
499 | +{ | |
500 | + path: '/manageSalary', | |
501 | + meta: {}, | |
502 | + name: 'Manage Salary', | |
503 | + props: (route) => ({ | |
504 | + type: route.query.type | |
505 | + }), | |
506 | + component: () => | |
507 | + import( | |
508 | + `@/pages/Payroll/manageSalary.vue` | |
509 | + ) | |
510 | +}, | |
511 | +// { | |
512 | +// path: '/makePayment', | |
513 | +// meta: {}, | |
514 | +// name: 'Make Payment', | |
515 | +// props: (route) => ({ type: route.query.type }), | |
516 | +// component: () => | |
517 | +// import ( | |
518 | +// `@/pages/Payroll/makePayment.vue` | |
519 | +// ) | |
520 | +// }, | |
521 | +{ | |
522 | + path: '/AttendenceUser', | |
523 | + meta: {}, | |
524 | + name: 'User Attendence', | |
525 | + props: (route) => ({ | |
526 | + type: route.query.type | |
527 | + }), | |
528 | + component: () => | |
529 | + import( | |
530 | + /* webpackChunkName: "routes" */ | |
531 | + /* webpackMode: "lazy-once" */ | |
532 | + `@/pages/Attendence/userAttendence.vue` | |
533 | + ) | |
534 | +}, | |
535 | +{ | |
536 | + path: '/feeTypes', | |
537 | + meta: {}, | |
538 | + name: 'Fee Types', | |
539 | + props: (route) => ({ | |
540 | + type: route.query.type | |
541 | + }), | |
542 | + component: () => | |
543 | + import( | |
544 | + /* webpackChunkName: "routes" */ | |
545 | + /* webpackMode: "lazy-once" */ | |
546 | + `@/pages/Account/feeTypes.vue` | |
547 | + ) | |
548 | +}, | |
549 | +{ | |
550 | + path: '/invoice', | |
551 | + meta: {}, | |
552 | + name: 'Invoice', | |
553 | + props: (route) => ({ | |
554 | + type: route.query.type | |
555 | + }), | |
556 | + component: () => | |
557 | + import( | |
558 | + /* webpackChunkName: "routes" */ | |
559 | + /* webpackMode: "lazy-once" */ | |
560 | + `@/pages/Account/invoice.vue` | |
561 | + ) | |
562 | +}, | |
563 | +{ | |
564 | + path: '/paymentHistory', | |
565 | + meta: {}, | |
566 | + name: 'Payment History', | |
567 | + props: (route) => ({ | |
568 | + type: route.query.type | |
569 | + }), | |
570 | + component: () => | |
571 | + import( | |
572 | + /* webpackChunkName: "routes" */ | |
573 | + /* webpackMode: "lazy-once" */ | |
574 | + `@/pages/Account/paymentHistory.vue` | |
575 | + ) | |
576 | +}, | |
577 | +{ | |
578 | + path: '/expense', | |
579 | + meta: {}, | |
580 | + name: 'Expense', | |
581 | + props: (route) => ({ | |
582 | + type: route.query.type | |
583 | + }), | |
584 | + component: () => | |
585 | + import( | |
586 | + /* webpackChunkName: "routes" */ | |
587 | + /* webpackMode: "lazy-once" */ | |
588 | + `@/pages/Account/expense.vue` | |
589 | + ) | |
590 | +}, | |
591 | +{ | |
592 | + path: '/income', | |
593 | + meta: {}, | |
594 | + name: 'Income', | |
595 | + props: (route) => ({ | |
596 | + type: route.query.type | |
597 | + }), | |
598 | + component: () => | |
599 | + import( | |
600 | + /* webpackChunkName: "routes" */ | |
601 | + /* webpackMode: "lazy-once" */ | |
602 | + `@/pages/Account/income.vue` | |
603 | + ) | |
604 | +}, | |
605 | +{ | |
606 | + path: '/libraryMember', | |
607 | + meta: {}, | |
608 | + name: 'Library Member', | |
609 | + props: (route) => ({ | |
610 | + type: route.query.type | |
611 | + }), | |
612 | + component: () => | |
613 | + import( | |
614 | + /* webpackChunkName: "routes" */ | |
615 | + /* webpackMode: "lazy-once" */ | |
616 | + `@/pages/Library/member.vue` | |
617 | + ) | |
618 | +}, | |
619 | +{ | |
620 | + path: '/books', | |
621 | + meta: {}, | |
622 | + name: 'Books', | |
623 | + props: (route) => ({ | |
624 | + type: route.query.type | |
625 | + }), | |
626 | + component: () => | |
627 | + import( | |
628 | + /* webpackChunkName: "routes" */ | |
629 | + /* webpackMode: "lazy-once" */ | |
630 | + `@/pages/Library/books.vue` | |
631 | + ) | |
632 | +}, | |
633 | +{ | |
634 | + path: '/issue', | |
635 | + meta: {}, | |
636 | + name: 'Issue', | |
637 | + props: (route) => ({ | |
638 | + type: route.query.type | |
639 | + }), | |
640 | + component: () => | |
641 | + import( | |
642 | + /* webpackChunkName: "routes" */ | |
643 | + /* webpackMode: "lazy-once" */ | |
644 | + `@/pages/Library/issue.vue` | |
645 | + ) | |
646 | +}, | |
647 | +{ | |
648 | + path: '/e-books', | |
649 | + meta: {}, | |
650 | + name: 'E-Books', | |
651 | + props: (route) => ({ | |
652 | + type: route.query.type | |
653 | + }), | |
654 | + component: () => | |
655 | + import( | |
656 | + /* webpackChunkName: "routes" */ | |
657 | + /* webpackMode: "lazy-once" */ | |
658 | + `@/pages/Library/eBook.vue` | |
659 | + ) | |
660 | +}, | |
661 | +{ | |
662 | + path: '/editInvoice/:invoiceid', | |
663 | + meta: {}, | |
664 | + name: 'Edit Invoice', | |
665 | + // props: (route) => ({ type: route.query.type }), | |
666 | + component: () => | |
667 | + import( | |
668 | + /* webpackChunkName: "routes" */ | |
669 | + /* webpackMode: "lazy-once" */ | |
670 | + `@/pages/Account/editInvoice.vue` | |
671 | + ) | |
672 | +}, | |
673 | +{ | |
674 | + path: '/StudentsAttendence/:id', | |
675 | + meta: {}, | |
676 | + name: 'View Students Attendence', | |
677 | + props: (route) => ({ | |
678 | + type: route.query.type | |
679 | + }), | |
680 | + component: () => | |
681 | + import( | |
682 | + /* webpackChunkName: "routes" */ | |
683 | + /* webpackMode: "lazy-once" */ | |
684 | + `@/pages/Attendence/viewStudentsAttendence.vue` | |
685 | + ) | |
686 | +}, | |
687 | +{ | |
688 | + path: '/TeacherAttendence/:teacherId', | |
689 | + meta: {}, | |
690 | + name: 'View Teacher Attendence', | |
691 | + props: (route) => ({ | |
692 | + type: route.query.type | |
693 | + }), | |
694 | + component: () => | |
695 | + import( | |
696 | + /* webpackChunkName: "routes" */ | |
697 | + /* webpackMode: "lazy-once" */ | |
698 | + `@/pages/Attendence/viewTeacherAttendence.vue` | |
699 | + ) | |
700 | +}, | |
701 | +{ | |
702 | + path: '/viewInvoice/:viewInvoiceId', | |
703 | + meta: {}, | |
704 | + name: 'View Invoice', | |
705 | + props: (route) => ({ | |
706 | + type: route.query.type | |
707 | + }), | |
708 | + component: () => | |
709 | + import( | |
710 | + /* webpackChunkName: "routes" */ | |
711 | + /* webpackMode: "lazy-once" */ | |
712 | + `@/pages/Account/viewInvoice.vue` | |
713 | + ) | |
714 | +}, | |
715 | +{ | |
716 | + path: '/viewPaymentInvoice/:viewPaymentInvoiceId', | |
717 | + meta: {}, | |
718 | + name: 'View Payment Invoice', | |
719 | + props: (route) => ({ | |
720 | + type: route.query.type | |
721 | + }), | |
722 | + component: () => | |
723 | + import( | |
724 | + /* webpackChunkName: "routes" */ | |
725 | + /* webpackMode: "lazy-once" */ | |
726 | + `@/pages/Account/viewPaymentInvoice.vue` | |
727 | + ) | |
728 | +}, | |
729 | +{ | |
730 | + path: '/globalPayment', | |
731 | + meta: {}, | |
732 | + name: 'Global Payment', | |
733 | + props: (route) => ({ | |
734 | + type: route.query.type | |
735 | + }), | |
736 | + component: () => | |
737 | + import( | |
738 | + /* webpackChunkName: "routes" */ | |
739 | + /* webpackMode: "lazy-once" */ | |
740 | + `@/pages/Account/globalPayment.vue` | |
741 | + ) | |
742 | +}, | |
743 | +{ | |
744 | + path: '/exam', | |
745 | + meta: {}, | |
746 | + name: 'Exam', | |
747 | + props: (route) => ({ | |
748 | + type: route.query.type | |
749 | + }), | |
750 | + component: () => | |
751 | + import( | |
752 | + /* webpackChunkName: "routes" */ | |
753 | + /* webpackMode: "lazy-once" */ | |
754 | + `@/pages/Exam/exam.vue` | |
755 | + ) | |
756 | +}, | |
757 | +{ | |
758 | + path: '/grade', | |
759 | + meta: {}, | |
760 | + name: 'Grade', | |
761 | + props: (route) => ({ | |
762 | + type: route.query.type | |
763 | + }), | |
764 | + component: () => | |
765 | + import( | |
766 | + /* webpackChunkName: "routes" */ | |
767 | + /* webpackMode: "lazy-once" */ | |
768 | + `@/pages/Exam/grade.vue` | |
769 | + ) | |
770 | +}, | |
771 | +{ | |
772 | + path: '/examSchedule', | |
773 | + meta: {}, | |
774 | + name: 'Exam Schedule', | |
775 | + props: (route) => ({ | |
776 | + type: route.query.type | |
777 | + }), | |
778 | + component: () => | |
779 | + import( | |
780 | + /* webpackChunkName: "routes" */ | |
781 | + /* webpackMode: "lazy-once" */ | |
782 | + `@/pages/Exam/examSchedule.vue` | |
783 | + ) | |
784 | +}, | |
785 | +{ | |
786 | + path: '/examAttendence', | |
787 | + meta: {}, | |
788 | + name: 'Exam Attendence', | |
789 | + props: (route) => ({ | |
790 | + type: route.query.type | |
791 | + }), | |
792 | + component: () => | |
793 | + import( | |
794 | + /* webpackChunkName: "routes" */ | |
795 | + /* webpackMode: "lazy-once" */ | |
796 | + `@/pages/Exam/examAttendence.vue` | |
797 | + ) | |
798 | +}, | |
799 | +{ | |
800 | + path: '/mark', | |
801 | + meta: {}, | |
802 | + name: 'Mark', | |
803 | + props: (route) => ({ | |
804 | + type: route.query.type | |
805 | + }), | |
806 | + component: () => | |
807 | + import( | |
808 | + /* webpackChunkName: "routes" */ | |
809 | + /* webpackMode: "lazy-once" */ | |
810 | + `@/pages/Mark/mark.vue` | |
811 | + ) | |
812 | +}, | |
813 | +{ | |
814 | + path: '/viewMark/:markId', | |
815 | + meta: {}, | |
816 | + name: 'view Mark', | |
817 | + props: (route) => ({ | |
818 | + type: route.query.type | |
819 | + }), | |
820 | + component: () => | |
821 | + import( | |
822 | + /* webpackChunkName: "routes" */ | |
823 | + /* webpackMode: "lazy-once" */ | |
824 | + `@/pages/Mark/viewMark.vue` | |
825 | + ) | |
826 | +}, | |
827 | +{ | |
828 | + path: '/markDistribution', | |
829 | + meta: {}, | |
830 | + name: 'Mark Distribution', | |
831 | + props: (route) => ({ | |
832 | + type: route.query.type | |
833 | + }), | |
834 | + component: () => | |
835 | + import( | |
836 | + /* webpackChunkName: "routes" */ | |
837 | + /* webpackMode: "lazy-once" */ | |
838 | + `@/pages/Mark/markDistribution.vue` | |
839 | + ) | |
840 | +}, | |
841 | +{ | |
842 | + path: '/meet', | |
843 | + meta: {}, | |
844 | + name: 'Meet', | |
845 | + props: (route) => ({ | |
846 | + type: route.query.type | |
847 | + }), | |
848 | + component: () => | |
849 | + import( | |
850 | + /* webpackChunkName: "routes" */ | |
851 | + /* webpackMode: "lazy-once" */ | |
852 | + `@/pages/Meet/meet.vue` | |
853 | + ) | |
854 | +}, | |
855 | +{ | |
856 | + path: '/academicYear', | |
857 | + meta: {}, | |
858 | + name: 'Academic Year', | |
859 | + props: (route) => ({ | |
860 | + type: route.query.type | |
861 | + }), | |
862 | + component: () => | |
863 | + import( | |
864 | + /* webpackChunkName: "routes" */ | |
865 | + /* webpackMode: "lazy-once" */ | |
866 | + `@/pages/Administrator/academicYear.vue` | |
867 | + ) | |
868 | +}, | |
869 | +{ | |
870 | + path: '/systemAdmin', | |
871 | + meta: {}, | |
872 | + name: 'System Admin', | |
873 | + props: (route) => ({ | |
874 | + type: route.query.type | |
875 | + }), | |
876 | + component: () => | |
877 | + import( | |
878 | + /* webpackChunkName: "routes" */ | |
879 | + /* webpackMode: "lazy-once" */ | |
880 | + `@/pages/Administrator/systemAdmin.vue` | |
881 | + ) | |
882 | +}, | |
883 | +{ | |
884 | + path: '/resetPassword', | |
885 | + meta: {}, | |
886 | + name: 'Change Password', | |
887 | + props: (route) => ({ | |
888 | + type: route.query.type | |
889 | + }), | |
890 | + component: () => | |
891 | + import( | |
892 | + /* webpackChunkName: "routes" */ | |
893 | + /* webpackMode: "lazy-once" */ | |
894 | + `@/pages/Administrator/resetPassword.vue` | |
895 | + ) | |
896 | +}, | |
897 | +{ | |
898 | + path: '/role', | |
899 | + meta: {}, | |
900 | + name: 'Role', | |
901 | + props: (route) => ({ | |
902 | + type: route.query.type | |
903 | + }), | |
904 | + component: () => | |
905 | + import( | |
906 | + /* webpackChunkName: "routes" */ | |
907 | + /* webpackMode: "lazy-once" */ | |
908 | + `@/pages/Administrator/role.vue` | |
909 | + ) | |
910 | +}, | |
911 | +{ | |
912 | + path: '/bulkImport', | |
913 | + meta: {}, | |
914 | + name: 'Bulk Import', | |
915 | + props: (route) => ({ | |
916 | + type: route.query.type | |
917 | + }), | |
918 | + component: () => | |
919 | + import( | |
920 | + /* webpackChunkName: "routes" */ | |
921 | + /* webpackMode: "lazy-once" */ | |
922 | + `@/pages/Administrator/bulkImport.vue` | |
923 | + ) | |
924 | +}, | |
925 | +{ | |
926 | + path: '/studentReport', | |
927 | + meta: {}, | |
928 | + name: 'Student Report', | |
929 | + props: (route) => ({ | |
930 | + type: route.query.type | |
931 | + }), | |
932 | + component: () => | |
933 | + import( | |
934 | + /* webpackChunkName: "routes" */ | |
935 | + /* webpackMode: "lazy-once" */ | |
936 | + `@/pages/Report/studentReport.vue` | |
937 | + ) | |
938 | +}, | |
939 | +{ | |
940 | + path: '/progressCardReport', | |
941 | + meta: {}, | |
942 | + name: 'Progress Card Report', | |
943 | + props: (route) => ({ | |
944 | + type: route.query.type | |
945 | + }), | |
946 | + component: () => | |
947 | + import( | |
948 | + /* webpackChunkName: "routes" */ | |
949 | + /* webpackMode: "lazy-once" */ | |
950 | + `@/pages/Report/progressCardReport.vue` | |
951 | + ) | |
952 | +}, | |
953 | +{ | |
954 | + path: '/idCard', | |
955 | + meta: {}, | |
956 | + name: 'Id Card Report', | |
957 | + props: (route) => ({ | |
958 | + type: route.query.type | |
959 | + }), | |
960 | + component: () => | |
961 | + import( | |
962 | + `@/pages/Report/idCard.vue` | |
963 | + ) | |
964 | +}, | |
965 | +{ | |
966 | + path: '/admitCard', | |
967 | + meta: {}, | |
968 | + name: 'Admit Card Report', | |
969 | + props: (route) => ({ | |
970 | + type: route.query.type | |
971 | + }), | |
972 | + component: () => | |
973 | + import( | |
974 | + `@/pages/Report/admitCard.vue` | |
975 | + ) | |
976 | +}, | |
977 | +{ | |
978 | + path: '/generalSetting', | |
979 | + meta: {}, | |
980 | + name: 'General Setting', | |
981 | + props: (route) => ({ | |
982 | + type: route.query.type | |
983 | + }), | |
984 | + component: () => | |
985 | + import( | |
986 | + /* webpackChunkName: "routes" */ | |
987 | + /* webpackMode: "lazy-once" */ | |
988 | + `@/pages/generalSetting/generalSetting.vue` | |
989 | + ) | |
990 | +}, | |
991 | +{ | |
992 | + path: '/assignment', | |
993 | + meta: {}, | |
994 | + name: 'Assignment', | |
995 | + props: (route) => ({ | |
996 | + type: route.query.type | |
997 | + }), | |
998 | + component: () => | |
999 | + import( | |
1000 | + `@/pages/Academic/assignment.vue` | |
1001 | + ) | |
1002 | +}, | |
1003 | +{ | |
1004 | + path: '/routine', | |
1005 | + meta: {}, | |
1006 | + name: 'Routine', | |
1007 | + props: (route) => ({ | |
1008 | + type: route.query.type | |
1009 | + }), | |
1010 | + component: () => | |
1011 | + import( | |
1012 | + `@/pages/Academic/routine.vue` | |
1013 | + ) | |
1014 | +}, | |
1015 | +{ | |
1016 | + path: '/subject', | |
1017 | + meta: {}, | |
1018 | + name: 'Subject', | |
1019 | + props: (route) => ({ | |
1020 | + type: route.query.type | |
1021 | + }), | |
1022 | + component: () => | |
1023 | + import( | |
1024 | + `@/pages/Academic/subject.vue` | |
1025 | + ) | |
1026 | +}, | |
1027 | +{ | |
1028 | + path: '/syllabus', | |
1029 | + meta: {}, | |
1030 | + name: 'Syllabus', | |
1031 | + props: (route) => ({ | |
1032 | + type: route.query.type | |
1033 | + }), | |
1034 | + component: () => | |
1035 | + import( | |
1036 | + `@/pages/Academic/syllabus.vue` | |
1037 | + ) | |
1038 | +}, | |
1039 | +{ | |
1040 | + path: '/course', | |
1041 | + meta: {}, | |
1042 | + name: 'Course', | |
1043 | + props: (route) => ({ | |
1044 | + type: route.query.type | |
1045 | + }), | |
1046 | + component: () => | |
1047 | + import( | |
1048 | + /* webpackChunkName: "routes" */ | |
1049 | + /* webpackMode: "lazy-once" */ | |
1050 | + `@/pages/Course/course.vue` | |
1051 | + ) | |
1052 | +}, | |
1053 | +{ | |
1054 | + path: '/courseDetail', | |
1055 | + meta: {}, | |
1056 | + name: 'Course Detail', | |
1057 | + props: (route) => ({ | |
1058 | + type: route.query.type | |
1059 | + }), | |
1060 | + component: () => | |
1061 | + import( | |
1062 | + /* webpackChunkName: "routes" */ | |
1063 | + /* webpackMode: "lazy-once" */ | |
1064 | + `@/pages/Course/courseDetail.vue` | |
1065 | + ) | |
1066 | +}, | |
1067 | +{ | |
1068 | + path: '/enrollStudents', | |
1069 | + meta: {}, | |
1070 | + name: 'Enroll Students', | |
1071 | + props: (route) => ({ | |
1072 | + type: route.query.type | |
1073 | + }), | |
1074 | + component: () => | |
1075 | + import( | |
1076 | + /* webpackChunkName: "routes" */ | |
1077 | + /* webpackMode: "lazy-once" */ | |
1078 | + `@/pages/Course/enrollStudents.vue` | |
1079 | + ) | |
1080 | +}, | |
1081 | +{ | |
1082 | + path: '/changeStudents', | |
1083 | + meta: {}, | |
1084 | + name: 'Change Students', | |
1085 | + props: (route) => ({ | |
1086 | + type: route.query.type | |
1087 | + }), | |
1088 | + component: () => | |
1089 | + import( | |
1090 | + /* webpackChunkName: "routes" */ | |
1091 | + /* webpackMode: "lazy-once" */ | |
1092 | + `@/pages/changeStudents/changeStudents.vue` | |
1093 | + ) | |
1094 | +}, | |
1095 | +{ | |
1096 | + path: '/annoucement', | |
1097 | + meta: {}, | |
1098 | + name: 'Annoucement', | |
1099 | + props: (route) => ({ | |
1100 | + type: route.query.type | |
1101 | + }), | |
1102 | + component: () => | |
1103 | + import( | |
1104 | + /* webpackChunkName: "routes" */ | |
1105 | + /* webpackMode: "lazy-once" */ | |
1106 | + `@/pages/Annoucement/annoucement.vue` | |
1107 | + ) | |
1108 | +}, | |
1109 | +{ | |
1110 | + path: '/meetingEvent', | |
1111 | + meta: {}, | |
1112 | + name: 'Meeting Event', | |
1113 | + props: (route) => ({ | |
1114 | + type: route.query.type | |
1115 | + }), | |
1116 | + component: () => | |
1117 | + import( | |
1118 | + /* webpackChunkName: "routes" */ | |
1119 | + /* webpackMode: "lazy-once" */ | |
1120 | + `@/pages/meetingEvent/meetingEvent.vue` | |
1121 | + ) | |
1122 | +}, | |
1123 | +//////SCHOOL | |
1124 | 1124 | |
1125 | - { | |
1126 | - path: '/school', | |
1127 | - meta: {}, | |
1128 | - name: 'School', | |
1129 | - props: (route) => ({ | |
1130 | - type: route.query.type | |
1131 | - }), | |
1132 | - component: () => | |
1133 | - import( | |
1134 | - /* webpackChunkName: "routes" */ | |
1135 | - /* webpackMode: "lazy-once" */ | |
1136 | - `@/pages/School/school.vue` | |
1137 | - ) | |
1138 | - }, | |
1139 | - { | |
1140 | - path: '/schooldashboard', | |
1141 | - meta: {}, | |
1142 | - name: 'View School Dashboard', | |
1143 | - props: (route) => ({ | |
1144 | - type: route.query.type | |
1145 | - }), | |
1146 | - component: () => | |
1147 | - import( | |
1148 | - /* webpackChunkName: "routes" */ | |
1149 | - /* webpackMode: "lazy-once" */ | |
1150 | - `@/pages/School/viewSchoolDashboard.vue` | |
1151 | - ) | |
1152 | - } | |
1125 | +{ | |
1126 | + path: '/school', | |
1127 | + meta: {}, | |
1128 | + name: 'School', | |
1129 | + props: (route) => ({ | |
1130 | + type: route.query.type | |
1131 | + }), | |
1132 | + component: () => | |
1133 | + import( | |
1134 | + /* webpackChunkName: "routes" */ | |
1135 | + /* webpackMode: "lazy-once" */ | |
1136 | + `@/pages/School/school.vue` | |
1137 | + ) | |
1138 | +}, | |
1139 | +{ | |
1140 | + path: '/appVersion', | |
1141 | + meta: {}, | |
1142 | + name: 'App Version', | |
1143 | + props: (route) => ({ | |
1144 | + type: route.query.type | |
1145 | + }), | |
1146 | + component: () => | |
1147 | + import( | |
1148 | + /* webpackChunkName: "routes" */ | |
1149 | + /* webpackMode: "lazy-once" */ | |
1150 | + `@/pages/School/appVersion.vue` | |
1151 | + ) | |
1152 | +}, | |
1153 | +{ | |
1154 | + path: '/schooldashboard', | |
1155 | + meta: {}, | |
1156 | + name: 'View School Dashboard', | |
1157 | + props: (route) => ({ | |
1158 | + type: route.query.type | |
1159 | + }), | |
1160 | + component: () => | |
1161 | + import( | |
1162 | + /* webpackChunkName: "routes" */ | |
1163 | + /* webpackMode: "lazy-once" */ | |
1164 | + `@/pages/School/viewSchoolDashboard.vue` | |
1165 | + ) | |
1166 | +} | |
1153 | 1167 | ]; |
1154 | 1168 | \ No newline at end of file | ... | ... |
static/icon/phone.png
297 Bytes