From f16045cde17854377084335c478e3cae0d08d6b8 Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期四, 15 五月 2025 14:18:38 +0800
Subject: [PATCH] change

---
 src/views/mnfz.vue |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/views/mnfz.vue b/src/views/mnfz.vue
index 2c3352b..141a4de 100644
--- a/src/views/mnfz.vue
+++ b/src/views/mnfz.vue
@@ -12,7 +12,9 @@
     :waterSimulateParams="waterSimulateParams"
     @playbackFinished="playbackFinished"
     @end="endSimulate"
+    @isColorRender="isColorRender"
   />
+  <LegendMNFZ class="legend" v-if="isShowLegend"></LegendMNFZ>
   <DebuffDetail
     v-if="showDebuffDetail"
     @open="openDetail"
@@ -25,6 +27,7 @@
 import { EventBus } from "@/eventBus"; // 寮曞叆浜嬩欢鎬荤嚎
 import { ref, onMounted, onUnmounted, provide } from "vue";
 import TimeLine from "@/components/menu/TimeLine.vue";
+import LegendMNFZ from "@/components/tools/Legend_mnfz.vue";
 import Left from "./left/Left.vue";
 import echartInfo from "@/components/monifangzhen/echartInfo.vue";
 import DebuffDetail from "@/components/tools/DebuffDetail.vue";
@@ -49,6 +52,7 @@
 const showDebuffTable = ref(false);
 const isDynamicMode = ref(false);
 const isFinish = ref(true);
+const isShowLegend = ref(false);
 
 const treeMap = new Map();
 
@@ -538,6 +542,10 @@
 function playbackFinished(val) {
   isFinish.value = val;
 }
+function isColorRender(val){
+  console.log('杩欓噷鎵撳嵃鏄惁鏄剧ず姘翠綅鍥句緥鐨勫�硷細',val);
+  isShowLegend.value = val
+}
 // 瀹氫箟鍏ㄥ眬鍙橀噺瀛樺偍褰撳墠姝e湪闂姩鐨勯潰鐗�
 let flashingPolygon = null;
 
@@ -645,4 +653,12 @@
 </script>
 <style lang="less" scoped>
 @import url("../assets/css/home.css");
+.legend {
+	// background: url("@/assets/img/right/rightbg.png");
+	color: white;
+	position: fixed;
+	bottom: 6%;
+	right: 20%;
+	z-index: 3333;
+}
 </style>

--
Gitblit v1.9.3