修改考核列表倒计时为零自动结束

UI_2022-02-10
e 3 years ago
parent 4e8c20187f
commit 98e801048e
  1. 1
      src/api/index.js
  2. 6
      src/pages/ass/list/index.vue

@ -49,6 +49,7 @@ export default {
myClassByStudent: `${host}occupationlab/achievement/myClassByStudent`, // 学生端:我的班级
getStudentInfoByAccountId: `${host}occupationlab/architecture/getStudentInfoByAccountId`, // 查看学生信息
enterExam: `${host}occupationlab/assessment/enterExam`, // 学生端——进入考试
collectPaper: `${host}occupationlab/assessment/collectPaper`, // 自动结束考试
// 课程学习
queryGlClassification: `${host}occupationlab/management/edu/courseClassification/queryGlClassification`, // 查询课程分类

@ -252,10 +252,12 @@ export default {
let s = Math.floor(countDown.countDown % (60 * 60) % 60);
return `${h > 9 ? h : `0${h}`}:${m > 9 ? m : `0${m}`}:${s > 9 ? s : `0${s}`}`;
} else {
if (countDown.status == 2){
if (countDown.status == 1){
this.$post(`${this.api.collectPaper}?id=${countDown.assessmentId}`).then(res => {
})
}else{
countDown.status = 2
}
return "00:00:00";
}

Loading…
Cancel
Save