feat: add weight config panel to 新建评估 and weighted_score card to report

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-18 17:28:15 +08:00
parent 36e5506e2a
commit f9e3ba0f64
4 changed files with 135 additions and 24 deletions

View File

@@ -127,6 +127,18 @@ const Report = {
`;
wrap.appendChild(card);
});
// 综合加权得分卡片
const wsValue = (report && report.weighted_score_mean !== undefined) ? report.weighted_score_mean : null;
const wsCard = document.createElement("div");
wsCard.className = "metric-card weighted-score-card";
const wsCls = App.scoreClass(wsValue);
const wsText = wsValue === null || wsValue === undefined ? "n/a" : wsValue.toFixed(2);
wsCard.innerHTML = `
<div class="metric-value ${wsCls}">${wsText}</div>
<div class="metric-name">综合加权得分</div>
`;
wrap.appendChild(wsCard);
},
// ② 分数分布直方图(可切换指标)。