From 55f950b56d94154fab0f807a417df2202aaae499 Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期一, 14 四月 2025 18:27:25 +0800 Subject: [PATCH] 2 --- src/views/left/KGSimOption/PredictiveSimulation.vue | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/views/left/KGSimOption/PredictiveSimulation.vue b/src/views/left/KGSimOption/PredictiveSimulation.vue index 04e194d..3b2dd44 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> <!-- 淇濆瓨鏂规瀵硅瘽妗� --> @@ -83,7 +83,17 @@ <script setup> import { ref, computed } from 'vue'; import { ElMessage } from 'element-plus'; +import { initeWaterPrimitiveView } from "@/utils/water"; +const emit = defineEmits(["start", "end"]); +function endPlay() { + emit("end"); +} + +function startPlay() { + initeWaterPrimitiveView(); + emit("start"); +} // 瀹氫箟 Props const props = defineProps({ selectedArea: { -- Gitblit v1.9.3