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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user