Commit d10c2663246cc38fa18dec72d59101147cafc3ed

Authored by Shikha Mishra
1 parent 9a4a647259

Improve updateBookIssue API, Upload Image was not working in many screen(Assignm…

…ent screen,Syllabus screen,Expense screen,Income screen,Notice Board screen) while editing now it's improved and Match button theme according to project theme
src/pages/Academic/assignment.vue
... ... @@ -120,6 +120,13 @@
120 120 v-model="imageName"
121 121 append-icon="attach_file"
122 122 ></v-text-field>
  123 + <input
  124 + type="file"
  125 + style="display:none"
  126 + ref="image"
  127 + accept="image/*"
  128 + @change="onFilePicked"
  129 + />
123 130 </v-flex>
124 131 </v-layout>
125 132 <v-flex xs12 sm12>
... ...
src/pages/Academic/syllabus.vue
... ... @@ -73,6 +73,13 @@
73 73 append-icon="attach_file"
74 74 ></v-text-field>
75 75 </v-flex>
  76 + <input
  77 + type="file"
  78 + style="display:none"
  79 + ref="image"
  80 + accept="image/*"
  81 + @change="onFilePicked"
  82 + />
76 83 </v-layout>
77 84 <v-flex xs12 sm12>
78 85 <v-card-actions>
... ...
src/pages/Account/expense.vue
... ... @@ -113,6 +113,13 @@
113 113 v-model="imageName"
114 114 append-icon="attach_file"
115 115 ></v-text-field>
  116 + <input
  117 + type="file"
  118 + style="display:none"
  119 + ref="image"
  120 + accept="image/*"
  121 + @change="onFilePicked"
  122 + />
116 123 </v-flex>
117 124 </v-layout>
118 125 </v-flex>
... ...
src/pages/Account/income.vue
... ... @@ -109,6 +109,13 @@
109 109 v-model="imageName"
110 110 append-icon="attach_file"
111 111 ></v-text-field>
  112 + <input
  113 + type="file"
  114 + style="display:none"
  115 + ref="image"
  116 + accept="image/*"
  117 + @change="onFilePicked"
  118 + />
112 119 </v-flex>
113 120 </v-layout>
114 121 </v-flex>
... ...
src/pages/Account/invoice.vue
... ... @@ -418,13 +418,7 @@
418 418 ></v-select>
419 419 </v-flex>
420 420 <v-flex xs4 sm6>
421   - <v-btn
422   - color="open-dialog-button"
423   - round
424   - dark
425   - class="right mt-3"
426   - @click="selectFeeType"
427   - >ADD</v-btn>
  421 + <v-btn round dark class="right add-button" @click="selectFeeType">ADD</v-btn>
428 422 </v-flex>
429 423 </v-layout>
430 424 <table class="feeTypeTable tableRsponsive">
... ...
src/pages/Library/issue.vue
... ... @@ -810,7 +810,7 @@ export default {
810 810 },
811 811 save() {
812 812 this.editedItem.bookIssueId = this.editedItem._id;
813   - this.editedItem.bookId = this.editedItem.bookId;
  813 + this.editedItem.bookId = this.editedItem.bookId._id;
814 814 http()
815 815 .put("/updateBookIssue", this.editedItem)
816 816 .then((response) => {
... ...
src/pages/NoticeBoard/noticeBoard.vue
... ... @@ -84,6 +84,13 @@
84 84 v-model="imageName"
85 85 append-icon="attach_file"
86 86 ></v-text-field>
  87 + <input
  88 + type="file"
  89 + style="display: none"
  90 + ref="image"
  91 + accept="image/*"
  92 + @change="onFilePicked"
  93 + />
87 94 </v-flex>
88 95 </v-layout>
89 96 </v-flex>
... ...
src/pages/Payroll/salaryTemplate.vue
... ... @@ -221,7 +221,7 @@
221 221 <v-btn
222 222 color="open-dialog-button"
223 223 dark
224   - class="right mt-3"
  224 + class="right add-button"
225 225 @click="save"
226 226 >Update Salary Template</v-btn>
227 227 </v-card-actions>
... ... @@ -755,7 +755,7 @@
755 755 <v-btn
756 756 color="open-dialog-button"
757 757 dark
758   - class="right mt-3"
  758 + class="right add-button"
759 759 @click="submit"
760 760 >Add Salary Template</v-btn>
761 761 </v-card-actions>
... ...
src/pages/TimeTable/timeTable.vue
... ... @@ -1366,9 +1366,10 @@ export default {
1366 1366 http()
1367 1367 .put("/updateTimeTable", editTimeTable)
1368 1368 .then((response) => {
1369   - console.log("editTimeTable", editTimeTable);
  1369 + // console.log("editTimeTable", editTimeTable);
1370 1370 if ((this.snackbar = true)) {
1371 1371 this.text = "Successfully Edit Existing Time Table";
  1372 + this.color = "success";
1372 1373 }
1373 1374 this.findTimeTable();
1374 1375 })
... ...