From dbe8c138dcf039c9ab3744478ae234f4cd52c446 Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期二, 15 四月 2025 10:44:02 +0800 Subject: [PATCH] change --- src/views/left/KGSimOption/PredictiveSimulation.vue | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/left/KGSimOption/PredictiveSimulation.vue b/src/views/left/KGSimOption/PredictiveSimulation.vue index 04e194d..6c3eacd 100644 --- a/src/views/left/KGSimOption/PredictiveSimulation.vue +++ b/src/views/left/KGSimOption/PredictiveSimulation.vue @@ -50,7 +50,7 @@ <div class="buttons"> <el-button type="primary" @click="openPlan">鎵撳紑鏂规</el-button> <el-button type="primary" @click="openSaveDialog">淇濆瓨鏂规</el-button> - <el-button type="success" @click="startSimulation">寮�濮嬫ā鎷�</el-button> + <el-button type="success" @click="startPlay">寮�濮嬫ā鎷�</el-button> </div> <!-- 淇濆瓨鏂规瀵硅瘽妗� --> @@ -81,9 +81,17 @@ </template> <script setup> -import { ref, computed } from 'vue'; +import { ref, computed,inject } from 'vue'; import { ElMessage } from 'element-plus'; +import { initeWaterPrimitiveView } from "@/utils/water"; +const { startSimulate, endSimulate } = inject("simulateActions"); +function startPlay() { + console.log("寮�濮嬫ā鎷熸寜閽鐐瑰嚮"); + console.log("褰撳墠閫変腑鐨勫尯鍩燂細", props.selectedArea); + initeWaterPrimitiveView(); + startSimulate(); +} // 瀹氫箟 Props const props = defineProps({ selectedArea: { @@ -166,12 +174,6 @@ // 鎵撳紑鏂规 const openPlan = () => { console.log('鎵撳紑鏂规鎸夐挳琚偣鍑�'); -}; - -// 寮�濮嬫ā鎷� -const startSimulation = () => { - console.log('寮�濮嬫ā鎷熸寜閽鐐瑰嚮'); - console.log('褰撳墠閫変腑鐨勫尯鍩燂細', props.selectedArea); }; </script> -- Gitblit v1.9.3