|
@@ -5,8 +5,8 @@
|
|
|
<el-col :span="8">
|
|
|
<div>
|
|
|
<p style="font-size: 24px;"> 完成情况 </p>
|
|
|
- <p class="mt10" >获得{{info.gxs}}学时</p>
|
|
|
- <p class="mt10" >总共{{info.axs}}学时</p>
|
|
|
+ <p class="mt10" >获得<strong style="color: red;">{{info.gxs}}</strong>学时</p>
|
|
|
+ <p class="mt10" >总共<strong style="color: red;">{{info.axs}}</strong>学时</p>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
@@ -310,19 +310,21 @@
|
|
|
return false
|
|
|
})
|
|
|
//
|
|
|
- this.info.gxs = 0
|
|
|
- this.info.axs = 0;
|
|
|
this.info.tcount = this.list.length;
|
|
|
this.info.fcount =0;
|
|
|
this.info.percent = 0;
|
|
|
+ let totalxs=0,getxs=0
|
|
|
for( let i = 0; i< this.list.length;i++){
|
|
|
let item = this.list[i]
|
|
|
- this.info.axs += (item.xs/10)
|
|
|
+ totalxs += item.xs
|
|
|
if( item.isFinish ){
|
|
|
- this.info.gxs += (item.xs/10)
|
|
|
+ getxs += item.xs
|
|
|
this.info.fcount++
|
|
|
}
|
|
|
}
|
|
|
+ this.info.gxs = getxs/10
|
|
|
+ this.info.axs = totalxs/10
|
|
|
+
|
|
|
this.info.percent = (this.info.gxs*10000/this.info.axs)/100;
|
|
|
},
|
|
|
//
|
|
@@ -341,7 +343,7 @@
|
|
|
httpServer('course.GetMedia', {id:item.id}).then( ({data, code}) => {
|
|
|
this.mediaUrl = data.mediaUrl;
|
|
|
if( data.position >0){
|
|
|
- item.position = data.position;
|
|
|
+ item.position = data.position;
|
|
|
}
|
|
|
this.mediaType = 'hls';
|
|
|
this.show = 4
|