mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-20 14:37:34 +00:00
fix param
This commit is contained in:
parent
e95a4d6c41
commit
37aab6f41f
@ -125,7 +125,6 @@ function changeMetric(val: string) {
|
|||||||
calculation: "",
|
calculation: "",
|
||||||
...config[index],
|
...config[index],
|
||||||
};
|
};
|
||||||
console.log(currentConfig.value);
|
|
||||||
}
|
}
|
||||||
watch(
|
watch(
|
||||||
() => props.type,
|
() => props.type,
|
||||||
@ -143,7 +142,6 @@ watch(
|
|||||||
calculation: "",
|
calculation: "",
|
||||||
...config[0],
|
...config[0],
|
||||||
};
|
};
|
||||||
console.log(config);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
@ -403,6 +403,7 @@ function updateSettings(config?: { [key: string]: MetricConfigOpt[] }) {
|
|||||||
(d: any) => d.name && d.value && d.condition
|
(d: any) => d.name && d.value && d.condition
|
||||||
);
|
);
|
||||||
const param = {
|
const param = {
|
||||||
|
...dashboardStore.selectedGrid,
|
||||||
linkDashboard: states.linkDashboard,
|
linkDashboard: states.linkDashboard,
|
||||||
nodeDashboard: isService
|
nodeDashboard: isService
|
||||||
? items.filter((d: { scope: string; dashboard: string }) => d.dashboard)
|
? items.filter((d: { scope: string; dashboard: string }) => d.dashboard)
|
||||||
@ -413,8 +414,8 @@ function updateSettings(config?: { [key: string]: MetricConfigOpt[] }) {
|
|||||||
legend: metrics,
|
legend: metrics,
|
||||||
...config,
|
...config,
|
||||||
};
|
};
|
||||||
dashboardStore.selectWidget({ ...dashboardStore.selectedGrid, ...param });
|
dashboardStore.selectWidget(param);
|
||||||
dashboardStore.setConfigs({ ...dashboardStore.selectedGrid, ...param });
|
dashboardStore.setConfigs(param);
|
||||||
emit("update", param);
|
emit("update", param);
|
||||||
}
|
}
|
||||||
function updateLinkServerMetrics(options: Option[] | any) {
|
function updateLinkServerMetrics(options: Option[] | any) {
|
||||||
|
Loading…
Reference in New Issue
Block a user