|
|
|
@ -68,8 +68,8 @@ |
|
|
|
|
{{ scope.$index + (page - 1) * pageSize + 1 }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="sysName" label="课程名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="experimentalName" label="考核名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="sysName" label="课程名称" align="center" show-overflow-tooltip></el-table-column> |
|
|
|
|
<el-table-column prop="experimentalName" label="考核名称" align="center" show-overflow-tooltip></el-table-column> |
|
|
|
|
<el-table-column prop="className" label="实验班级" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="experimentalNum" label="实验人数" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="experimentDuration" label="考试时长" align="center"></el-table-column> |
|
|
|
@ -94,12 +94,12 @@ |
|
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
|
<template slot-scope="scope" v-if="scope.row.show"> |
|
|
|
|
<!--status:考核状态(0、待开始 1、进行中 2、已结束); stuState:学生考试状态(0、未考 1、在考 2、已考)--> |
|
|
|
|
<el-button v-if="scope.row.status === 2 && scope.row.stuState === 0" type="text" disabled>未参加</el-button> |
|
|
|
|
<el-button v-if="scope.row.status !== 2 && (scope.row.stuState === 0 || scope.row.stuState === 1)" type="text" |
|
|
|
|
<el-button v-if="scope.row.status == 2 && scope.row.stuState == 0" type="text" disabled>未参加</el-button> |
|
|
|
|
<el-button v-if="scope.row.status != 2 && (scope.row.stuState == 0 || scope.row.stuState == 1)" type="text" |
|
|
|
|
@click="entry(scope.row)" :disabled="scope.row.status !== 1">进入 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button v-if="scope.row.status === 1 && scope.row.stuState === 2" type="text" disabled>已提交</el-button> |
|
|
|
|
<el-button v-if="scope.row.status === 2 && scope.row.stuState === 2" type="text" |
|
|
|
|
<el-button v-if="scope.row.status == 1 && scope.row.stuState == 2" type="text" disabled>已提交</el-button> |
|
|
|
|
<el-button v-if="scope.row.status == 2 && scope.row.stuState == 2 && scope.row.reportId" type="text" |
|
|
|
|
@click="show(scope.row)">查看成绩 |
|
|
|
|
</el-button> |
|
|
|
|
</template> |
|
|
|
@ -202,6 +202,8 @@ export default { |
|
|
|
|
assessmentId:'', |
|
|
|
|
classId:'', |
|
|
|
|
stopTime:'', |
|
|
|
|
sss:1, |
|
|
|
|
datassdata:0, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
@ -238,6 +240,7 @@ export default { |
|
|
|
|
mounted() { |
|
|
|
|
// 页面离开的时候销毁手机和邮箱验证码定时器 |
|
|
|
|
this.$once("hook:beforeDestroy", function() { |
|
|
|
|
this.sss = 0 |
|
|
|
|
clearInterval(this.ticker); |
|
|
|
|
this.ticker = null; |
|
|
|
|
}); |
|
|
|
@ -255,7 +258,6 @@ export default { |
|
|
|
|
} else { |
|
|
|
|
if (countDown.status == 1){ |
|
|
|
|
this.$post(`${this.api.collectPaper}?id=${countDown.assessmentId}`).then(res => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
@ -264,6 +266,11 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
beginTimer() { |
|
|
|
|
this.ticker = setInterval(() => { |
|
|
|
|
if(this.sss == 0){ |
|
|
|
|
this.ticker = null; |
|
|
|
|
clearInterval(this.ticker); |
|
|
|
|
}else{ |
|
|
|
|
for (let i = 0; i < this.listData.length; i++) { |
|
|
|
|
const ticker = setInterval(() => { |
|
|
|
|
const item = this.listData[i]; |
|
|
|
@ -283,7 +290,8 @@ export default { |
|
|
|
|
this.tickerArr.push(ticker) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, 1000); |
|
|
|
|
// this.ticker = setInterval(() => { |
|
|
|
|
// for (let i = 0; i < this.listData.length; i++) { |
|
|
|
|
// const item = this.listData[i]; |
|
|
|
@ -304,6 +312,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
getData() { |
|
|
|
|
this.listLoading = true; |
|
|
|
|
this.sss = 0 |
|
|
|
|
this.listData.splice(0); |
|
|
|
|
if (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; |
|
|
|
|
}).catch(err => { |
|
|
|
|
this.listLoading = false; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
initData() { |
|
|
|
|
this.sss = 0 |
|
|
|
|
this.page = 1; |
|
|
|
|
this.getData(); |
|
|
|
|
}, |
|
|
|
@ -364,6 +377,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
handleCurrentChange(val) { // 切换页码 |
|
|
|
|
this.page = val; |
|
|
|
|
this.sss = 0 |
|
|
|
|
this.getData(); |
|
|
|
|
}, |
|
|
|
|
entry(row) { // 进入考核 |
|
|
|
@ -396,7 +410,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
show(row) { // 查看成绩 |
|
|
|
|
this.$router.push(`/record/list?id=${row.id}&recordId=${row.recordid}&reportId=${row.reportId}`); |
|
|
|
|
this.$router.push(`/record/show?id=${row.id}&recordId=${row.recordid}&reportId=${row.reportId}`); |
|
|
|
|
}, |
|
|
|
|
saveIc() { |
|
|
|
|
if (!this.invitationCode) return util.warningMsg("请输入邀请码"); |
|
|
|
|