|
@@ -210,6 +210,9 @@
|
|
|
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"
|
|
|
></iframe>
|
|
@@ -231,6 +234,7 @@ export default {
|
|
|
components: { Treeselect },
|
|
|
data() {
|
|
|
return {
|
|
|
+ learnTime: null,
|
|
|
file: {
|
|
|
open: false,
|
|
|
data: {
|
|
@@ -442,9 +446,11 @@ export default {
|
|
|
this.pdf.pdfUrl = process.env.VUE_APP_BASE_API + '/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.trainingbcc.fileUrl
|
|
|
this.loadingFlash = false
|
|
|
}
|
|
|
+ this.learnTime = row.learnTime;
|
|
|
let _this = this;
|
|
|
timer = window.setInterval(function () {
|
|
|
updateDeviceLearnTime(row).then(res => {
|
|
|
+ _this.learnTime += 1
|
|
|
})
|
|
|
}, 60000);
|
|
|
},
|