diff --git a/src/views/dashboard/related/trace/components/D3Graph/Index.vue b/src/views/dashboard/related/trace/components/D3Graph/Index.vue index 76dfa368..78d71e09 100644 --- a/src/views/dashboard/related/trace/components/D3Graph/Index.vue +++ b/src/views/dashboard/related/trace/components/D3Graph/Index.vue @@ -26,7 +26,7 @@ limitations under the License. -->
-
Span details
+
Span details
{{ `Parent span: ${span.endpointName} -> Start time: ${visDate(span.startTime)}` }}
@@ -166,6 +166,10 @@ limitations under the License. --> } tree.value.highlightParents(span); } + function viewSpanDetails() { + showDetail.value = true; + hideActionBox(); + } function setTableSpanStyle(span: Recordable) { const itemDom: any = document.querySelector(`.trace-item-${span.key}`); const items: any = document.querySelectorAll(".trace-item"); @@ -173,6 +177,9 @@ limitations under the License. --> item.style.background = appStore.theme === Themes.Dark ? "#212224" : "#fff"; } itemDom.style.background = appStore.theme === Themes.Dark ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.1)"; + hideActionBox(); + } + function hideActionBox() { const box: any = document.querySelector("#trace-action-box"); box.style.display = "none"; }