From a125872cf5a2d34c14d7355de416855389c14e4c Mon Sep 17 00:00:00 2001 From: wzy-warehouse <18135009705@163.com> Date: Wed, 6 May 2026 19:22:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=AD=A5=E9=AA=A4=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DisasterChainPointComponent.vue | 4 +-- .../rain-earthquake/LeftButtonComponent.vue | 2 +- .../rain-earthquake/RightButtonComponent.vue | 2 +- .../rain-earthquake/StepComponent.vue | 36 +++++++++++++++++++ src/stores/useStatusStore.ts | 4 +++ src/stores/useStepStore.ts | 19 ++++++++++ src/views/home/rainstorm/RainstormView.vue | 4 +++ 7 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 src/component/rain-earthquake/StepComponent.vue create mode 100644 src/stores/useStepStore.ts diff --git a/src/component/rain-earthquake/DisasterChainPointComponent.vue b/src/component/rain-earthquake/DisasterChainPointComponent.vue index 562c245..0f8ce10 100644 --- a/src/component/rain-earthquake/DisasterChainPointComponent.vue +++ b/src/component/rain-earthquake/DisasterChainPointComponent.vue @@ -157,13 +157,13 @@ diff --git a/src/stores/useStatusStore.ts b/src/stores/useStatusStore.ts index acdc685..3a71468 100644 --- a/src/stores/useStatusStore.ts +++ b/src/stores/useStatusStore.ts @@ -40,6 +40,10 @@ export const useStatusStore = defineStore('status', () => { show: true, loading: true, }, + stepBar: { + show: false, + loading: true, + }, }); // ============================ 地图图层显示状态 ================================ diff --git a/src/stores/useStepStore.ts b/src/stores/useStepStore.ts new file mode 100644 index 0000000..33449dd --- /dev/null +++ b/src/stores/useStepStore.ts @@ -0,0 +1,19 @@ +import { defineStore } from 'pinia'; +import { type Ref, ref } from 'vue'; + +/** + * 步骤条store + */ +export const useStepStore = defineStore('step', () => { + /** + * 步骤条列表 + */ + const stepList: Ref = ref([]); + + /** + * 当前步骤 + */ + const currentStep: Ref = ref(0); + + return { stepList, currentStep }; +}); diff --git a/src/views/home/rainstorm/RainstormView.vue b/src/views/home/rainstorm/RainstormView.vue index f2e3a01..0f8f559 100644 --- a/src/views/home/rainstorm/RainstormView.vue +++ b/src/views/home/rainstorm/RainstormView.vue @@ -54,6 +54,9 @@ + + + @@ -66,6 +69,7 @@ import LeftButtonComponent from '@/component/rain-earthquake/LeftButtonComponent.vue'; import LeftLegendComponent from '@/component/rain-earthquake/LeftLegendComponent.vue'; import RightButtonComponent from '@/component/rain-earthquake/RightButtonComponent.vue'; + import StepComponent from '@/component/rain-earthquake/StepComponent.vue'; import { useRainDisasterChain } from '@/hooks/rainstorm/useRainDisasterChain'; import { useStatusStore } from '@/stores/useStatusStore'; import { DisasterType } from '@/types/common/DisasterType.ts';