From ddb4acf9dd927128d4e5b3e4c22efc977e5e6b34 Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 18 Aug 2026 00:22:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A0=94=E7=A9=B6Tab=E5=A4=87=E9=80=89?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E9=94=99=E4=BD=8D=E2=80=94=E2=80=94=E5=A4=87?= =?UTF-8?q?=E9=80=89=E8=A1=8C=E7=9B=B4=E6=8E=A5=E8=BF=9Btbody=E5=8A=A0data?= =?UTF-8?q?-bk(=E5=88=97=E5=AE=BD=E4=B8=8E=E8=A1=A8=E5=A4=B4=E5=AF=B9?= =?UTF-8?q?=E9=BD=90),=E5=8E=BB=E6=8E=89=E5=B5=8C=E5=A5=97table,=20toggleB?= =?UTF-8?q?ackup=E5=88=87=E6=8D=A2data-bk=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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市, // 每表格列出该市场在该温区有数据的所有可用策略(含未激活,按该温区胜率降序),激活策略高亮;温度并入当前市标题尾部