fix: 可用判定放宽——近期过(mid_ok或short_ok)即可用,含长期不过但近期过(叉勾勾),仅近期也不行才不合格
This commit is contained in:
+3
-3
@@ -2541,16 +2541,16 @@ function renderStrategyTable(strategies) {
|
|||||||
const ddV = rwPf ? rwPf.portfolio_max_dd_pct : null;
|
const ddV = rwPf ? rwPf.portfolio_max_dd_pct : null;
|
||||||
const univ = rw.universality ? rw.universality.score : null;
|
const univ = rw.universality ? rw.universality.score : null;
|
||||||
const univM = rw.universality ? (rw.universality.months + '/' + (rw.universality.regime_total_months || '?')) : null;
|
const univM = rw.universality ? (rw.universality.months + '/' + (rw.universality.regime_total_months || '?')) : null;
|
||||||
// ── 2026-08-16 行状态按【该表温区 rg】独立判定(老莫反复强调:每温区表显示该温区下的资格状态)──
|
// ── 2026-08-16 行状态按【该表温区 rg】独立判定(老莫反复强调)──
|
||||||
const qg = (s.qualification || {})[rg];
|
const qg = (s.qualification || {})[rg];
|
||||||
const rLong = qg && qg.long_ok, rMid = qg && qg.mid_ok, rShort = qg && qg.short_ok;
|
const rLong = qg && qg.long_ok, rMid = qg && qg.mid_ok, rShort = qg && qg.short_ok;
|
||||||
const r3 = rLong && rMid && rShort; // 三项全过
|
const r3 = rLong && rMid && rShort; // 三项全过
|
||||||
const r2 = rLong && rMid; // 长期+近期
|
const rNearOk = rMid || rShort; // 近期有亮点(含长期不过但近期过:❌❌✅/❌✅✅)
|
||||||
const rManual = s.manual_available !== false;
|
const rManual = s.manual_available !== false;
|
||||||
let rState, rStateCls, rStateBadge, rRowBg;
|
let rState, rStateCls, rStateBadge, rRowBg;
|
||||||
if (!rManual) { rState = 'manual_off'; rStateCls = 'text-slate-500'; rStateBadge = '<span class="text-[10px] bg-slate-500/20 text-slate-400 px-1 rounded">手动停用</span>'; rRowBg = 'opacity-50'; }
|
if (!rManual) { rState = 'manual_off'; rStateCls = 'text-slate-500'; rStateBadge = '<span class="text-[10px] bg-slate-500/20 text-slate-400 px-1 rounded">手动停用</span>'; rRowBg = 'opacity-50'; }
|
||||||
else if (r3) { rState = 'ok3'; rStateCls = 'text-emerald-400'; rStateBadge = '<span class="text-[10px] bg-emerald-500/20 text-emerald-300 px-1 rounded">可激活</span>'; rRowBg = 'bg-emerald-900/10'; }
|
else if (r3) { rState = 'ok3'; rStateCls = 'text-emerald-400'; rStateBadge = '<span class="text-[10px] bg-emerald-500/20 text-emerald-300 px-1 rounded">可激活</span>'; rRowBg = 'bg-emerald-900/10'; }
|
||||||
else if (r2) { rState = 'ok2'; rStateCls = 'text-blue-400'; rStateBadge = '<span class="text-[10px] bg-blue-500/20 text-blue-300 px-1 rounded">可用</span>'; rRowBg = ''; }
|
else if (rNearOk) { rState = 'ok2'; rStateCls = 'text-blue-400'; rStateBadge = '<span class="text-[10px] bg-blue-500/20 text-blue-300 px-1 rounded">可用</span>'; rRowBg = ''; }
|
||||||
else { rState = 'bad'; rStateCls = 'text-red-400/80'; rStateBadge = '<span class="text-[10px] bg-red-500/20 text-red-300 px-1 rounded">不合格</span>'; rRowBg = 'opacity-60'; }
|
else { rState = 'bad'; rStateCls = 'text-red-400/80'; rStateBadge = '<span class="text-[10px] bg-red-500/20 text-red-300 px-1 rounded">不合格</span>'; rRowBg = 'opacity-60'; }
|
||||||
const isActive = rState === 'ok3';
|
const isActive = rState === 'ok3';
|
||||||
return '<tr class="border-b border-slate-800/50 hover:bg-slate-800/30 cursor-pointer ' + rRowBg + '" onclick="showStrategyDetail(\'' + s.version + '\')">' +
|
return '<tr class="border-b border-slate-800/50 hover:bg-slate-800/30 cursor-pointer ' + rRowBg + '" onclick="showStrategyDetail(\'' + s.version + '\')">' +
|
||||||
|
|||||||
Reference in New Issue
Block a user