fix(reject-history): resolve SPEC→WORKCENTER via lookup and fix Pareto reactivity

SQL CTEs now join on SPECNAME instead of WORKCENTERNAME to resolve
correct WORKCENTER/GROUP from DW_MES_SPEC_WORKCENTER_V, fixing cases
where the raw WORKCENTERNAME was mismatched (e.g. W/B-END with 成型_料).
WORKCENTER_GROUP filter converts groups→specs via cached mapping before
querying. Pareto chart now recalculates on legend toggle by spreading
the ECharts selected object to trigger Vue reactivity.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
egg
2026-02-22 14:31:02 +08:00
parent 5f6e2a5ce0
commit 33ef58f833
5 changed files with 99 additions and 21 deletions

View File

@@ -568,7 +568,9 @@ function onTrendDateClick(dateStr) {
}
function onTrendLegendChange(selected) {
trendLegendSelected.value = selected;
// Spread to create a new object — ECharts reuses the same internal reference,
// and Vue's ref setter skips trigger when Object.is(old, new) is true.
trendLegendSelected.value = { ...selected };
page.value = 1;
updateUrlState();
void loadListOnly();