|
|
@ -202,6 +202,8 @@ export default { |
|
|
|
assessmentId:'', |
|
|
|
assessmentId:'', |
|
|
|
classId:'', |
|
|
|
classId:'', |
|
|
|
stopTime:'', |
|
|
|
stopTime:'', |
|
|
|
|
|
|
|
sss:1, |
|
|
|
|
|
|
|
datassdata:0, |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
@ -238,6 +240,7 @@ export default { |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
// 页面离开的时候销毁手机和邮箱验证码定时器 |
|
|
|
// 页面离开的时候销毁手机和邮箱验证码定时器 |
|
|
|
this.$once("hook:beforeDestroy", function() { |
|
|
|
this.$once("hook:beforeDestroy", function() { |
|
|
|
|
|
|
|
this.sss = 0 |
|
|
|
clearInterval(this.ticker); |
|
|
|
clearInterval(this.ticker); |
|
|
|
this.ticker = null; |
|
|
|
this.ticker = null; |
|
|
|
}); |
|
|
|
}); |
|
|
@ -255,7 +258,6 @@ export default { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (countDown.status == 1){ |
|
|
|
if (countDown.status == 1){ |
|
|
|
this.$post(`${this.api.collectPaper}?id=${countDown.assessmentId}`).then(res => { |
|
|
|
this.$post(`${this.api.collectPaper}?id=${countDown.assessmentId}`).then(res => { |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
|
@ -264,6 +266,11 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
beginTimer() { |
|
|
|
beginTimer() { |
|
|
|
|
|
|
|
this.ticker = setInterval(() => { |
|
|
|
|
|
|
|
if(this.sss == 0){ |
|
|
|
|
|
|
|
this.ticker = null; |
|
|
|
|
|
|
|
clearInterval(this.ticker); |
|
|
|
|
|
|
|
}else{ |
|
|
|
for (let i = 0; i < this.listData.length; i++) { |
|
|
|
for (let i = 0; i < this.listData.length; i++) { |
|
|
|
const ticker = setInterval(() => { |
|
|
|
const ticker = setInterval(() => { |
|
|
|
const item = this.listData[i]; |
|
|
|
const item = this.listData[i]; |
|
|
@ -283,7 +290,8 @@ export default { |
|
|
|
this.tickerArr.push(ticker) |
|
|
|
this.tickerArr.push(ticker) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, 1000); |
|
|
|
// this.ticker = setInterval(() => { |
|
|
|
// this.ticker = setInterval(() => { |
|
|
|
// for (let i = 0; i < this.listData.length; i++) { |
|
|
|
// for (let i = 0; i < this.listData.length; i++) { |
|
|
|
// const item = this.listData[i]; |
|
|
|
// const item = this.listData[i]; |
|
|
@ -304,6 +312,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
getData() { |
|
|
|
getData() { |
|
|
|
this.listLoading = true; |
|
|
|
this.listLoading = true; |
|
|
|
|
|
|
|
this.sss = 0 |
|
|
|
this.listData.splice(0); |
|
|
|
this.listData.splice(0); |
|
|
|
if (this.ticker) { |
|
|
|
if (this.ticker) { |
|
|
|
clearInterval(this.ticker); |
|
|
|
clearInterval(this.ticker); |
|
|
@ -340,13 +349,17 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.beginTimer(); |
|
|
|
this.sss = 1; |
|
|
|
|
|
|
|
if(this.datassdata == 1){ |
|
|
|
|
|
|
|
this.beginTimer() |
|
|
|
|
|
|
|
} |
|
|
|
this.listLoading = false; |
|
|
|
this.listLoading = false; |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
this.listLoading = false; |
|
|
|
this.listLoading = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
initData() { |
|
|
|
initData() { |
|
|
|
|
|
|
|
this.sss = 0 |
|
|
|
this.page = 1; |
|
|
|
this.page = 1; |
|
|
|
this.getData(); |
|
|
|
this.getData(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -364,6 +377,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCurrentChange(val) { // 切换页码 |
|
|
|
handleCurrentChange(val) { // 切换页码 |
|
|
|
this.page = val; |
|
|
|
this.page = val; |
|
|
|
|
|
|
|
this.sss = 0 |
|
|
|
this.getData(); |
|
|
|
this.getData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
entry(row) { // 进入考核 |
|
|
|
entry(row) { // 进入考核 |
|
|
|