From fcac9ebfb3a0a1a4f6d857b422768d6cbef7944d Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期一, 21 四月 2025 14:02:43 +0800
Subject: [PATCH] change

---
 src/components/menu/TimeLine.vue |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/components/menu/TimeLine.vue b/src/components/menu/TimeLine.vue
index 632a6c3..b8cec2a 100644
--- a/src/components/menu/TimeLine.vue
+++ b/src/components/menu/TimeLine.vue
@@ -62,7 +62,7 @@
         </div>
       </div>
     </div>
-    <el-button @click="endSimulate" style="margin-top: 26px;margin-left: 30px;margin-right: 10px;">缁撴潫妯℃嫙</el-button>
+    <el-button @click="handleBack" style="margin-top: 26px;margin-left: 30px;margin-right: 10px;">缁撴潫妯℃嫙</el-button>
   </div>
 </template>
 
@@ -80,6 +80,9 @@
 import dayjs from "dayjs";
 import { createWaterPrimitive, destoryWaterPrimitive } from "@/utils/water";
 import { getRainfall } from "@/api/index";
+import { EventBus } from "@/eventBus"; // 寮曞叆浜嬩欢鎬荤嚎
+import { ElMessage } from 'element-plus'
+
 
 const props = defineProps({
   waterSimulateParams: {
@@ -301,6 +304,15 @@
   }, delay);
 });
 const { startSimulate, endSimulate } = inject("simulateActions");
+// 杩斿洖鎸夐挳鐐瑰嚮浜嬩欢
+function handleBack() {
+  ElMessage({
+    message: '妯℃嫙杩涚▼姝e湪鍏抽棴涓�...',
+    type: 'success',
+  })
+  endSimulate();
+  EventBus.emit("hide-schemeInfo");
+}
 </script>
 
 <style scoped>

--
Gitblit v1.9.3