排产看板提交

dev-scheduling
zhangdi 4 days ago
parent 4d12dcb6de
commit fd65912891
  1. 30
      src/views/productionSchedulingPlan/schedulingDashboard/index.vue

@ -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: {
// //

Loading…
Cancel
Save