|
|
@@ -142,7 +142,6 @@ export default {
|
|
|
updateShow: false,
|
|
|
type: 'success',
|
|
|
curFileName: '',
|
|
|
- curFileID: '',
|
|
|
dialogVisible: false,
|
|
|
operation_status: 'fileTraining',
|
|
|
title: '',
|
|
|
@@ -296,10 +295,6 @@ export default {
|
|
|
},
|
|
|
|
|
|
closeDialog () {
|
|
|
- // 查看成功时才保存查看记录
|
|
|
- if (this.browseTime && this.browseTime > 0) {
|
|
|
- this.handleUpdate(this.curFileID || this.leftData[0]?.zId, this.browseTime)
|
|
|
- }
|
|
|
this.$emit('colseVisible', false)
|
|
|
const fvView = this.$refs.fvView
|
|
|
// 销毁子组件方法
|
|
|
@@ -376,17 +371,16 @@ export default {
|
|
|
clearInterval(this.clearTimeSet)
|
|
|
this.browseTime = 0
|
|
|
this.curFileName = activity.FILE_NAME_
|
|
|
- this.curFileID = activity.zid
|
|
|
this.checkNum(activity)// 阅读量
|
|
|
// this.$forceUpdate()// 触发监听器
|
|
|
},
|
|
|
// 阅读量函数
|
|
|
- async checkNum (activity) {
|
|
|
+ checkNum (activity) {
|
|
|
const sql = `select t_wjcyjl.* from t_wjcyjl
|
|
|
INNER JOIN t_wjxxb ON t_wjcyjl.parent_id_ = t_wjxxb.id_
|
|
|
WHERE t_wjxxb.shu_ju_lai_yuan_ = '${activity.id}' order by create_time_ desc`
|
|
|
// const sql1 = `select * from t_wjcyjl where parent_id_= '${activity.id}' order by create_time_ desc`
|
|
|
- await this.$common.request('sql', sql).then((res) => {
|
|
|
+ this.$common.request('sql', sql).then((res) => {
|
|
|
const { data = [] } = res.variables || {}
|
|
|
this.lookNum = data.length
|
|
|
this.showList = data
|
|
|
@@ -412,14 +406,14 @@ export default {
|
|
|
this.leftShow = !this.leftShow
|
|
|
},
|
|
|
|
|
|
- async lookFile () {
|
|
|
+ lookFile () {
|
|
|
// console.log(document.querySelector('iframe').contentWindow.document)
|
|
|
// console.log(document.querySelector('iframe').contentWindow.document.body.innerHTML);
|
|
|
if (this.digData) {
|
|
|
- await this.checkNum(this.digData)
|
|
|
+ this.checkNum(this.digData)
|
|
|
} else {
|
|
|
this.digData = this.leftData[0]
|
|
|
- await this.checkNum(this.digData)
|
|
|
+ this.checkNum(this.digData)
|
|
|
}
|
|
|
this.innerVisible = true
|
|
|
},
|