|
@@ -139,6 +139,9 @@
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" v-loading="loadingFlash" element-loading-background="rgba(0,0,0,0.2)" v-dialogDrag :title="pdf.title"
|
|
|
:visible.sync="pdf.open" width="1300px" height="800px" :center="true" append-to-body @close="handleClose">
|
|
|
+ <div style="margin-top: -60px;float: right;margin-right: 40px;">
|
|
|
+ <br/>累计学习时长:{{learnTime}} min
|
|
|
+ </div>
|
|
|
<div style="margin-top: -30px">
|
|
|
<iframe id="iFrame" class="iframe-html" :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"
|
|
|
v-if="ppt"></iframe>
|
|
@@ -174,6 +177,7 @@
|
|
|
components: { Treeselect },
|
|
|
data() {
|
|
|
return {
|
|
|
+ learnTime: null,
|
|
|
history: {
|
|
|
open: false,
|
|
|
title: "",
|
|
@@ -322,10 +326,12 @@
|
|
|
this.pdf.pdfUrl = process.env.VUE_APP_BASE_API + '/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl
|
|
|
this.loadingFlash = false
|
|
|
}
|
|
|
+ this.learnTime = row.learnTime;
|
|
|
let _this = this;
|
|
|
timer = window.setInterval(function() {
|
|
|
updateLearnTime(row).then(response => {
|
|
|
- // _this.$forceUpdate();
|
|
|
+ console.log(response)
|
|
|
+ this.learnTime = response.data.learnTime;
|
|
|
});
|
|
|
}, 60000);
|
|
|
},
|