From 459940d425bda470f836a66581c2ef3d64d83118 Mon Sep 17 00:00:00 2001 From: wzy-warehouse <18135009705@163.com> Date: Wed, 15 Apr 2026 22:41:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B3=E4=BE=A7=E6=8E=A7=E5=88=B6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=9D=A2=E6=9D=BF=EF=BC=8C=E5=90=8C=E6=97=B6=E8=A7=84?= =?UTF-8?q?=E6=95=B4=E6=98=BE=E7=A4=BA=E9=9A=90=E8=97=8F=E7=82=B9=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + src/App.vue | 2 +- src/component/common/InformationBox.vue | 2 +- src/component/map/AdministrativeDivision.vue | 12 +- src/component/map/MapComponent.vue | 6 +- .../rain-earthquake/BasicComponent.vue | 4 +- .../rain-earthquake/ControlShowComponent.vue | 65 +++++++ .../DisasterChainPointComponent.vue | 13 +- .../rain-earthquake/HiddenPointComponent.vue | 9 +- .../rain-earthquake/LeftButtonComponent.vue | 2 +- .../rain-earthquake/LegendComponent.vue | 11 +- .../rain-earthquake/LoadingPoints.vue | 14 +- .../rain-earthquake/RiskPointComponent.vue | 5 +- .../earthquake/useEarthquakeDisasterChain.ts | 177 ++++++++++++++++++ src/hooks/rainstorm/useRainDisasterChain.ts | 107 ++++++++++- src/stores/useLoadingResourceStore.ts | 35 ++++ src/stores/useStatusStore.ts | 168 +++++++---------- src/types/common/LoadingResourceType.ts | 16 ++ src/views/home/earthquake/EarthquakeView.vue | 10 + src/views/home/rainstorm/RainstormView.vue | 5 + 20 files changed, 520 insertions(+), 144 deletions(-) create mode 100644 src/component/rain-earthquake/ControlShowComponent.vue create mode 100644 src/stores/useLoadingResourceStore.ts create mode 100644 src/types/common/LoadingResourceType.ts diff --git a/components.d.ts b/components.d.ts index 48d4602..e00c4df 100644 --- a/components.d.ts +++ b/components.d.ts @@ -12,6 +12,7 @@ export {} declare module 'vue' { export interface GlobalComponents { ElButton: typeof import('element-plus/es')['ElButton'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCol: typeof import('element-plus/es')['ElCol'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElIcon: typeof import('element-plus/es')['ElIcon'] diff --git a/src/App.vue b/src/App.vue index 0571eb9..d3699f4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,7 +16,7 @@ let loadingInstanve = ElLoading.service(loadingOption); watch( - () => useStatusStore().getAppLoadingCompleted(), + () => useStatusStore().appLoadingCompleted, (val) => { if (val) { loadingInstanve.close(); diff --git a/src/component/common/InformationBox.vue b/src/component/common/InformationBox.vue index ee0ca4e..c23bc06 100644 --- a/src/component/common/InformationBox.vue +++ b/src/component/common/InformationBox.vue @@ -56,7 +56,7 @@ // 数据转换 Object.entries(props.data).forEach(([key, value]) => { - // 判读key是不是存在field中,存在就添加到表格数据,不存在则不添加 + // 判断key是不是存在field中,存在就添加到表格数据,不存在则不添加 if (Object.hasOwn(props.field, key) && value) { tableDatas.value.push({ title: props.field[key], diff --git a/src/component/map/AdministrativeDivision.vue b/src/component/map/AdministrativeDivision.vue index 60ff0b2..6a23dcb 100644 --- a/src/component/map/AdministrativeDivision.vue +++ b/src/component/map/AdministrativeDivision.vue @@ -5,7 +5,8 @@ diff --git a/src/component/map/MapComponent.vue b/src/component/map/MapComponent.vue index 85e86ac..3d72875 100644 --- a/src/component/map/MapComponent.vue +++ b/src/component/map/MapComponent.vue @@ -2,7 +2,7 @@
-