From 159e822a87efe1b982b087547fff604792b46778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com> Date: Sat, 31 Aug 2024 17:49:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E6=9E=9C=E5=B1=95=E7=A4=BA-=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=BD=B4=E5=8F=AF=E6=92=AD=E6=94=BE=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/achievement/Display/TimeLine.vue | 168 +++++++++--------- .../demo/system/achievement/Display/index.vue | 17 +- 2 files changed, 91 insertions(+), 94 deletions(-) diff --git a/src/views/demo/system/achievement/Display/TimeLine.vue b/src/views/demo/system/achievement/Display/TimeLine.vue index ec228122..274a5862 100644 --- a/src/views/demo/system/achievement/Display/TimeLine.vue +++ b/src/views/demo/system/achievement/Display/TimeLine.vue @@ -1,81 +1,80 @@ - - + --> @@ -132,14 +131,13 @@ }; function addValue() { + console.log(playSwitch.value); if (playSwitch.value) { setTimeout(() => { - if (playSwitch.value) { - value.value = parseInt(dayjs(getValue(value.value)).add(7, 'day').dayOfYear()); - emit('handleNowValueChange', [dayjs(getValue(1)), dayjs(getValue(value.value))]); - addValue(); - } - }, 5000); + value.value = parseInt(dayjs(getValue(value.value)).add(7, 'day').dayOfYear()); + emit('handleNowValueChange', [dayjs(getValue(1)), dayjs(getValue(value.value))]); + addValue(); + }, 1000); } } @@ -205,25 +203,21 @@ diff --git a/src/views/demo/system/achievement/Display/index.vue b/src/views/demo/system/achievement/Display/index.vue index aee953db..e79d5053 100644 --- a/src/views/demo/system/achievement/Display/index.vue +++ b/src/views/demo/system/achievement/Display/index.vue @@ -4,7 +4,9 @@
图层列表
.case-tree-container { - width: 300px; + width: 320px; height: 720px; background: #041b36; position: absolute; z-index: 1; - top: 100px; - margin-left: 20px; - margin-bottom: 20px; + bottom: 20px; + left: 20px; } .title { @@ -390,10 +393,10 @@ } .timeLineBox { - position: relative; + position: absolute; z-index: 1; left: 420px; - bottom: -690px; + bottom: 20px; width: 1200px; height: 120px; border: 2px #155dd8;