|
|
@@ -325,7 +325,10 @@ export default {
|
|
|
},
|
|
|
hadLoadedFile (v) {
|
|
|
// 计时开始,添加查看记录
|
|
|
- this.handleAdd(this.curZid || this.leftData[0]?.zId, 0)
|
|
|
+ if (!this.curZid) {
|
|
|
+ this.handleAdd(this.leftData[0]?.zId, 0)
|
|
|
+ }
|
|
|
+
|
|
|
this.setBrowseTime()
|
|
|
this.hadLoad = true
|
|
|
},
|
|
|
@@ -369,6 +372,12 @@ export default {
|
|
|
|
|
|
toggleActive (activity, index) {
|
|
|
if (this.activeIndex === index) { return }
|
|
|
+ // 切换文件修订历史时,保存上一个文件查看记录,新增当前文件查看记录
|
|
|
+ if (this.browseTime && this.browseTime > 0 && this.timeId) {
|
|
|
+ this.handleUpdate()
|
|
|
+ this.handleAdd(this.curZid || this.leftData[0]?.zId, 0)
|
|
|
+ }
|
|
|
+
|
|
|
this.activeIndex = index
|
|
|
this.digData = activity
|
|
|
this.fileShow(activity)
|
|
|
@@ -421,7 +430,8 @@ export default {
|
|
|
id_: this.timeId
|
|
|
},
|
|
|
param: {
|
|
|
- shi_chang_: this.browseTime
|
|
|
+ // shi_chang_: this.browseTime
|
|
|
+ shi_chang_: 20
|
|
|
}
|
|
|
}]
|
|
|
}
|