考试提交后增加刷新最终成绩的处理

This commit is contained in:
daihh
2022-12-09 18:41:59 +08:00
parent 8a2b9e43e3
commit f9176e3f6b
2 changed files with 3 additions and 1 deletions

View File

@@ -586,7 +586,7 @@ export default {
this.courseCoverurl = ""; this.courseCoverurl = "";
this.courseInfo.coverImg = ""; this.courseInfo.coverImg = "";
}, },
getDetail() { getDetail(){
let $this = this; let $this = this;
apiCoursePortal.detail(this.id,true).then(rs => { apiCoursePortal.detail(this.id,true).then(rs => {
if (rs.status == 200) { if (rs.status == 200) {

View File

@@ -456,6 +456,8 @@ export default {
} }
}); });
this.testStart = false; this.testStart = false;
//获取最新的成绩
this.loadStudyItemId();
this.$emit('submit',this.lastScore);//考试提交回调处理 this.$emit('submit',this.lastScore);//考试提交回调处理
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);