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 '