Browse Source

修正获取最新分数BUG

master
13562321995 3 years ago
parent
commit
5ad29edcc4
  1. 9
      src/app/examiner/mark-papers-two/mark-papers-two.component.ts
  2. 8
      src/app/examiner/review-files/review-files.component.ts

9
src/app/examiner/mark-papers-two/mark-papers-two.component.ts

@ -32,6 +32,14 @@ export class MarkPapersTwoComponent implements OnInit {
this.getname=param.name
});
this.getAlltabledate()
//监听 此HTML标签焦点事件
document.addEventListener('visibilitychange', ()=>{
let isHidden = document.hidden
if (!isHidden) {
this.getAlltabledate()
}
})
}
headtext
@ -58,7 +66,6 @@ export class MarkPapersTwoComponent implements OnInit {
SortType: null,
}
this.http.get("/api/Examinations",{params:paramsdata}).subscribe((data:any)=>{
console.log(data.items)
this.dataSource=data.items
this.length=data.totalCount
})

8
src/app/examiner/review-files/review-files.component.ts

@ -17,6 +17,14 @@ export class ReviewFilesComponent implements OnInit {
this.paperType = this.route.snapshot.queryParams.paperType || 1
await this.getTest()
this.getUnitPlans()//将试卷的预案考题放进数据中
//监听 此HTML标签焦点事件
document.addEventListener('visibilitychange', ()=>{
let isHidden = document.hidden
if (!isHidden) {
this.getUnitPlans(false)
}
})
}
paperType:any = 1; //阅卷/查看

Loading…
Cancel
Save