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;