From 32df0644304fff2b58e16d5b6a74b91062d0b6f8 Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 18 Aug 2026 01:48:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=89=8D=E7=AB=AF=E6=B8=A9=E5=8C=BA?= =?UTF-8?q?=E8=A1=A8=E5=B7=B2=E6=BF=80=E6=B4=BB=E6=94=B9=E4=B8=BA=E6=8C=89?= =?UTF-8?q?=E6=B8=A9=E5=8C=BA=E5=88=A4=E5=AE=9A(current=5Fregimes.includes?= =?UTF-8?q?(rg))=E2=80=94=E2=80=94=E6=B6=88=E9=99=A4choppy=E8=A1=A8?= =?UTF-8?q?=E8=AF=AF=E6=98=BEv=5Flurk=5Fv3,=20v=5Flurk=5Fv2=E5=9C=A8choppy?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E6=98=BE=E7=A4=BA=E5=B7=B2=E6=BF=80=E6=B4=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/static/index.html b/static/index.html index 7eae1491..db602fb1 100644 --- a/static/index.html +++ b/static/index.html @@ -2690,8 +2690,9 @@ function renderStrategyTable(strategies) { // 评分 = 不合格(≥2叉)/待观察(1叉)/合格/良好/优秀(3勾+综合分区间) const rGrade = gradeOf(qg, comp); let rStateCls, rStateBadge, rRowBg; + const _rgActive = (s.current_regimes || []).includes(rg); // 该策略在当前表温区激活 if (!rManual) { rStateCls = 'text-slate-500'; rStateBadge = '手动停用'; rRowBg = 'opacity-50'; } - else if (s.current === true) { + else if (_rgActive) { rStateCls = 'text-emerald-400'; rStateBadge = '已激活'; rRowBg = 'bg-emerald-900/15'; @@ -2701,7 +2702,8 @@ function renderStrategyTable(strategies) { rRowBg = ''; } const rGradeBadge = rGrade && rGrade !== 'ok' && rGrade !== 'good' && rGrade !== 'great' ? '' : ''; - const isActive = s.current === true; + // 2026-08-18 按温区判定激活(而非全局 s.current)——该策略在当前表温区 rg 是否激活 + const isActive = (s.current_regimes || []).includes(rg); const _bkAttr = bkKey ? ' data-bk="' + bkKey + '" class="hidden"' : ''; return '' + '' + s.version + ' ' + rStateBadge + ((s.market && s.market !== 'all') ? ' ' + (s.market === 'hk' ? '港' : 'A') + '' : '') + '' + @@ -2807,8 +2809,9 @@ function renderStrategyTable(strategies) { '操作' + // ── 2026-08-17 分区(老莫):上区=已激活,下区=备选(资格达标未激活),默认折叠 ── (() => { - const active = metas.filter(s => s.current === true); - const backup = metas.filter(s => s.current !== true); + const _isAct = (s) => (s.current_regimes || []).includes(rg); + const active = metas.filter(_isAct); + const backup = metas.filter(s => !_isAct(s)); let html = ''; if (active.length) { html += '✅ 已激活 (' + active.length + ')';