Commit 29ac0dbb24e52d33f97b75a9c42ecd5764daba46
1 parent
f9b486fe1c
Exists in
master
and in
3 other branches
something changes
Showing
10 changed files
with
46 additions
and
28 deletions
Show diff stats
src/Services/http.js
1 | 1 | import axios from 'axios' |
2 | 2 | import store from '@/store/store' |
3 | 3 | |
4 | +const baseDomain = "http://13.234.251.173:8001/v1"; | |
5 | + | |
6 | +const baseURL = `${baseDomain}`; | |
7 | + | |
4 | 8 | export default () => { |
5 | 9 | return axios.create({ |
6 | 10 | // baseURL: 'http://192.168.2.221:3002/v1', |
7 | - baseURL: 'http://13.234.251.173:8001/v1', | |
11 | + baseURL, | |
8 | 12 | headers: { |
9 | 13 | Authorization: `Bearer ${store.state.token}` |
10 | 14 | } | ... | ... |
src/components/ThemeSettings.vue
src/main.js
src/pages/Administrator/systemAdmin.vue
... | ... | @@ -991,10 +991,8 @@ export default { |
991 | 991 | this.$refs.image.click(); |
992 | 992 | }, |
993 | 993 | onFilePicked(e) { |
994 | - // console.log(e) | |
995 | 994 | const files = e.target.files; |
996 | 995 | this.upload = e.target.files[0]; |
997 | - console.log("imageData-upload========>", this.upload); | |
998 | 996 | if (files[0] !== undefined) { |
999 | 997 | this.imageName = files[0].name; |
1000 | 998 | if (this.imageName.lastIndexOf(".") <= 0) { |
... | ... | @@ -1005,9 +1003,6 @@ export default { |
1005 | 1003 | fr.addEventListener("load", () => { |
1006 | 1004 | this.imageUrl = fr.result; |
1007 | 1005 | this.imageFile = files[0]; // this is an image file that can be sent to server... |
1008 | - // this.imageData.imageUrl = URL.createObjectURL(this.imageFile); | |
1009 | - // console.log("upload=======>", this.imageData.imageUrl); | |
1010 | - console.log("imageFile", this.imageUrl); | |
1011 | 1006 | }); |
1012 | 1007 | } else { |
1013 | 1008 | this.imageName = ""; |
... | ... | @@ -1028,7 +1023,6 @@ export default { |
1028 | 1023 | .then(response => { |
1029 | 1024 | this.desserts = response.data.data; |
1030 | 1025 | this.showLoader = false; |
1031 | - // console.log("getTeacherList=====>",this.desserts) | |
1032 | 1026 | }) |
1033 | 1027 | .catch(error => { |
1034 | 1028 | this.showLoader = false; |
... | ... | @@ -1065,7 +1059,6 @@ export default { |
1065 | 1059 | let deleteTeachers = { |
1066 | 1060 | teacherId: item._id |
1067 | 1061 | }; |
1068 | - // console.log("deleteUers",deleteTeachers) | |
1069 | 1062 | http() |
1070 | 1063 | .delete( |
1071 | 1064 | "/deleteTeacher", |
... | ... | @@ -1074,7 +1067,6 @@ export default { |
1074 | 1067 | } |
1075 | 1068 | ) |
1076 | 1069 | .then(response => { |
1077 | - // console.log("deleteUers",deleteTeachers) | |
1078 | 1070 | if ((this.snackbar = true)) { |
1079 | 1071 | this.text = "Successfully delete Existing Teacher"; |
1080 | 1072 | } | ... | ... |
src/pages/Report/progressCardReport.vue
... | ... | @@ -147,7 +147,7 @@ |
147 | 147 | <b>RollNo</b> |
148 | 148 | </h4> |
149 | 149 | </v-flex> |
150 | - <v-flex sm9 xs7 class="py-1"> | |
150 | + <v-flex sm9 xs6 class="py-1"> | |
151 | 151 | <h4>: {{ value[0].studentId.rollNo }}</h4> |
152 | 152 | </v-flex> |
153 | 153 | </v-layout> |
... | ... | @@ -157,7 +157,7 @@ |
157 | 157 | <b>Class</b> |
158 | 158 | </h4> |
159 | 159 | </v-flex> |
160 | - <v-flex sm9 xs8 class="py-1"> | |
160 | + <v-flex sm9 xs6 class="py-1"> | |
161 | 161 | <h4>: {{value[0].classId.classNum }}</h4> |
162 | 162 | </v-flex> |
163 | 163 | </v-layout> | ... | ... |
src/pages/Section/section.vue
... | ... | @@ -105,17 +105,10 @@ |
105 | 105 | <v-icon @click="close1">close</v-icon> |
106 | 106 | </v-toolbar> |
107 | 107 | <v-card> |
108 | - <v-flex align-center justify-center layout text-xs-center> | |
109 | - <v-avatar size="50px" style="position:absolute; top:20px;"> | |
110 | - <img src="/static/icon/user.png" /> | |
111 | - </v-avatar> | |
112 | - </v-flex> | |
113 | 108 | <v-card-text> |
114 | 109 | <v-container grid-list-md> |
115 | 110 | <v-layout wrap> |
116 | 111 | <v-flex> |
117 | - <br /> | |
118 | - <br /> | |
119 | 112 | <v-layout> |
120 | 113 | <v-flex xs7 sm6> |
121 | 114 | <h5 class="right my-1 hidden-xs-only hidden-sm-only"> |
... | ... | @@ -184,10 +177,10 @@ |
184 | 177 | :search="search" |
185 | 178 | > |
186 | 179 | <template slot="items" slot-scope="props"> |
187 | - <td id="td" class="text-xs-center">{{ props.index + 1}}</td> | |
188 | - <td id="td" class="text-xs-center">{{ props.item.classData.classNum}}</td> | |
189 | - <td id="td" class="text-xs-center">{{ props.item.name}}</td> | |
190 | - <td id="td" class="text-xs-center">{{ props.item.session}}</td> | |
180 | + <td id="td" class="text-xs-center">{{ props.index + 1 }}</td> | |
181 | + <td id="td" class="text-xs-center">{{ props.item.classData.classNum }}</td> | |
182 | + <td id="td" class="text-xs-center">{{ props.item.name }}</td> | |
183 | + <td id="td" class="text-xs-center">{{ props.item.session }}</td> | |
191 | 184 | |
192 | 185 | <td class="text-xs-center"> |
193 | 186 | <span> |
... | ... | @@ -340,7 +333,8 @@ |
340 | 333 | |
341 | 334 | <script> |
342 | 335 | import http from "@/Services/http.js"; |
343 | -import Util from "@/util"; | |
336 | +// import { apiCollection } from "@/schoolApi/apiCollection"; | |
337 | +// const getSectionData = apiCollection.get("posts"); | |
344 | 338 | |
345 | 339 | export default { |
346 | 340 | data: () => ({ |
... | ... | @@ -413,9 +407,10 @@ export default { |
413 | 407 | } |
414 | 408 | }), |
415 | 409 | methods: { |
416 | - getSectionList() { | |
410 | + async getSectionList() { | |
411 | + // const { data } = await getSectionData.get(); | |
417 | 412 | this.showLoader = true; |
418 | - http() | |
413 | + await http() | |
419 | 414 | .get("/getAllSections", { |
420 | 415 | headers: { Authorization: "Bearer " + this.token } |
421 | 416 | }) | ... | ... |
src/pages/Students/students.vue
src/schoolApi/apiCollection.js
... | ... | @@ -0,0 +1,12 @@ |
1 | +// import schoolApi from "./schoolApi"; | |
2 | +// // import GitHubRepository from "./gitHubRepository"; | |
3 | + | |
4 | +// const repositories = { | |
5 | +// posts: schoolApi | |
6 | +// // gitHub: GitHubRepository | |
7 | +// // other repositories ... | |
8 | +// }; | |
9 | + | |
10 | +// export const apiCollection = { | |
11 | +// get: name => repositories[name] | |
12 | +// }; | |
0 | 13 | \ No newline at end of file | ... | ... |
src/schoolApi/schoolApi.js
... | ... | @@ -0,0 +1,16 @@ |
1 | +// import http from "@/Services/http.js"; | |
2 | + | |
3 | +// const resource = "/getAllSections"; | |
4 | +// export default { | |
5 | +// get() { | |
6 | +// return http().get(`${resource}`) | |
7 | +// }, | |
8 | + | |
9 | +// // getPost(postId) { | |
10 | +// // return Repository.get(`${resource}/${postId}`); | |
11 | +// // }, | |
12 | + | |
13 | +// // createPost(payload) { | |
14 | +// // return Repository.post(`${resource}`, payload); | |
15 | +// // } | |
16 | +// }; | |
0 | 17 | \ No newline at end of file | ... | ... |