Commit b39d2afd24806c4700422620091dbea0fd3cf131
1 parent
813e55a793
Exists in
master
and in
3 other branches
responsive dashboard
Showing
10 changed files
with
84 additions
and
46 deletions
Show diff stats
src/pages/Class/addclass.vue
src/pages/Event/event.vue
src/pages/News/news.vue
src/pages/Notification/notification.vue
src/pages/Reminder/reminder.vue
src/pages/Section/section.vue
src/pages/Students/students.vue
src/pages/Teachers/teachers.vue
src/pages/TimeTable/timeTable.vue
... | ... | @@ -407,7 +407,7 @@ |
407 | 407 | <!-- ****** EXISTING-USERS TIME-TABLE ****** --> |
408 | 408 | |
409 | 409 | <v-card flat> |
410 | - <v-card-actions> | |
410 | + <v-card-actions class="hidden-xs-only hidden-sm-only"> | |
411 | 411 | <v-layout> |
412 | 412 | <label class="right mt-4 ml-5">Select Class:</label> |
413 | 413 | <v-select |
... | ... | @@ -436,6 +436,44 @@ |
436 | 436 | <v-spacer></v-spacer> |
437 | 437 | <v-btn @click="findTimeTable()" round dark :loading="loading" class="left">Find</v-btn> |
438 | 438 | </v-card-actions> |
439 | + <v-layout class="hidden-xl-only hidden-lg-only hidden-md-only"> | |
440 | + <v-flex xs4 sm2 class="mt-4 ml-2"> | |
441 | + <label>Select Class:</label> | |
442 | + </v-flex> | |
443 | + <v-flex xs6 sm9> | |
444 | + <v-select | |
445 | + :items="addclass" | |
446 | + label="Select Class" | |
447 | + v-model="selectTimeTable.select" | |
448 | + item-text="classNum" | |
449 | + item-value="_id" | |
450 | + name="Select Class" | |
451 | + @change="getSections(selectTimeTable.select)" | |
452 | + required | |
453 | + ></v-select> | |
454 | + </v-flex> | |
455 | + </v-layout> | |
456 | + <v-layout class="hidden-xl-only hidden-lg-only hidden-md-only"> | |
457 | + <v-flex xs4 sm2 class="mt-4 ml-2"> | |
458 | + <label>Select Section:</label> | |
459 | + </v-flex> | |
460 | + <v-flex xs6 sm9> | |
461 | + <v-select | |
462 | + :items="addSection" | |
463 | + label="Select Section" | |
464 | + v-model="selectTimeTable.selectSection" | |
465 | + item-text="name" | |
466 | + item-value="_id" | |
467 | + name="Select Section" | |
468 | + required | |
469 | + ></v-select> | |
470 | + </v-flex> | |
471 | + </v-layout> | |
472 | + <v-layout class="hidden-xl-only hidden-lg-only hidden-md-only"> | |
473 | + <v-flex xs12> | |
474 | + <v-btn @click="findTimeTable()" round dark :loading="loading" class="right mr-4 mb-2">Find</v-btn> | |
475 | + </v-flex> | |
476 | + </v-layout> | |
439 | 477 | </v-card> |
440 | 478 | <v-flex xs12> |
441 | 479 | <v-data-table |
... | ... | @@ -462,7 +500,7 @@ |
462 | 500 | src="/static/icon/edit1.png" |
463 | 501 | /> |
464 | 502 | <img |
465 | - style="cursor:pointer; height:20px; " | |
503 | + style="cursor:pointer;width:20px; height:20px; " | |
466 | 504 | class="mr-5" |
467 | 505 | @click="deleteItem(props.item)" |
468 | 506 | src="/static/icon/delete1.png" |
... | ... | @@ -499,7 +537,7 @@ |
499 | 537 | @click="updateTimeTable(list, timeTableList)" |
500 | 538 | /> |
501 | 539 | <img |
502 | - style="cursor:pointer; height:20px; " | |
540 | + style="cursor:pointer; width:20px; height:20px; " | |
503 | 541 | src="/static/icon/delete1.png" |
504 | 542 | @click="deleteTimeTable(list,props.item.lectures)" |
505 | 543 | /> |
... | ... | @@ -779,7 +817,7 @@ export default { |
779 | 817 | timeOutRules: [v => !!v || "Time Out is required"], |
780 | 818 | lectureRules: [v => !!v || "Lecture No is required"], |
781 | 819 | subjectNameRules: [v => !!v || "Subject Name is required"], |
782 | - getParticulerLecture:"", | |
820 | + getParticulerLecture: "", | |
783 | 821 | headers: [ |
784 | 822 | { |
785 | 823 | text: "No", |
... | ... | @@ -922,7 +960,7 @@ export default { |
922 | 960 | }, |
923 | 961 | getTimeTable(item) { |
924 | 962 | this.showLoader = true; |
925 | - this.getParticulerLecture = item._id | |
963 | + this.getParticulerLecture = item._id; | |
926 | 964 | var token = this.$store.state.token; |
927 | 965 | http() |
928 | 966 | .get( |
... | ... | @@ -1013,38 +1051,38 @@ export default { |
1013 | 1051 | }, |
1014 | 1052 | AddLecture() { |
1015 | 1053 | if (this.$refs.lectureForm.validate()) { |
1016 | - http() | |
1017 | - .post("/addLecture", this.addlectures) | |
1018 | - .then(response => { | |
1019 | - if ((this.snackbar = true)) { | |
1020 | - this.text = "New Add Lecture successfully"; | |
1021 | - } | |
1054 | + http() | |
1055 | + .post("/addLecture", this.addlectures) | |
1056 | + .then(response => { | |
1057 | + if ((this.snackbar = true)) { | |
1058 | + this.text = "New Add Lecture successfully"; | |
1059 | + } | |
1022 | 1060 | var token = this.$store.state.token; |
1023 | 1061 | http() |
1024 | - .get( | |
1025 | - "/getParticularTimeTable", | |
1026 | - { params: { timeTableId: this.getParticulerLecture } }, | |
1027 | - { | |
1062 | + .get( | |
1063 | + "/getParticularTimeTable", | |
1064 | + { params: { timeTableId: this.getParticulerLecture } }, | |
1065 | + { | |
1028 | 1066 | headers: { Authorization: "Bearer " + token } |
1029 | - } | |
1030 | - ) | |
1031 | - .then(response => { | |
1032 | - this.timeTableList = response.data.data; | |
1033 | - this.showLoader = false; | |
1034 | - }) | |
1035 | - .catch(err => { | |
1036 | - this.showLoader = false; | |
1037 | - // console.log("err====>", err); | |
1038 | - }); | |
1039 | - this.closedialogLecture(); | |
1040 | - this.clearLeactureData(); | |
1041 | - }) | |
1042 | - .catch(error => { | |
1043 | - if ((this.snackbar = true)) { | |
1044 | - this.text = error.response.data.message; | |
1045 | - this.text = error.response.data.statusText; | |
1046 | - } | |
1047 | - }); | |
1067 | + } | |
1068 | + ) | |
1069 | + .then(response => { | |
1070 | + this.timeTableList = response.data.data; | |
1071 | + this.showLoader = false; | |
1072 | + }) | |
1073 | + .catch(err => { | |
1074 | + this.showLoader = false; | |
1075 | + // console.log("err====>", err); | |
1076 | + }); | |
1077 | + this.closedialogLecture(); | |
1078 | + this.clearLeactureData(); | |
1079 | + }) | |
1080 | + .catch(error => { | |
1081 | + if ((this.snackbar = true)) { | |
1082 | + this.text = error.response.data.message; | |
1083 | + this.text = error.response.data.statusText; | |
1084 | + } | |
1085 | + }); | |
1048 | 1086 | } |
1049 | 1087 | }, |
1050 | 1088 | updateParticularTable() { |
... | ... | @@ -1172,7 +1210,7 @@ export default { |
1172 | 1210 | clear() { |
1173 | 1211 | this.$refs.form.reset(); |
1174 | 1212 | }, |
1175 | - clearLeactureData(){ | |
1213 | + clearLeactureData() { | |
1176 | 1214 | this.$refs.lectureForm.reset(); |
1177 | 1215 | }, |
1178 | 1216 | save() { |
... | ... | @@ -1371,9 +1409,9 @@ h4 { |
1371 | 1409 | .pl-3 { |
1372 | 1410 | padding-left: 0px !important; |
1373 | 1411 | } |
1374 | - .right { | |
1412 | + /* .right { | |
1375 | 1413 | float: none !important; |
1376 | - } | |
1414 | + } */ | |
1377 | 1415 | .subheading { |
1378 | 1416 | font-size: 14px !important; |
1379 | 1417 | } | ... | ... |