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