Commit b6e2b24d6e339ce948c5c32a90cdf77af2cf6058
1 parent
86e47820
学生班级信息调整
Showing
2 changed files
with
8 additions
and
4 deletions
src/views/standard/setUp/clazz.vue
src/views/standard/setUp/student.vue
... | ... | @@ -514,15 +514,18 @@ export default { |
514 | 514 | }, |
515 | 515 | //学生调班弹窗 |
516 | 516 | openChangeClazz(obj) { |
517 | + console.log(obj); | |
517 | 518 | if (this.query.grade == 80) { |
518 | 519 | this._QueryClazz(obj.grade); |
519 | 520 | } |
520 | 521 | this.formStuCla.classId = ""; |
521 | 522 | this.formStuCla.studentId = obj.id; |
522 | - this.formStuCla.className = obj.className; | |
523 | + this.formStuCla.className = | |
524 | + obj.classList[0] && obj.classList[0]?.className; | |
523 | 525 | this.formStuCla.studentName = obj.studentName; |
524 | 526 | this.formStuCla.studentCode = obj.studentCode; |
525 | - this.formStuCla.oldClassId = obj.classId; | |
527 | + this.formStuCla.oldClassId = | |
528 | + obj.classList[0] && obj.classList[0]?.classId; | |
526 | 529 | this.diaChangeClass = true; |
527 | 530 | }, |
528 | 531 | //学生调班 |
... | ... | @@ -566,7 +569,8 @@ export default { |
566 | 569 | }); |
567 | 570 | this.loadingClassLogs = false; |
568 | 571 | if (status == 0) { |
569 | - this.formClassTrack.className = obj.className; | |
572 | + this.formClassTrack.className = | |
573 | + (obj.classList && obj.classList[0]?.className) || ""; | |
570 | 574 | this.formClassTrack.studentName = obj.studentName; |
571 | 575 | this.formClassTrack.classList = (data.list && [...data.list]) || []; |
572 | 576 | } else { | ... | ... |