yangdj 1 year ago
parent f435a57fbd
commit e350d2ef59

@ -30,7 +30,7 @@
<el-table-column prop="fileName" header-align="center" align="center" label="视频名称"></el-table-column>
<el-table-column prop="schedule" header-align="center" align="center" label="进度" width="100">
<template slot-scope="scope">
<template v-if="scope.row.schedule >= 100">
<span style="color: #2789E2;">已完成</span>
</template>
@ -268,7 +268,7 @@ export default {
onTimeupdate(e){ // e.target.duration e.target.currentTime
if(this.examType == 1){
this.num ++; //250 5
if(e.target.currentTime > 0 && e.target.duration != e.target.currentTime && this.num == 20){
if(e.target.currentTime > 0 && e.target.duration != e.target.currentTime && this.num >= 20){
this.num = 0;
if(this.tableData[this.onNum].schedule < 100){
let schedule = Math.floor((e.target.currentTime / e.target.duration) * 100);//

Loading…
Cancel
Save