添加题目数量+考试时长灵活设置

This commit is contained in:
@fawn-nine
2024-09-11 17:05:56 +08:00
parent 72dcbfdd82
commit c71b2c67b4
7 changed files with 327 additions and 353 deletions

View File

@@ -170,7 +170,7 @@
computed: {
...mapState(["userInfo"]),
getallLIst() {
const numbers = Array.from(Array(100).keys(), n => n + 1);
const numbers = Array.from(Array(this.testPaper.length).keys(), n => n + 1);
console.log('numbers', numbers);
return numbers
}
@@ -453,7 +453,10 @@
this.testPaper = res.examPaper
this.examId = res.id
this.paperCreateTime = 1
this.endTime = this.hourUp(res.startTime,2) // 结束的时间戳
// this.endTime = this.hourUp(res.startTime,2) // 结束的时间戳
var planEndTimeDate = new Date(res.planEndTime)
this.endTime = planEndTimeDate.getTime();
var severNowTime = await this.getServerTime()
this.secondTimeDif = this.endTime - severNowTime // 时间差 毫秒
if(this.secondTimeDif > 0){