| | |
| | | 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; |
| | |
| | | pickHandlerCross = null; |
| | | } |
| | | isPicking.value = false; |
| | | simStore.crossSection = [] |
| | | EventBus.emit("clear-dM") |
| | | console.log('这里发送请求,清空郭楠的echarts2'); |
| | | |
| | | } |
| | |
| | | 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; |