From b42f3311b966f4546cf2186c95aad4124688206a Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Tue, 18 Jul 2023 20:16:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/LayoutClassic/index.vue | 16 ++++++++-------- .../progressManagement/GanttchartChart/index.vue | 6 ++++-- .../progressManagement/ganttChart/index.vue | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/layouts/LayoutClassic/index.vue b/src/layouts/LayoutClassic/index.vue index fb120d0..75892b5 100644 --- a/src/layouts/LayoutClassic/index.vue +++ b/src/layouts/LayoutClassic/index.vue @@ -1,13 +1,13 @@ diff --git a/src/views/goverment/huizhou/progressManagement/GanttchartChart/index.vue b/src/views/goverment/huizhou/progressManagement/GanttchartChart/index.vue index ec0bfc0..dab1ffe 100644 --- a/src/views/goverment/huizhou/progressManagement/GanttchartChart/index.vue +++ b/src/views/goverment/huizhou/progressManagement/GanttchartChart/index.vue @@ -90,7 +90,7 @@ @mouseleave="handleLeave" > -
+
{{ child.name }}
{{ child.planStartTime }}
@@ -404,7 +404,6 @@ const getGanttStyle = (project: any) => { } } } - const startLeft = startRef.offsetLeft; const endWidth = endRef.offsetWidth; @@ -492,6 +491,9 @@ const handleOpen = (index: any) => { } else { openedIndex.value = index; } + setTimeout(function () { + setGantts(); + }, 300); }; const handleScroll = (e: any) => { diff --git a/src/views/hz-project/progressManagement/ganttChart/index.vue b/src/views/hz-project/progressManagement/ganttChart/index.vue index 4b64779..96c5eda 100644 --- a/src/views/hz-project/progressManagement/ganttChart/index.vue +++ b/src/views/hz-project/progressManagement/ganttChart/index.vue @@ -59,7 +59,7 @@ @mouseleave="handleLeave" >
-
+
{{ child.name }}
{{ child.planStartTime }}