添加题目数量+考试时长灵活设置
This commit is contained in:
@@ -387,8 +387,9 @@
|
||||
var severNowTime = -1
|
||||
// paperData = await this.getlocaltestInfo('paperEndTime')
|
||||
var historyPaper = await this.getingPaper()
|
||||
if(historyPaper){
|
||||
paperEndTime = this.hourUp(historyPaper.startTime,1) // 结束的时间戳
|
||||
if(historyPaper && historyPaper != null){
|
||||
var planEndTimeDate = new Date(historyPaper.planEndTime)
|
||||
paperEndTime = planEndTimeDate.getTime(); // 结束的时间戳
|
||||
this.examId = historyPaper.id
|
||||
this.classId = historyPaper.classId
|
||||
}else{
|
||||
@@ -484,9 +485,12 @@
|
||||
.then(async (res) => {
|
||||
console.log('考试中',res);
|
||||
if (res.code == 0 && res.classExamUser != null) {
|
||||
obj = res.classExamUser
|
||||
obj = {...res.classExamUser, planEndTime:res.planEndTime}
|
||||
}else{
|
||||
obj = undefined
|
||||
}
|
||||
}).catch(e => {
|
||||
}).catch(e => {
|
||||
obj = undefined
|
||||
});
|
||||
return obj
|
||||
|
||||
|
||||
Reference in New Issue
Block a user