From 137db1a441d1e4460675a5ac5b925a290eb03b1b Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期三, 04 六月 2025 11:32:32 +0800 Subject: [PATCH] analysi cross flow tooltips --- src/components/menu/TimeLine.vue | 37 +++++++++++++++++++------------------ 1 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/components/menu/TimeLine.vue b/src/components/menu/TimeLine.vue index 85f15d6..60ab295 100644 --- a/src/components/menu/TimeLine.vue +++ b/src/components/menu/TimeLine.vue @@ -59,7 +59,7 @@ @finish-calculation="handleFinishCalculation" style="margin-top: 12px; margin-left: 28px; margin-right: 10px;justify-content: flex-end;" /> <crossanalysis ref="crossRef" style="margin-top: 12px; margin-left: 16px; margin-right: 20px;justify-content: flex-end;" /> - + </div> <el-button @click="handleBack" style="margin-top: 3px; margin-left: 28px; margin-right: 10px;width: 75%;height: 30%;">缁撴潫妯℃嫙</el-button> </div> @@ -300,8 +300,8 @@ min: 10, max: 24.9, size: 0.7, - speed: 40, - density: 35, + speed: 28, + density: 23, color: '#ADD8E6' }, { @@ -309,8 +309,8 @@ min: 25, max: 49.9, size: 1.0, - speed: 70, - density: 60, + speed: 36, + density: 31, color: '#ADD8E6' }, { @@ -318,16 +318,16 @@ min: 50, max: 99.9, size: 1.3, - speed: 90, - density: 80, + speed: 42, + density: 39, color: '#ADD8E6' }, { name: '澶ф毚闆�', min: 100, size: 1.6, - speed: 110, - density: 100, + speed: 50, + density: 47, color: '#ADD8E6' } ]; @@ -339,7 +339,7 @@ } } // 榛樿鏃犻洦鐘舵�� - return { name: '鏃犻洦', size: 0.5, speed: 30, density: 20, color: '#F0F8FF' }; + return { name: '鏃犻洦', size: 0.3, speed: 10, density: 10, color: '#F0F8FF' }; } // 鏍规嵁鎾斁杩涘害鏇存柊澶╂皵鏁堟灉锛堝凡浼樺寲锛� let lastUsedIndex = -1; // 缂撳瓨涓婁竴娆′娇鐢ㄧ殑绱㈠紩锛岄槻姝㈤噸澶嶆洿鏂� @@ -355,7 +355,8 @@ const nextRain = rainFallValues.value[nextIndex]; // 鍚敤鎻掑�硷紙alpha 骞虫粦杩囨浮锛� const alpha = floatIndex - index; - const rainValue = currentRain + (nextRain - currentRain) * alpha; + // const rainValue = currentRain + (nextRain - currentRain) * alpha; + const rainValue = currentRain + (nextRain - currentRain) // 鎵撳嵃褰撳墠澶勭悊鐨勯洦閲忔暟鎹� // console.log(`姝e湪澶勭悊鐨勯洦閲忔暟鎹偣: 褰撳墠=${currentRain}, 涓嬩竴涓�=${nextRain}, 鎻掑�煎悗=${rainValue.toFixed(2)}, 绱㈠紩=${index}`); // 濡傛灉褰撳墠绱㈠紩鏈彉鍖栦笖鎻掑�煎樊寮備笉澶э紝璺宠繃閲嶅鏇存柊 @@ -370,12 +371,12 @@ // 鑾峰彇瀵瑰簲鐨勯洦褰㈤厤缃� const rainLevel = getRainLevel(rainValue); - if (rainLevel.name === '鏃犻洦') { - // 鏃犻洦鐘舵�侊細娓呴櫎闆ㄦ晥 - mapUtils.delRain(); - console.log('鎵ц浜嗘棤闆ㄧ姸鎬侊紝娓呴櫎浜嗛洦鏁�'); - return; - } + // if (rainLevel.name === '鏃犻洦') { + // // 鏃犻洦鐘舵�侊細娓呴櫎闆ㄦ晥 + // mapUtils.delRain(); + // console.log('鎵ц浜嗘棤闆ㄧ姸鎬侊紝娓呴櫎浜嗛洦鏁�'); + // return; + // } // 闈炴棤闆ㄧ姸鎬侊細鏋勫缓闆ㄦ淮鍙傛暟骞舵洿鏂伴洦鏁� const rainParams = { @@ -384,7 +385,7 @@ rainDensity: rainLevel.density, rainColor: rainLevel.color }; - // console.log('褰撳墠闆ㄩ噺鏁版嵁锛�', rainValue, '褰撳墠闆ㄥ舰锛�', rainLevel); + console.log('褰撳墠闆ㄩ噺鏁版嵁锛�', rainValue, '褰撳墠闆ㄥ舰锛�', rainLevel); // 璋冪敤宸ュ叿鏂规硶鏇存柊闆ㄦ晥 mapUtils.toggleRain(rainParams, true); } -- Gitblit v1.9.3