From f2959b30faaf6ad21f6c822b4683f5713b47d003 Mon Sep 17 00:00:00 2001 From: xxm Date: Mon, 17 Aug 2026 08:49:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20th=E5=87=BD=E6=95=B0=E5=8A=A0=5FcolBtnsO?= =?UTF-8?q?n=E5=BC=80=E5=85=B3+=E6=B8=B2=E6=9F=93=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE(=E7=AC=AC=E4=B8=80=E4=B8=AA=E8=A1=A8?= =?UTF-8?q?=E6=A0=BCA=E8=82=A1=E5=BD=93=E5=89=8D=E5=B8=82=E6=89=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=3F=C2=A7=E6=8C=89=E9=92=AE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index 72335bb9..af5c4f82 100644 --- a/static/index.html +++ b/static/index.html @@ -2516,9 +2516,11 @@ function renderStrategyTable(strategies) { }; const th = (key, label, cls, title, colKey) => { const arrow = window._sortKey === key ? (window._sortDir === 'desc' ? '▼' : '▲') : ''; - const helpBtns = colKey ? `§` : ''; + // 2026-08-17 老莫:?§按钮只保留第一个表格表头(_colBtnsOn 控制) + const showBtns = colKey && window._colBtnsOn !== false; + const helpBtns = showBtns ? `§` : ''; // 2026-08-17 老莫:ⓘ§按钮放第二行(spec-th-row),列名一行保持列宽,避免横向滚动条 - const thInner = colKey + const thInner = showBtns ? `
${label}${arrow ? ' ' + arrow : ''}
${helpBtns}
` : `${label}${arrow ? ' ' + arrow : ''}`; return `${thInner}`; @@ -2851,8 +2853,11 @@ function renderStrategyTable(strategies) { return ' · 温度: ' + bandIcon + ' ' + bandName + '' + (hasRsi && reg.temp_rsi ? ' RSI=' + reg.temp_rsi + '' : ''); }; let html = ''; + // 2026-08-17 老莫:?§按钮只保留第一个表格(A股当前市)表头 + window._colBtnsOn = true; // 头两个:A股当前市 + 港股当前市(标题尾部带温度) if (aCur) html += renderRegimeTable(aStrats, aCur, true, '🇨🇳 A股', tempHtml(regA, true)); + window._colBtnsOn = false; if (hkCur) html += renderRegimeTable(hkStrats, hkCur, true, '🇭🇰 港股', tempHtml(regHK, false)); // 后四个:A股其他2市 + 港股其他2市 for (const rg of REGIME_ORDER) if (rg !== aCur) html += renderRegimeTable(aStrats, rg, false, '🇨🇳 A股', '');