From c38bf5d3b5a29b6afa5973508ba836ef50bf3201 Mon Sep 17 00:00:00 2001 From: JouChun Date: Sun, 20 Oct 2024 22:14:28 -0400 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E9=9D=A2=E5=9C=96=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BD=9CInfo=20Modal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chart/EffectScatter.vue | 8 +- src/components/customUI/Modal.vue | 60 ++++----- src/components/forge/ForgeForSystem.vue | 2 +- src/views/system/System.vue | 127 ++++++++++-------- src/views/system/SystemFloor.vue | 28 ++-- src/views/system/components/SystemCard.vue | 1 - .../system/components/SystemFloorBar.vue | 21 ++- .../system/components/SystemInfoModal.vue | 21 ++- .../components/SystemInfoModalContent.vue | 7 +- .../components/SystemInfoModalDesktop.vue | 16 ++- src/views/system/components/SystemSubBar.vue | 8 +- 11 files changed, 178 insertions(+), 121 deletions(-) diff --git a/src/components/chart/EffectScatter.vue b/src/components/chart/EffectScatter.vue index 3ff8e1c..3893e4e 100644 --- a/src/components/chart/EffectScatter.vue +++ b/src/components/chart/EffectScatter.vue @@ -21,6 +21,8 @@ let currentClickPosition = ref([]); async function updateSvg(svg, option) { if (!chart.value && dom.value && svg) { init(); + } else { + clear() } axios.get(svg.path).then(({ data }) => { echarts.registerMap(svg.full_name, { svg: data }); @@ -44,6 +46,10 @@ async function updateSvg(svg, option) { console.log("updateSvg", svg.path); } +function clear() { + chart.value.clear() +} + function init() { const curChart = echarts.init(dom.value); chart.value = markRaw(curChart); @@ -62,7 +68,7 @@ defineExpose({ }); diff --git a/src/components/customUI/Modal.vue b/src/components/customUI/Modal.vue index f4c785a..7fffccf 100644 --- a/src/components/customUI/Modal.vue +++ b/src/components/customUI/Modal.vue @@ -1,6 +1,6 @@