@@ -44,23 +41,19 @@ import { provide } from 'vue';//从Vue导入provide函数,用于依赖注入
import { useStatusStore } from '@/stores/useStatusStore';
import { useAroundButton } from '@/hooks/rain-earthquake/useAroundButton.ts';
import { useAroundSearch } from '@/hooks/rain-earthquake/useAroundSearch.ts';
-import AroundAnalysisDetailComponent from './around-analysis/AroundAnalysisDetailComponent.vue';
import ButtonComponent from './around-analysis/ButtonComponent.vue';
import SearchComponent from './around-analysis/SearchComponent.vue';
-import PulsePointListComponent from './around-analysis/PulsePointListComponent.vue';
const statusStore = useStatusStore();
-// 在父组件中创建唯一的 Hook 实例,包含所有周边分析相关的状态和方法
+// 在父组件中创建唯一的 Hook 实例
const analysisButtonState = useAroundButton();
+const searchState = useAroundSearch();
-// 搜索触发的区域分析 Hook(在父组件中创建,确保 watch 不会被销毁)
-const searchAreaState = useAroundSearch();
-
-// 通过 provide 共享给所有子组件(让 TypeScript 自动推断类型)
+// 通过 provide 共享给所有子组件
provide('analysisButtonState', analysisButtonState);
-provide('searchAreaState', searchAreaState);
+provide('searchState', searchState);
diff --git a/src/component/rain-earthquake/function-child/around-analysis/PulsePointListComponent.vue b/src/component/rain-earthquake/function-child/around-analysis/PulsePointListComponent.vue
deleted file mode 100644
index 63d6f24..0000000
--- a/src/component/rain-earthquake/function-child/around-analysis/PulsePointListComponent.vue
+++ /dev/null
@@ -1,595 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (row as any).value || '未命名' }}
-
-
-
-
-
-
-
- {{ getCategoryName((row as any).category) }}
-
-
-
-
-
-
-
- {{ (row as any).lon?.toFixed(4) || '-' }}, {{ (row as any).lat?.toFixed(4) || '-' }}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/component/rain-earthquake/function-child/around-analysis/SearchComponent.vue b/src/component/rain-earthquake/function-child/around-analysis/SearchComponent.vue
index b7098ab..c165922 100644
--- a/src/component/rain-earthquake/function-child/around-analysis/SearchComponent.vue
+++ b/src/component/rain-earthquake/function-child/around-analysis/SearchComponent.vue
@@ -22,50 +22,36 @@