diff --git a/static/index.html b/static/index.html index 78f9789a..746b68dc 100644 --- a/static/index.html +++ b/static/index.html @@ -2827,14 +2827,13 @@ function renderStrategyTable(strategies) { })(); }; // ── 2026-08-17 备选区展开/折叠(老莫)── - window.toggleBackup = function(key) { - const body = document.getElementById('bk-body-' + key); + window.toggleBackup = function(key) { + const rows = document.querySelectorAll('[data-bk="' + key + '"]'); const arrow = document.getElementById('bk-arrow-' + key); - if (body) { - const hidden = body.classList.contains('hidden'); - body.classList.toggle('hidden'); - if (arrow) arrow.textContent = hidden ? '▼' : '▶'; - } + if (!rows.length) { if (arrow) arrow.textContent = '\u25b6'; return; } + const hidden = rows[0].classList.contains('hidden'); + rows.forEach(r => r.classList.toggle('hidden')); + if (arrow) arrow.textContent = hidden ? '\u25bc' : '\u25b6'; }; // ── 2026-08-15 按市场×温区展示:6表格 = A股当前市 → 港股当前市 → A股其他2市 → 港股其他2市, // 每表格列出该市场在该温区有数据的所有可用策略(含未激活,按该温区胜率降序),激活策略高亮;温度并入当前市标题尾部