|
|
|
@ -466,7 +466,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
// 分页参数 |
|
|
|
// 分页参数 |
|
|
|
currentPage: 1, |
|
|
|
currentPage: 1, |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 6, |
|
|
|
|
|
|
|
|
|
|
|
// 提示框相关 |
|
|
|
// 提示框相关 |
|
|
|
tooltipVisible: false, |
|
|
|
tooltipVisible: false, |
|
|
|
@ -698,12 +698,12 @@ export default { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.calcCurrentTimePosition(); |
|
|
|
this.calcCurrentTimePosition(); |
|
|
|
// 添加滚动事件监听器 |
|
|
|
// 添加滚动事件监听器 |
|
|
|
if (this.$refs.timelineContainerTest) { |
|
|
|
// if (this.$refs.timelineContainerTest) { |
|
|
|
this.$refs.timelineContainerTest.addEventListener('scroll', this.handleRightScrollBound); |
|
|
|
// this.$refs.timelineContainerTest.addEventListener('scroll', this.handleRightScrollBound); |
|
|
|
} |
|
|
|
// } |
|
|
|
if (this.$refs.leftScrollContainer) { |
|
|
|
// if (this.$refs.leftScrollContainer) { |
|
|
|
this.$refs.leftScrollContainer.addEventListener('scroll', this.handleLeftScrollBound); |
|
|
|
// this.$refs.leftScrollContainer.addEventListener('scroll', this.handleLeftScrollBound); |
|
|
|
} |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// 定时更新当前时间线位置 |
|
|
|
// 定时更新当前时间线位置 |
|
|
|
@ -713,17 +713,17 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
|
// 绑定方法,确保this指向正确 |
|
|
|
// 绑定方法,确保this指向正确 |
|
|
|
this.handleRightScrollBound = this.handleRightScroll.bind(this); |
|
|
|
// this.handleRightScrollBound = this.handleRightScroll.bind(this); |
|
|
|
this.handleLeftScrollBound = this.handleLeftScroll.bind(this); |
|
|
|
// this.handleLeftScrollBound = this.handleLeftScroll.bind(this); |
|
|
|
}, |
|
|
|
}, |
|
|
|
beforeDestroy() { |
|
|
|
beforeDestroy() { |
|
|
|
// 移除事件监听器 |
|
|
|
// 移除事件监听器 |
|
|
|
if (this.$refs.timelineContainerTest) { |
|
|
|
// if (this.$refs.timelineContainerTest) { |
|
|
|
this.$refs.timelineContainerTest.removeEventListener('scroll', this.handleRightScrollBound); |
|
|
|
// this.$refs.timelineContainerTest.removeEventListener('scroll', this.handleRightScrollBound); |
|
|
|
} |
|
|
|
// } |
|
|
|
if (this.$refs.leftScrollContainer) { |
|
|
|
// if (this.$refs.leftScrollContainer) { |
|
|
|
this.$refs.leftScrollContainer.removeEventListener('scroll', this.handleLeftScrollBound); |
|
|
|
// this.$refs.leftScrollContainer.removeEventListener('scroll', this.handleLeftScrollBound); |
|
|
|
} |
|
|
|
// } |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
// 右侧滚动时同步左侧滚动 |
|
|
|
// 右侧滚动时同步左侧滚动 |
|
|
|
|