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 @@ + +