Commit b6e2b24d6e339ce948c5c32a90cdf77af2cf6058
1 parent
86e47820
学生班级信息调整
Showing
2 changed files
with
8 additions
and
4 deletions
src/views/standard/setUp/clazz.vue
@@ -330,7 +330,7 @@ export default { | @@ -330,7 +330,7 @@ export default { | ||
330 | classId: this.formClass.classId, | 330 | classId: this.formClass.classId, |
331 | }); | 331 | }); |
332 | if (status === 0) { | 332 | if (status === 0) { |
333 | - this.$message.success("修改成功"); | 333 | + this.$message.success("删除成功"); |
334 | this.diaClass = false; | 334 | this.diaClass = false; |
335 | this._QueryData(); | 335 | this._QueryData(); |
336 | } else { | 336 | } else { |
src/views/standard/setUp/student.vue
@@ -514,15 +514,18 @@ export default { | @@ -514,15 +514,18 @@ export default { | ||
514 | }, | 514 | }, |
515 | //学生调班弹窗 | 515 | //学生调班弹窗 |
516 | openChangeClazz(obj) { | 516 | openChangeClazz(obj) { |
517 | + console.log(obj); | ||
517 | if (this.query.grade == 80) { | 518 | if (this.query.grade == 80) { |
518 | this._QueryClazz(obj.grade); | 519 | this._QueryClazz(obj.grade); |
519 | } | 520 | } |
520 | this.formStuCla.classId = ""; | 521 | this.formStuCla.classId = ""; |
521 | this.formStuCla.studentId = obj.id; | 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 | this.formStuCla.studentName = obj.studentName; | 525 | this.formStuCla.studentName = obj.studentName; |
524 | this.formStuCla.studentCode = obj.studentCode; | 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 | this.diaChangeClass = true; | 529 | this.diaChangeClass = true; |
527 | }, | 530 | }, |
528 | //学生调班 | 531 | //学生调班 |
@@ -566,7 +569,8 @@ export default { | @@ -566,7 +569,8 @@ export default { | ||
566 | }); | 569 | }); |
567 | this.loadingClassLogs = false; | 570 | this.loadingClassLogs = false; |
568 | if (status == 0) { | 571 | if (status == 0) { |
569 | - this.formClassTrack.className = obj.className; | 572 | + this.formClassTrack.className = |
573 | + (obj.classList && obj.classList[0]?.className) || ""; | ||
570 | this.formClassTrack.studentName = obj.studentName; | 574 | this.formClassTrack.studentName = obj.studentName; |
571 | this.formClassTrack.classList = (data.list && [...data.list]) || []; | 575 | this.formClassTrack.classList = (data.list && [...data.list]) || []; |
572 | } else { | 576 | } else { |