From 15b0d2e994632fc594462f8b63bcf8e523b0fe8e Mon Sep 17 00:00:00 2001 From: wzy-warehouse <18135009705@163.com> Date: Mon, 13 Apr 2026 19:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=81=BE=E5=AE=B3=E9=93=BE=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E7=82=B9=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 7 + src/component/map/MapComponent.vue | 1 - .../DisasterChainPointComponent.vue | 264 ++++++++++++++++++ src/types/common/DisasterType.ts | 8 + src/types/common/PaginationType.ts | 6 + src/views/home/rainstorm/RainstormView.vue | 97 ++++++- 6 files changed, 381 insertions(+), 2 deletions(-) create mode 100644 src/component/rain-earthquake/DisasterChainPointComponent.vue create mode 100644 src/types/common/PaginationType.ts diff --git a/components.d.ts b/components.d.ts index 65dc19f..5eddf62 100644 --- a/components.d.ts +++ b/components.d.ts @@ -14,9 +14,16 @@ declare module 'vue' { ElButton: typeof import('element-plus/es')['ElButton'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElIcon: typeof import('element-plus/es')['ElIcon'] + ElInput: typeof import('element-plus/es')['ElInput'] + ElOption: typeof import('element-plus/es')['ElOption'] + ElPagination: typeof import('element-plus/es')['ElPagination'] + ElSelect: typeof import('element-plus/es')['ElSelect'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } + export interface GlobalDirectives { + vLoading: typeof import('element-plus/es')['ElLoadingDirective'] + } } diff --git a/src/component/map/MapComponent.vue b/src/component/map/MapComponent.vue index 1128b32..4623df9 100644 --- a/src/component/map/MapComponent.vue +++ b/src/component/map/MapComponent.vue @@ -42,7 +42,6 @@ // 注册全局点击监听器 CesiumUtilsSingleton.clickLayer((pickedObject: ClickObject) => { - console.log('点击对象:', pickedObject); if ( pickedObject && pickedObject.id && diff --git a/src/component/rain-earthquake/DisasterChainPointComponent.vue b/src/component/rain-earthquake/DisasterChainPointComponent.vue new file mode 100644 index 0000000..7011a85 --- /dev/null +++ b/src/component/rain-earthquake/DisasterChainPointComponent.vue @@ -0,0 +1,264 @@ + + + + + + diff --git a/src/types/common/DisasterType.ts b/src/types/common/DisasterType.ts index 3ea6033..3c5ef06 100644 --- a/src/types/common/DisasterType.ts +++ b/src/types/common/DisasterType.ts @@ -2,3 +2,11 @@ export enum DisasterType { RAINSTORM = 'rainstorm', EARTHQUAKE = 'earthquake', } + +// 隐患点类型 +export enum HiddenPointType { + LANDSLIDE = '滑坡', + DEBRIS_FLOW = '泥石流', + WATERLOGGING = '内涝', + FLASH_FLOOD = '山洪', +} diff --git a/src/types/common/PaginationType.ts b/src/types/common/PaginationType.ts new file mode 100644 index 0000000..5d83960 --- /dev/null +++ b/src/types/common/PaginationType.ts @@ -0,0 +1,6 @@ +export interface PaginationType { + currentPage: number; + pageSize: number; + total: number; + totalPage: number; +} diff --git a/src/views/home/rainstorm/RainstormView.vue b/src/views/home/rainstorm/RainstormView.vue index fc8d4f1..c814727 100644 --- a/src/views/home/rainstorm/RainstormView.vue +++ b/src/views/home/rainstorm/RainstormView.vue @@ -1,18 +1,113 @@ + +