123
guonan
2025-07-10 e7557e07fbdaa9247024b301e1a2ba41390741ad
src/components/menu/CrossSectionalAnalysis.vue
@@ -78,6 +78,8 @@
import { getCrossSection } from '@/api/trApi.js'; // 假设你有真实接口
import { useSimStore } from '@/store/simulation';
import { storeToRefs } from 'pinia';
import { EventBus } from "@/eventBus";
const simStore = useSimStore();
const { selectedScheme } = storeToRefs(simStore);
const viewer = window.viewer;
@@ -234,6 +236,8 @@
      pickHandlerCross = null;
   }
   isPicking.value = false;
    simStore.crossSection = []
   EventBus.emit("clear-dM")
   console.log('这里发送请求,清空郭楠的echarts2');
   
}
@@ -293,6 +297,8 @@
   const startPoint = `${point1.longitude},${point1.latitude}`;
   const endPoint = `${point2.longitude},${point2.latitude}`;
   const result = await getCrossSectionInfo(startPoint, endPoint);
   simStore.crossSection = result
   EventBus.emit("redraw-dM")
   console.log(result,'这里是郭楠需要的断面数据');
   
   isUploaded.value = true;