fix: 研究Tab备选表格错位——备选行直接进tbody加data-bk(列宽与表头对齐),去掉嵌套table, toggleBackup切换data-bk行
This commit is contained in:
+6
-7
@@ -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市,
|
||||
// 每表格列出该市场在该温区有数据的所有可用策略(含未激活,按该温区胜率降序),激活策略高亮;温度并入当前市标题尾部
|
||||
|
||||
Reference in New Issue
Block a user