From 27e45a1f12852662672c5c15a34e7ab95864569a Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Fri, 26 Dec 2025 19:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E4=BA=A7=E7=9C=8B=E6=9D=BF=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../schedulingDashboard/index.vue | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/views/productionSchedulingPlan/schedulingDashboard/index.vue b/src/views/productionSchedulingPlan/schedulingDashboard/index.vue index f571554..049b1bc 100644 --- a/src/views/productionSchedulingPlan/schedulingDashboard/index.vue +++ b/src/views/productionSchedulingPlan/schedulingDashboard/index.vue @@ -267,7 +267,11 @@ -
+
@@ -664,8 +668,13 @@ export default { }, // 动态计算甘特图容器高度 ganttWrapperHeight() { - // 根据实际页面元素计算可用高度 - return `calc(100vh - 250px)`; // 调整数值以适应您的页面布局 + if (this.$route.path == '/productionSchedulingPlan/schedulingDashboard/index') { + // 根据实际页面元素计算可用高度 + return `calc(100vh - 250px - 120px)`; // 调整数值以适应您的页面布局 + } else { + // 根据实际页面元素计算可用高度 + return `calc(100vh - 250px)`; // 调整数值以适应您的页面布局 + } }, }, mounted() { @@ -709,18 +718,15 @@ export default { handleRightScroll(event) { if (this.$refs.leftScrollContainer) { const rightScrollTop = event.target.scrollTop; - console.log('右侧',rightScrollTop) this.$refs.leftScrollContainer.scrollTop = rightScrollTop; } }, - + // 左侧滚动时同步右侧滚动 handleLeftScroll(event) { - if (this.$refs.timelineContainerTest) { const leftScrollTop = event.target.scrollTop; this.$refs.timelineContainerTest.scrollTop = leftScrollTop; - console.log('左侧',leftScrollTop,this.$refs.timelineContainerTest.scrollTop) } }, updateTime() { @@ -1225,7 +1231,7 @@ export default { padding: 20px; box-sizing: border-box; font-family: Arial, sans-serif; - height: calc(100% - 72px); + height: calc(100% - 72px - 100px); } .gantt-header { @@ -1336,7 +1342,6 @@ export default { justify-content: space-between; align-items: center; padding-right: 15px; - } .info-title-cell { @@ -1358,7 +1363,7 @@ export default { .info-item { display: flex; height: 100%; - + /* padding: 5px; */ }