From 17e2ed2c8a4a7b69c78c52bca5848b0e2dcd589f Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期二, 15 四月 2025 14:20:41 +0800
Subject: [PATCH] change

---
 src/views/left/KGSimOption/PredictiveSimulation.vue |   26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/src/views/left/KGSimOption/PredictiveSimulation.vue b/src/views/left/KGSimOption/PredictiveSimulation.vue
index 04e194d..ba29131 100644
--- a/src/views/left/KGSimOption/PredictiveSimulation.vue
+++ b/src/views/left/KGSimOption/PredictiveSimulation.vue
@@ -44,13 +44,13 @@
       </div>
       <div>
         <label>浠跨湡鍙傛暟:</label>
-        <div style="width: 100%; height: 60px; background-color: #fff;"></div>
+        <div style="width: 100%; height: 43px; background-color: #fff;"></div>
       </div>
     </div>
     <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: {
@@ -167,12 +175,6 @@
 const openPlan = () => {
   console.log('鎵撳紑鏂规鎸夐挳琚偣鍑�');
 };
-
-// 寮�濮嬫ā鎷�
-const startSimulation = () => {
-  console.log('寮�濮嬫ā鎷熸寜閽鐐瑰嚮');
-  console.log('褰撳墠閫変腑鐨勫尯鍩燂細', props.selectedArea);
-};
 </script>
 
 <style scoped>
@@ -193,8 +195,12 @@
 
 .buttons {
   margin-top: 10px;
+  display: flex;
+  gap: 10px;
 }
-
+.el-button {
+  flex: 1;
+}
 .input-item {
   display: flex;
   align-items: center;

--
Gitblit v1.9.3