|
@@ -211,6 +211,10 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
const data = await studentScoreList(this.filter);
|
|
|
+ if (!data.length) {
|
|
|
+ this.$Message.error("无此考生");
|
|
|
+ return;
|
|
|
+ }
|
|
|
data.map(student => {
|
|
|
student.scores.map(score => {
|
|
|
score.title = score.subjectName;
|
|
@@ -222,7 +226,7 @@ export default {
|
|
|
},
|
|
|
toPage(page) {
|
|
|
this.current = page;
|
|
|
- this.curStudent = this.students[page - 1];
|
|
|
+ this.curStudent = this.students[page - 1] || {};
|
|
|
},
|
|
|
workChange() {
|
|
|
this.filter.subject = null;
|