src/components/menu/CrossSectionalAnalysis.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/menu/TimeLine.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/monifangzhen/echartInfo.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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'); } src/components/menu/TimeLine.vue
@@ -1158,9 +1158,9 @@ async function endSimulation() { clearAllPoints(); simStore.openDia = true; simStore.crossSection = []; // 结束模拟之后清除layer列表 simStore.rePlayList = []; console.log(simStore.rePlayList, "结束模拟清除rePlayListrePlayList列表"); EventBus.emit("close-time"); endSimulate(); isWaterPrimitiveCreated.value = false; src/components/monifangzhen/echartInfo.vue
@@ -155,6 +155,14 @@ chart2Data.value.resetLoading(); }); // 清除断面 EventBus.on("clear-dM", () => { chart2Data.value.stopUpdating(); chart2Data.value.resetLoading(); clearInterval(intervalId2); intervalId2 = null; }); // 清除威胁对象中的数据 const resetTable = () => { currentIndex.value = 0; @@ -838,6 +846,7 @@ onUnmounted(() => { EventBus.off("reset-table"); // 移除事件监听 EventBus.off("clear-echart"); EventBus.off("clear-dM"); EventBus.off("time-update"); // 清理事件监听 }); </script>