From 983b998f31f0bd3bb0472be55d3d9864f52cd21d Mon Sep 17 00:00:00 2001 From: xxm Date: Sun, 16 Aug 2026 09:08:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=A9=E5=8C=BA=E8=A1=A8=E6=AF=8F?= =?UTF-8?q?=E8=A1=8C=E7=8A=B6=E6=80=81=E6=8C=89=E8=AF=A5=E8=A1=A8=E6=B8=A9?= =?UTF-8?q?=E5=8C=BA(rg)=E7=8B=AC=E7=AB=8B=E5=88=A4=E5=AE=9A=E2=80=94?= =?UTF-8?q?=E2=80=94=E5=8F=AF=E6=BF=80=E6=B4=BB/=E5=8F=AF=E7=94=A8/?= =?UTF-8?q?=E4=B8=8D=E5=90=88=E6=A0=BC/=E6=89=8B=E5=8A=A8=E5=81=9C?= =?UTF-8?q?=E7=94=A8=E5=9B=9B=E6=80=81,=E6=9B=BF=E4=BB=A3=E5=85=A8?= =?UTF-8?q?=E5=B1=80isActive(=E8=80=81=E8=8E=AB=E5=8F=8D=E5=A4=8D=E5=BC=BA?= =?UTF-8?q?=E8=B0=83)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/static/index.html b/static/index.html index db4ff580..248cd2e6 100644 --- a/static/index.html +++ b/static/index.html @@ -2541,9 +2541,20 @@ function renderStrategyTable(strategies) { const ddV = rwPf ? rwPf.portfolio_max_dd_pct : null; const univ = rw.universality ? rw.universality.score : null; const univM = rw.universality ? (rw.universality.months + '/' + (rw.universality.regime_total_months || '?')) : null; - const isActive = s.current === true; - return '' + - '' + s.version + (isActive ? ' 激活' : '') + ((s.market && s.market !== 'all') ? ' ' + (s.market === 'hk' ? '港' : 'A') + '' : '') + '' + + // ── 2026-08-16 行状态按【该表温区 rg】独立判定(老莫反复强调:每温区表显示该温区下的资格状态)── + const qg = (s.qualification || {})[rg]; + const rLong = qg && qg.long_ok, rMid = qg && qg.mid_ok, rShort = qg && qg.short_ok; + const r3 = rLong && rMid && rShort; // 三项全过 + const r2 = rLong && rMid; // 长期+近期 + const rManual = s.manual_available !== false; + let rState, rStateCls, rStateBadge, rRowBg; + if (!rManual) { rState = 'manual_off'; rStateCls = 'text-slate-500'; rStateBadge = '手动停用'; rRowBg = 'opacity-50'; } + else if (r3) { rState = 'ok3'; rStateCls = 'text-emerald-400'; rStateBadge = '可激活'; rRowBg = 'bg-emerald-900/10'; } + else if (r2) { rState = 'ok2'; rStateCls = 'text-blue-400'; rStateBadge = '可用'; rRowBg = ''; } + else { rState = 'bad'; rStateCls = 'text-red-400/80'; rStateBadge = '不合格'; rRowBg = 'opacity-60'; } + const isActive = rState === 'ok3'; + return '' + + '' + s.version + ' ' + rStateBadge + ((s.market && s.market !== 'all') ? ' ' + (s.market === 'hk' ? '港' : 'A') + '' : '') + '' + '' + (s.name || '') + (smallSample ? ' ⚠️' : '') + '' + // 2026-08-16 资格列:长期/近期/当下 三项达标徽章 '' + (s.qualification && s.qualification[rg] ? (