Commit 3f2e2025ce8bb2822f833186d32b46040bbca9c4
1 parent
dbcbd11f41
Exists in
master
and in
2 other branches
admit card printig
Showing
1 changed file
with
18 additions
and
29 deletions
Show diff stats
src/pages/Report/admitCard.vue
... | ... | @@ -113,6 +113,8 @@ |
113 | 113 | </v-layout> |
114 | 114 | <div id="printMe" v-if="frontPart"> |
115 | 115 | <v-card |
116 | + v-for="(student,index) in getScheduleList.studentData" | |
117 | + :key="index" | |
116 | 118 | style=" |
117 | 119 | background-color: #fff; |
118 | 120 | border: 1px solid #ddd; |
... | ... | @@ -124,7 +126,7 @@ |
124 | 126 | 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;" |
125 | 127 | > |
126 | 128 | <v-layout style="border-bottom: 1px solid #ddd;margin: 8px; auto"> |
127 | - <v-flex xs3 style="margin-bottom:0px"> | |
129 | + <v-flex xs7 sm3 style="margin-bottom:0px"> | |
128 | 130 | <img |
129 | 131 | :src="userData.schoolLogoUrl" |
130 | 132 | style="widht:80px;height:80px;" |
... | ... | @@ -137,40 +139,26 @@ |
137 | 139 | v-else-if="!userData.schoolLogoUrl" |
138 | 140 | /> |
139 | 141 | <div class="school-name"> |
140 | - <h3>{{ schoolData.address }}</h3> | |
141 | - <p>{{ schoolData.mobile }}</p> | |
142 | + <div class="body-1">{{ student.schoolId.address }}</div> | |
143 | + <div class="body-1">{{ student.schoolId.mobile }}</div> | |
142 | 144 | </div> |
143 | 145 | </v-flex> |
144 | 146 | <v-flex xs5 style="text-align:center;margin-bottom:0px"> |
145 | 147 | <p |
146 | 148 | style="font-size:24px;color: #700CE8;letter-spacing:1px;margin-bottom: 4px" |
147 | - >{{ schoolData.name }}</p> | |
148 | - <p>{{ schoolData.email }}</p> | |
149 | + >{{ student.schoolId.name }}</p> | |
150 | + <p>{{ student.schoolId.email }}</p> | |
149 | 151 | |
150 | 152 | <div> |
151 | 153 | <h4>{{ getScheduleList.scheduleData[0].examId.examName }} Exam Admit Card</h4> |
152 | 154 | </div> |
153 | 155 | </v-flex> |
154 | 156 | <v-flex xs4 style="text-align:center;margin-bottom:0px"> |
155 | - <!-- <img | |
156 | - v-if="getScheduleList.studentData.profilePicUrl" | |
157 | - :src="getScheduleList.studentData.profilePicUrl" | |
158 | - style="widht:80px;height:80px;" | |
159 | - /> | |
160 | - <img | |
161 | - v-if="!getScheduleList.studentData.profilePicUrl" | |
162 | - src="/static/icon/user.png" | |
163 | - style="widht:80px;" | |
164 | - />--> | |
165 | - <img | |
166 | - src="/static/icon/user.png" | |
167 | - v-if="!getScheduleList.studentData.profilePicUrl" | |
168 | - width="80" | |
169 | - /> | |
157 | + <img src="/static/icon/user.png" v-if="!student.profilePicUrl" width="80" /> | |
170 | 158 | <img |
171 | - :src="getScheduleList.studentData.profilePicUrl" | |
159 | + :src="student.profilePicUrl" | |
172 | 160 | onerror="this.src='/static/icon/user.png';" |
173 | - v-if="getScheduleList.studentData.profilePicUrl" | |
161 | + v-if="student.profilePicUrl" | |
174 | 162 | width="80" |
175 | 163 | /> |
176 | 164 | </v-flex> |
... | ... | @@ -179,25 +167,25 @@ |
179 | 167 | <v-flex xs5 style="margin-bottom:10px"> |
180 | 168 | <p style="font-size: 16px;margin:0px;margin-bottom:8px;"> |
181 | 169 | <b>Name :</b> |
182 | - <span>{{getScheduleList.studentData.name}}</span> | |
170 | + <span>{{student.name}}</span> | |
183 | 171 | </p> |
184 | 172 | <p style="font-size: 16px;margin:0px;margin-bottom:8px;"> |
185 | 173 | <b>Class :</b> |
186 | - <span>{{getScheduleList.studentData.classId.classNum}}</span> | |
174 | + <span>{{student.classId.classNum}}</span> | |
187 | 175 | </p> |
188 | 176 | <p style="font-size: 16px;margin:0px;margin-bottom:8px;"> |
189 | 177 | <b>Roll :</b> |
190 | - <span>{{getScheduleList.studentData.rollNo}}</span> | |
178 | + <span>{{student.rollNo}}</span> | |
191 | 179 | </p> |
192 | 180 | </v-flex> |
193 | 181 | <v-flex xs5 style="margin-bottom:10px"> |
194 | 182 | <p style="font-size: 16px;margin:0px;margin-bottom:8px;"> |
195 | 183 | <b>Section :</b> |
196 | - <span>{{getScheduleList.studentData.sectionId.name }}</span> | |
184 | + <span>{{student.sectionId.name }}</span> | |
197 | 185 | </p> |
198 | 186 | <p style="font-size: 16px;margin:0px;margin-bottom:8px;"> |
199 | 187 | <b>Blood Group :</b> |
200 | - <span style="color: #707478">{{getScheduleList.studentData.bloodGroup }}</span> | |
188 | + <span style="color: #707478">{{student.bloodGroup }}</span> | |
201 | 189 | </p> |
202 | 190 | <p style="font-size: 16px;margin:0px;margin-bottom:8px;">Subject in which Appearing</p> |
203 | 191 | </v-flex> |
... | ... | @@ -547,7 +535,7 @@ export default { |
547 | 535 | studentId.push(this.getStudentsList[i]._id); |
548 | 536 | } |
549 | 537 | } else { |
550 | - studentId = this.getReport.studentId; | |
538 | + studentId.push(this.getReport.studentId); | |
551 | 539 | } |
552 | 540 | console.log("this.getReport.studentId - ", studentId); |
553 | 541 | http() |
... | ... | @@ -565,7 +553,8 @@ export default { |
565 | 553 | .then((response) => { |
566 | 554 | this.showTable = true; |
567 | 555 | this.getScheduleList = response.data.data; |
568 | - this.schoolData = response.data.data.studentData.schoolId; | |
556 | + console.log(" getScheduleList - ", this.getScheduleList); | |
557 | + // this.schoolData = response.data.data.studentData.schoolId; | |
569 | 558 | if (response.data.data.scheduleData.length === 0) { |
570 | 559 | this.showLoader = false; |
571 | 560 | this.snackbar = true; | ... | ... |