From 88c996aa9dc78b590cf1cef5b408b80a09172df4 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Mon, 21 Mar 2022 13:31:51 +0800 Subject: [PATCH] fix topn metircs --- src/hooks/useProcessor.ts | 2 +- src/views/dashboard/related/topology/components/Graph.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useProcessor.ts b/src/hooks/useProcessor.ts index 6d5560da..bd6632c2 100644 --- a/src/hooks/useProcessor.ts +++ b/src/hooks/useProcessor.ts @@ -57,7 +57,7 @@ export function useQueryProcessor(config: any) { variables.push(`$condition${index}: TopNCondition!`); conditions[`condition${index}`] = { name, - parentService: ["Service", "All"].includes(dashboardStore.entity) + parentService: ["All"].includes(dashboardStore.entity) ? null : selectorStore.currentService.value, normal: selectorStore.currentService.normal, diff --git a/src/views/dashboard/related/topology/components/Graph.vue b/src/views/dashboard/related/topology/components/Graph.vue index 06171276..5f69ec99 100644 --- a/src/views/dashboard/related/topology/components/Graph.vue +++ b/src/views/dashboard/related/topology/components/Graph.vue @@ -213,7 +213,7 @@ function handleNodeClick(d: Node & { x: number; y: number }) { topologyStore.setNode(d); topologyStore.setLink(null); operationsPos.x = d.x; - operationsPos.y = d.y + 30; + operationsPos.y = d.y - 60; if (d.layer === String(dashboardStore.layerId)) { return; }