fix topn metircs

This commit is contained in:
Qiuxia Fan 2022-03-21 13:31:51 +08:00
parent a78d8ea2d4
commit 88c996aa9d
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ export function useQueryProcessor(config: any) {
variables.push(`$condition${index}: TopNCondition!`); variables.push(`$condition${index}: TopNCondition!`);
conditions[`condition${index}`] = { conditions[`condition${index}`] = {
name, name,
parentService: ["Service", "All"].includes(dashboardStore.entity) parentService: ["All"].includes(dashboardStore.entity)
? null ? null
: selectorStore.currentService.value, : selectorStore.currentService.value,
normal: selectorStore.currentService.normal, normal: selectorStore.currentService.normal,

View File

@ -213,7 +213,7 @@ function handleNodeClick(d: Node & { x: number; y: number }) {
topologyStore.setNode(d); topologyStore.setNode(d);
topologyStore.setLink(null); topologyStore.setLink(null);
operationsPos.x = d.x; operationsPos.x = d.x;
operationsPos.y = d.y + 30; operationsPos.y = d.y - 60;
if (d.layer === String(dashboardStore.layerId)) { if (d.layer === String(dashboardStore.layerId)) {
return; return;
} }