Blame view
src/pages/Report/progressCardReport.vue
28.1 KB
006544386
|
1 |
<template> |
68d742034
|
2 |
<v-container fluid class="body-color"> |
495e4037c
|
3 |
<!-- ****** Progress Card Report Table****** --> |
68d742034
|
4 |
<v-card flat class="elevation-0 transparent"> |
495e4037c
|
5 6 7 8 9 |
<v-form ref="form" v-model="valid" lazy-validation> <v-flex xs12 sm12 lg12> <v-layout wrap> <v-flex xs12 sm12 lg3> <v-layout> |
c571cc325
|
10 |
<v-flex xs3 sm3 lg2 class="subheading mt-4"> |
495e4037c
|
11 12 |
<label class="right">Class:</label> </v-flex> |
79583580d
|
13 |
<v-flex xs9 sm6 lg8 class="ml-2"> |
495e4037c
|
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<v-select v-model="getReport.classId" label="Select your class" type="text" :items="classList" item-text="classNum" item-value="_id" :rules="classRules" @change="getSections(getReport.classId)" required ></v-select> </v-flex> </v-layout> </v-flex> <v-flex xs12 sm12 lg3> <v-layout> |
c571cc325
|
30 |
<v-flex xs3 sm3 lg2 class="subheading mt-4"> |
495e4037c
|
31 32 |
<label class="right">Section:</label> </v-flex> |
79583580d
|
33 |
<v-flex xs9 sm6 lg8 class="ml-2"> |
495e4037c
|
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
<v-select :items="addSection" label="Select your Section" v-model="getReport.sectionId" item-text="name" item-value="_id" name="Select Section" @change="getStudents" :rules="sectionRules" required ></v-select> </v-flex> </v-layout> </v-flex> <v-flex xs12 sm12 lg3> <v-layout> |
c571cc325
|
50 |
<v-flex xs3 sm3 lg2 class="subheading mt-4"> |
495e4037c
|
51 52 |
<label class="right">Student:</label> </v-flex> |
ec5677f43
|
53 |
<v-flex xs9 sm6 lg8 class="ml-2"> |
495e4037c
|
54 55 56 57 58 59 60 61 62 63 64 65 |
<v-select :items="getStudentsList" label="Select your student" v-model="getReport.studentId" item-text="name" item-value="_id" :rules="studentRules" required ></v-select> </v-flex> </v-layout> </v-flex> |
c571cc325
|
66 |
<v-flex xs12 sm12 lg3> |
79583580d
|
67 |
<v-btn |
c571cc325
|
68 69 |
style="margin: auto; display: block;" |
79583580d
|
70 71 72 73 |
@click="getMarkReportList" round dark :loading="loading" |
3e79b2f9f
|
74 |
class="open-dialog-button mt-3" |
79583580d
|
75 |
>Get Report</v-btn> |
495e4037c
|
76 77 78 79 |
</v-flex> </v-layout> </v-flex> </v-form> |
006544386
|
80 |
</v-card> |
1d7227237
|
81 |
|
d4735dce7
|
82 83 84 |
<v-layout v-show="showReport"> <v-flex xs12> <v-card class="transparent elevation-0"> |
1d7227237
|
85 |
<v-container grid-list-md class="report"> |
4d8198ee4
|
86 |
<v-flex xs12 sm12> |
d4735dce7
|
87 88 89 |
<v-layout wrap> <!-- ****** TABLE DATA MARK ****** --> <v-flex xs12 sm12 md12> |
3e79b2f9f
|
90 91 |
<v-layout> <v-flex xs12> |
240f5da2c
|
92 93 94 95 96 97 98 |
<v-btn class="open-dialog-button" :loading="printLoader" round dark @click="printProgressReport()" > |
3e79b2f9f
|
99 100 101 102 103 |
Print <v-icon right dark>print</v-icon> </v-btn> </v-flex> </v-layout> |
a76a6f135
|
104 |
<div id="printMe"> |
4d8198ee4
|
105 |
<card class="elevation-0" v-for="(value, id, Index) in filterData" :key="Index"> |
bdaae72ca
|
106 |
<v-card |
4d8198ee4
|
107 108 109 |
class="ma-3" style=" border: 1px solid lightgrey; |
a76a6f135
|
110 111 |
margin-bottom:0px; padding: 0px" |
bdaae72ca
|
112 |
> |
4d8198ee4
|
113 114 115 |
<div style="border: 1px solid lightgray;"> <v-layout> <v-flex xs12 sm12 md12> |
664cc2c52
|
116 |
<div |
4d8198ee4
|
117 118 119 120 121 |
style=" border-bottom: 1px solid #ddd; overflow: hidden; vertical-align: middle; margin: 10px; |
a76a6f135
|
122 |
padding-bottom: 0px;" |
4d8198ee4
|
123 |
> |
664cc2c52
|
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
<!-- <v-flex xs12 sm12 md12> --> <v-layout> <div class="school-logo"> <img :src="userData.schoolLogoUrl" v-if="userData.schoolLogoUrl" style="width:40px !important;height:40px !important; float: left;" /> <img src="/static/schoolIcons/INTRACK_White.png" v-else-if="!userData.schoolLogoUrl" style="width:40px !important;height:40px !important; float: left;" /> </div> <div class="school-name"> |
eadd79e62
|
139 |
<h3>{{ schoolData.name }}</h3> |
664cc2c52
|
140 141 142 143 |
</div> </v-layout> <!-- </v-flex> --> </div> |
4d8198ee4
|
144 |
<!-- Profile School --> |
a76a6f135
|
145 |
<v-flex xs12 sm12 md12 lg12 style="margin:0px 0px; "> |
4d8198ee4
|
146 |
<v-layout> |
664cc2c52
|
147 148 149 150 151 152 |
<div style="flex-basis: 40%; -webkit-box-flex: 0; -ms-flex-positive: 0; flex-grow: 0; max-width: 40%;" |
4d8198ee4
|
153 |
> |
664cc2c52
|
154 155 156 157 158 159 |
<div style="padding: 4px; padding-left: 16px !important;" > <p style="font-size:20px;margin-bottom: 0px;" |
eadd79e62
|
160 |
>{{ schoolData.name }}</p> |
664cc2c52
|
161 162 |
<p style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;" |
eadd79e62
|
163 |
>{{ schoolData.address }}</p> |
664cc2c52
|
164 165 |
<p style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;" |
eadd79e62
|
166 |
>Phone : {{ schoolData.mobile }}</p> |
664cc2c52
|
167 168 |
<p style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;" |
eadd79e62
|
169 |
>Email : {{ schoolData.email }}</p> |
664cc2c52
|
170 171 |
</div> </div> |
4d8198ee4
|
172 |
<!-- Profile Student Report Card--> |
664cc2c52
|
173 174 175 176 177 178 179 |
<div style="flex-basis: 40%; -webkit-box-flex: 0; -ms-flex-positive: 0; flex-grow: 0; max-width: 40%;" > |
4d8198ee4
|
180 181 182 |
<div v-for="(studentMark,i,index) in value" :key="index"> <p v-if="index == 0" |
a76a6f135
|
183 |
style="font-size:20px;margin-bottom: 0px;" |
4d8198ee4
|
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
>{{ studentMark[0].studentId.name }}</p> <p v-if="index == 0" style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;" > Class : <b>{{ studentMark[0].classId.classNum }}</b> </p> <p v-if="index == 0" style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;" > Section : <b>{{ studentMark[0].sectionId.name }}</b> </p> <p v-if="index == 0" style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;" > Roll NO : <b>{{ studentMark[0].studentId.rollNo }}</b> </p> </div> |
664cc2c52
|
207 208 209 210 211 212 213 214 215 216 |
</div> <div style=" -ms-flex-preferred-size: 20%; flex-basis: 20%; -webkit-box-flex: 0; -ms-flex-positive: 0; flex-grow: 0; max-width: 20%;" > |
4d8198ee4
|
217 |
<div v-for="(studentMark,i,index) in value" :key="index"> |
05746bfae
|
218 219 |
<div style="padding-top:16px" |
4d8198ee4
|
220 |
v-if="index == 0" |
c571cc325
|
221 |
class="hidden-sm-only hidden-xs-only" |
4d8198ee4
|
222 223 224 225 |
> <img src="/static/icon/user.png" v-if="!studentMark[0].studentId.profilePicUrl" |
05746bfae
|
226 |
style="width:60px;height:60px;" |
4d8198ee4
|
227 228 229 230 |
/> <img :src="studentMark[0].studentId.profilePicUrl" v-else-if="studentMark[0].studentId.profilePicUrl" |
05746bfae
|
231 |
style="width:60px;height:60px;" |
4d8198ee4
|
232 |
/> |
05746bfae
|
233 |
</div> |
4d8198ee4
|
234 |
</div> |
664cc2c52
|
235 |
</div> |
4d8198ee4
|
236 |
</v-layout> |
c571cc325
|
237 |
</v-flex> |
4d8198ee4
|
238 239 240 241 242 243 |
</v-flex> </v-layout> <v-card v-for="studentMarks in value" :key="studentMarks" style=" |
c571cc325
|
244 245 246 247 248 249 250 |
background-color: #fff; border-color: #fff; color: rgba(0,0,0,0.87); overflow-x: auto; display: block; webkit-box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.2), 0px 0px 0px 0px rgba(0,0,0,0.14), 0px 0px 0px 0px rgba(0,0,0,0.12) !important; box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.2), 0px 0px 0px 0px rgba(0,0,0,0.14), 0px 0px 0px 0px rgba(0,0,0,0.12) !important;" |
4d8198ee4
|
251 |
> |
4d8198ee4
|
252 253 254 255 256 |
<table v-for="(studentMark,key) in studentMarks" :key="key" class="tableRsponsive feeTypeTable subheading" style="border: 1px solid black; |
bdaae72ca
|
257 258 259 260 |
border-collapse: collapse;!important table-layout: auto !important; width: 100% !important; overflow: hidden;" |
4d8198ee4
|
261 262 263 264 265 266 267 268 269 |
> <thead style="border: 1px solid transparent !important" v-if="key == 0" > <tr style="border: 1px solid transparent !important"> <td colspan="4" style="text-align: inherit !important; |
bdaae72ca
|
270 271 272 |
border-right: inherit; border-top: inherit; padding:14px;" |
4d8198ee4
|
273 274 275 276 277 |
>{{studentMark.examId.examName}}</td> </tr> <tr style="border: 1px solid lightgrey !important;padding:4px;"> <td rowspan="2" |
a76a6f135
|
278 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
279 280 281 282 283 284 |
>Subject</td> <template> <td v-for="(studentMarkData,i) in studentMark.studentsMarks" :key="i" colspan="2" |
a76a6f135
|
285 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
286 287 |
>{{studentMarkData.markDistributionId.distributionType}}</td> <td |
a76a6f135
|
288 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
289 290 291 292 293 294 295 |
>Total Marks</td> </template> </tr> <tr style="border: 1px solid lightgrey !important;"> <template v-for="(exam, ind) in studentMark.studentsMarks"> <td :key="ind" |
a76a6f135
|
296 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
297 298 299 |
>Marks</td> <td :key="ind" |
a76a6f135
|
300 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
301 302 303 304 305 306 307 308 309 310 |
>Highest Marks</td> </template> </tr> </thead> <tbody style="border: 1px solid lightgrey !important;" v-if="key == 0" > <tr v-for="studentMark in studentMarks" :key="studentMark"> <td |
a76a6f135
|
311 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
312 313 314 315 |
>{{studentMark.subjectName}}</td> <template v-for="(exam, index) in studentMark.studentsMarks"> <td :key="index" |
a76a6f135
|
316 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
317 318 319 |
>{{exam.marksScored}}</td> <td :key="index" |
a76a6f135
|
320 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
321 322 |
>{{exam.markDistributionId.markValue}}</td> </template> |
bdaae72ca
|
323 |
<td |
a76a6f135
|
324 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
325 326 327 328 329 |
>{{studentMark.totalMarks}}</td> </tr> </tbody> <tfoot v-if="key == studentMarks.length - 1"> <tr style="border: 1px solid lightgrey !important;"> |
bdaae72ca
|
330 |
<td |
4d8198ee4
|
331 332 333 334 335 |
colspan="5" class="subheding" style=" border: 1px solid #e2e7eb; text-align:center |
a76a6f135
|
336 |
padding: 0px;" |
bdaae72ca
|
337 |
>Total Marks</td> |
bdaae72ca
|
338 |
<td |
4d8198ee4
|
339 |
colspan="7" |
a76a6f135
|
340 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
341 342 343 344 345 346 347 348 349 |
>{{ studentMark.allSubjectTotalMarks }}</td> </tr> <tr> <td colspan="5" class="subheding" style=" border: 1px solid #e2e7eb; text-align:center |
a76a6f135
|
350 |
padding: 0px;" |
4d8198ee4
|
351 352 353 |
>Grade</td> <td colspan="7" |
a76a6f135
|
354 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
355 356 357 358 359 360 361 362 |
>{{ studentMark.grade ? studentMark.grade : "-" }}</td> </tr> <tr> <td colspan="5" style=" border: 1px solid #e2e7eb; text-align:center |
a76a6f135
|
363 |
padding: 0px;" |
4d8198ee4
|
364 365 |
class="subheding" >Average Mark</td> |
bdaae72ca
|
366 |
<td |
4d8198ee4
|
367 |
colspan="7" |
a76a6f135
|
368 |
style="border: 1px solid lightgrey !important;padding: 0px;" |
4d8198ee4
|
369 370 371 |
>-</td> </tr> <tr> |
bdaae72ca
|
372 |
<td |
4d8198ee4
|
373 374 375 376 |
colspan="5" style=" border: 1px solid #e2e7eb; text-align:center |
a76a6f135
|
377 |
padding: 0px; !important; |
4d8198ee4
|
378 379 380 |
font-size: 16px !important;" class="subheding" >GPA</td> |
bdaae72ca
|
381 |
<td |
4d8198ee4
|
382 |
colspan="7" |
a76a6f135
|
383 |
style="border: 1px solid lightgrey !important;padding: 0px !important;font-size: 16px !important;" |
4d8198ee4
|
384 385 386 387 |
>-</td> </tr> </tfoot> </table> |
4d8198ee4
|
388 |
</v-card> |
bdaae72ca
|
389 |
</div> |
962a41f53
|
390 |
</v-card> |
a76a6f135
|
391 |
<p style="page-break-after: always;"> </p> |
4d8198ee4
|
392 393 |
</card> </div> |
d4735dce7
|
394 395 396 397 398 |
</v-flex> </v-layout> </v-flex> </v-container> </v-card> |
79583580d
|
399 |
</v-flex> |
d4735dce7
|
400 |
</v-layout> |
006544386
|
401 402 403 |
<div class="loader" v-if="showLoader"> <v-progress-circular indeterminate color="white"></v-progress-circular> </div> |
68d742034
|
404 |
</v-container> |
006544386
|
405 406 407 408 409 |
</template> <script> import http from "@/Services/http.js"; import moment from "moment"; |
79583580d
|
410 |
import _ from "underscore"; |
006544386
|
411 412 413 |
export default { data: () => ({ |
006544386
|
414 |
showLoader: false, |
c62132b75
|
415 |
cardData: [], |
79583580d
|
416 417 418 419 |
token: "", markDistributions: [], markParticularDistributionData: [], loading: false, |
495e4037c
|
420 |
valid: true, |
79583580d
|
421 422 |
loading: false, showReport: false, |
240f5da2c
|
423 |
printLoader: false, |
006544386
|
424 |
addSection: [], |
79583580d
|
425 426 |
filterData: [], getStudentsList: [], |
eadd79e62
|
427 |
classRules: [(v) => !!v || "Class is required"], |
7014df603
|
428 |
sectionRules: [(v) => !!v || "Section is required"], |
eadd79e62
|
429 |
studentRules: [(v) => !!v || "Student is required"], |
495e4037c
|
430 |
getReport: {}, |
ec5677f43
|
431 |
classList: [], |
c0b01ae20
|
432 |
output: null, |
710438de6
|
433 434 |
userData: {}, newData: [], |
c62132b75
|
435 436 437 438 439 |
gradeAPlus: "A+", gradeA: "A", gradeBPlus: "B+", gradeB: "B", gradeCPlus: "C+", |
3e79b2f9f
|
440 |
gradeC: "C", |
eadd79e62
|
441 |
totalMarks: "", |
006544386
|
442 |
}), |
79583580d
|
443 444 445 |
mounted() { this.token = this.$store.state.token; this.getClass(); |
c0b01ae20
|
446 |
this.getUserData(); |
79583580d
|
447 |
}, |
006544386
|
448 |
methods: { |
495e4037c
|
449 450 451 |
clear() { this.$refs.form.reset(); }, |
006544386
|
452 |
getClass() { |
ec5677f43
|
453 |
this.showLoader = true; |
006544386
|
454 455 |
http() .get("/getClassesList", { |
eadd79e62
|
456 |
headers: { Authorization: "Bearer " + this.token }, |
006544386
|
457 |
}) |
eadd79e62
|
458 |
.then((response) => { |
006544386
|
459 |
this.classList = response.data.data; |
ec5677f43
|
460 |
this.showLoader = false; |
006544386
|
461 |
}) |
eadd79e62
|
462 |
.catch((error) => { |
ec5677f43
|
463 |
this.showLoader = false; |
006544386
|
464 465 466 467 |
// console.log("err====>", err); }); }, getSections(_id) { |
c0b01ae20
|
468 |
this.showLoader = true; |
7014df603
|
469 470 471 472 |
this.cardData = []; this.schoolData = []; this.showReport = false; this.filterData = []; |
006544386
|
473 474 475 476 477 |
http() .get( "/getSectionsList", { params: { classId: _id } }, { |
eadd79e62
|
478 |
headers: { Authorization: "Bearer " + this.token }, |
006544386
|
479 480 |
} ) |
eadd79e62
|
481 |
.then((response) => { |
006544386
|
482 |
this.addSection = response.data.data; |
c0b01ae20
|
483 |
this.showLoader = false; |
006544386
|
484 |
}) |
eadd79e62
|
485 |
.catch((err) => { |
c0b01ae20
|
486 |
this.showLoader = false; |
006544386
|
487 488 489 490 491 492 493 494 |
// console.log("err====>", err); }); }, getStudents() { this.showLoader = true; http() .get("/getStudentWithClass", { params: { |
495e4037c
|
495 |
classId: this.getReport.classId, |
eadd79e62
|
496 497 |
sectionId: this.getReport.sectionId, }, |
006544386
|
498 |
}) |
eadd79e62
|
499 |
.then((response) => { |
e03bf1f92
|
500 501 |
response.data.data.unshift({ name: "Select All", |
eadd79e62
|
502 |
_id: "Select All", |
e03bf1f92
|
503 |
}); |
006544386
|
504 505 |
this.getStudentsList = response.data.data; this.showLoader = false; |
006544386
|
506 |
}) |
eadd79e62
|
507 |
.catch((error) => { |
860da881d
|
508 |
// console.log("err====>", error); |
006544386
|
509 |
this.showLoader = false; |
860da881d
|
510 511 512 |
this.snackbar = true; this.color = "error"; this.text = error.response.data.message; |
006544386
|
513 514 |
}); }, |
79583580d
|
515 |
getMarkReportList() { |
1d7227237
|
516 |
this.showLoader = true; |
79583580d
|
517 |
this.showReport = true; |
c765369af
|
518 519 520 521 |
var getSelectMarks = {}; if (this.getReport.studentId == "Select All") { getSelectMarks = { classId: this.getReport.classId, |
eadd79e62
|
522 |
sectionId: this.getReport.sectionId, |
c765369af
|
523 |
}; |
962a41f53
|
524 |
} else if (this.getReport.studentId != "Select All") { |
c765369af
|
525 526 527 |
getSelectMarks = { classId: this.getReport.classId, sectionId: this.getReport.sectionId, |
eadd79e62
|
528 |
studentId: this.getReport.studentId, |
c765369af
|
529 530 |
}; } |
79583580d
|
531 532 |
http() .get("/getParticularMark", { |
c765369af
|
533 |
params: getSelectMarks, |
eadd79e62
|
534 |
headers: { Authorization: "Bearer " + this.token }, |
79583580d
|
535 |
}) |
eadd79e62
|
536 |
.then((response) => { |
860da881d
|
537 |
// console.log("===response===", response.data.data[0].schoolId); |
c62132b75
|
538 |
this.cardData = response.data.data; |
eadd79e62
|
539 |
this.schoolData = response.data.data[0].schoolId; |
79583580d
|
540 541 542 |
let newData = response.data.data; for (var i = 0; i < newData.length; i++) { newData[i].examination = newData[i].examId._id; |
1d7227237
|
543 544 545 546 547 548 |
newData[i].studentsId = newData[i].studentId._id; } var studentMarkArray = []; studentMarkArray = _.groupBy(newData, ["studentsId"]); for (let data in studentMarkArray) { studentMarkArray[data] = _.groupBy(studentMarkArray[data], [ |
eadd79e62
|
549 |
"examination", |
1d7227237
|
550 |
]); |
79583580d
|
551 |
} |
1d7227237
|
552 |
this.filterData = studentMarkArray; |
79583580d
|
553 |
for (let data in this.filterData) { |
79583580d
|
554 |
for (let item in this.filterData[data]) { |
bdaae72ca
|
555 |
var allSubjectTotalMarks = 0; |
1d7227237
|
556 |
for (let i = 0; i < this.filterData[data][item].length; i++) { |
bdaae72ca
|
557 |
var totalMarks = 0; |
1d7227237
|
558 559 560 561 562 563 564 565 |
for ( let j = 0; j < studentMarkArray[data][item][i].studentsMarks.length; j++ ) { totalMarks += studentMarkArray[data][item][i].studentsMarks[j] .marksScored; |
1d7227237
|
566 567 |
} this.filterData[data][item][i].totalMarks = totalMarks; |
bdaae72ca
|
568 569 570 571 572 573 |
allSubjectTotalMarks += this.filterData[data][item][i] .totalMarks; this.filterData[data][item][ i ].allSubjectTotalMarks = allSubjectTotalMarks; |
c62132b75
|
574 |
} |
bdaae72ca
|
575 |
|
1d7227237
|
576 |
// this.totalMarks = totalMarks; |
bdaae72ca
|
577 578 579 580 581 582 583 584 585 586 587 588 589 |
if (totalMarks > 90) { this.filterData[data][item].grade = this.gradeAPlus; } else if (totalMarks > 80 && totalMarks < 90) { this.filterData[data][item].grade = this.gradeA; } else if (totalMarks > 70 && totalMarks < 80) { this.filterData[data][item].grade = this.gradeBPlus; } else if (totalMarks > 60 && totalMarks < 70) { this.filterData[data][item].grade = this.gradeB; } else if (totalMarks > 50 && totalMarks < 60) { this.filterData[data][item].grade = this.gradeCPlus; } else if (totalMarks > 40 && totalMarks < 50) { this.filterData[data][item].grade = this.gradeC; } |
79583580d
|
590 591 |
} } |
bdaae72ca
|
592 |
// console.log("this.filterData-----------last", this.filterData); |
1d7227237
|
593 |
|
c62132b75
|
594 |
this.showLoader = false; |
79583580d
|
595 |
}) |
eadd79e62
|
596 |
.catch((error) => { |
79583580d
|
597 598 599 |
// console.log("err====>", err); this.showLoader = false; this.snackbar = true; |
710438de6
|
600 601 602 603 604 605 |
// this.text = error.response.data.message; // if (error.response.status === 401) { // this.$router.replace({ path: "/" }); // this.$store.dispatch("setToken", null); // this.$store.dispatch("Id", null); // } |
79583580d
|
606 |
}); |
ec5677f43
|
607 |
}, |
d4735dce7
|
608 |
printProgressReport() { |
240f5da2c
|
609 610 611 612 613 614 |
this.printLoader = true; setTimeout(() => { // Pass the element id here this.$htmlToPaper("printMe"); this.printLoader = false; }, 4000); |
c0b01ae20
|
615 616 617 618 |
}, getUserData() { http() .get("/getParticularUserDetail") |
eadd79e62
|
619 |
.then((response) => { |
c0b01ae20
|
620 621 |
this.userData = response.data.data; }) |
eadd79e62
|
622 |
.catch((error) => { |
11d037abe
|
623 624 625 626 627 |
if (error.response.status === 401) { this.$router.replace({ path: "/" }); this.$store.dispatch("setToken", null); this.$store.dispatch("Id", null); } |
c0b01ae20
|
628 |
}); |
eadd79e62
|
629 630 |
}, }, |
006544386
|
631 632 |
}; </script> |
79583580d
|
633 |
|
006544386
|
634 |
<style scoped> |
79583580d
|
635 636 637 638 639 640 641 642 |
table { border-collapse: collapse; border: 1px solid #e2e7eb; } th, td { border: 1px solid #e2e7eb; |
a76a6f135
|
643 |
padding: 0px; |
79583580d
|
644 |
text-align: center; |
006544386
|
645 |
} |
79583580d
|
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 |
table.feeTypeTable { table-layout: auto !important; width: 100% !important; } .bg-sky { background-color: #98b2cc !important; } .bg-sky-light { background-color: #89a0b8; } .bg-purple { background-color: #9583ac; } .bg-skyDark { background-color: #956785; } |
46993dc1d
|
662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 |
/* .report { overflow: hidden; max-width: 794px; margin: 0px auto; margin-bottom: 10px; padding: 30px; } */ .line { border-bottom: 1px solid #ddd; overflow: hidden; padding-bottom: 10px; vertical-align: middle; margin-bottom: 4px; } .school-logo { float: left; } .school-name { box-sizing: border-box; } .school-info { width: 100%; overflow: hidden; } .school-address { float: left; width: 40%; } .student-data { float: right; width: 40%; } .student-info { float: left; } |
79583580d
|
698 699 |
@media screen and (max-width: 380px) { .tableRsponsive { |
d4735dce7
|
700 |
/* display: block; */ |
79583580d
|
701 702 703 |
position: relative; overflow: scroll; } |
006544386
|
704 |
} |
79583580d
|
705 |
</style> s |