From 0da2c838c2822a0fb91cc8c72d09f1b514e22deb Mon Sep 17 00:00:00 2001 From: yarnom Date: Tue, 23 Sep 2025 09:32:30 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat:=20=E6=96=B0=E5=A2=9E=E9=9B=B7?= =?UTF-8?q?=E8=BE=BE=E5=9B=BE"=20-=20=E4=BD=BF=E7=94=A8=E4=BA=86=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E6=96=B9=E6=B3=95=EF=BC=8C=E7=BB=88=E6=AD=A2?= =?UTF-8?q?=E6=AD=A4=E7=89=B9=E6=80=A7=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 317e12900a663ff4c1387b3430c660303a4e3462. --- templates/index.html | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/templates/index.html b/templates/index.html index 453a7d5..e3c6bf4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -676,21 +676,7 @@ const data = await res.json(); const meta = data.meta || {}; const images = data.images || {}; - var ts = meta.timestamp_local || '未知'; - var z = meta.z != null ? meta.z : null; - var y = meta.y != null ? meta.y : null; - var x = meta.x != null ? meta.x : null; - var b = meta.bounds || {}; - var west = (typeof b.west === 'number') ? b.west : null; - var south = (typeof b.south === 'number') ? b.south : null; - var east = (typeof b.east === 'number') ? b.east : null; - var north = (typeof b.north === 'number') ? b.north : null; - var html = '
' - + '
时间(南宁):'+ts+'
' - + (z!=null && y!=null && x!=null ? ('
Tile z/y/x:'+z+'/'+y+'/'+x+'
') : '') - + ((west!=null && south!=null && east!=null && north!=null) ? ('
CMA BIN 边界:['+west.toFixed(4)+', '+south.toFixed(4)+'] ~ ['+east.toFixed(4)+', '+north.toFixed(4)+']
') : '') - + '
'; - infoEl.innerHTML = html; + infoEl.textContent = '时间: ' + (meta.timestamp_local || '未知'); window.RadarLatestImages = images; setRadarImage('china'); bindRadarTabs(); @@ -734,7 +720,7 @@ window.RadarLatestGrid = data; renderPlotlyHeat(data); renderClustersPanel(); - //renderMethodNote(); + renderMethodNote(); renderWindResults(); } @@ -891,10 +877,10 @@ function renderMethodNote(){ root.appendChild(sec); parent = sec; } - var html = '
10m
'; + var html = '
风场查询结果(彩云 10m 实况)
'; // cluster summary if (clusters.length) { - html += '
云团:
'; + html += '
云团汇总:
'; html += '
'; clusters.forEach(function(cl){ html += '
' @@ -910,7 +896,7 @@ function renderMethodNote(){ (cands||[]).forEach(function(co){ candByCluster[co.cluster_id] = co; }); var comings = (clusters||[]).filter(function(cl){ return cl.coming; }); if (comings.length) { - html += '
朝向云团
'; + html += '
朝向云团(极坐标计算明细)
'; comings.forEach(function(cl){ var co = candByCluster[cl.cluster_id] || {}; var w = co.wind || {};