mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 10:05:24 +00:00
fix: update
This commit is contained in:
parent
e21c65b65f
commit
ed93a1b8f0
@ -204,7 +204,7 @@ limitations under the License. -->
|
|||||||
if (props.data.filters && props.data.filters.id) {
|
if (props.data.filters && props.data.filters.id) {
|
||||||
param = {
|
param = {
|
||||||
...param,
|
...param,
|
||||||
serviceId: props.data.filters.id || undefined,
|
serviceId: props.data.filters.id && props.data.filters.id !== "0" ? props.data.filters.id : undefined,
|
||||||
endpointId: state.endpoint.id || undefined,
|
endpointId: state.endpoint.id || undefined,
|
||||||
serviceInstanceId: state.instance.id || undefined,
|
serviceInstanceId: state.instance.id || undefined,
|
||||||
};
|
};
|
||||||
|
@ -43,13 +43,8 @@ limitations under the License. -->
|
|||||||
<span class="g-sm-8 wba">{{ currentSpan.isError }}</span>
|
<span class="g-sm-8 wba">{{ currentSpan.isError }}</span>
|
||||||
</div>
|
</div>
|
||||||
<h5 class="mb-10" v-if="diffRefs.length"> {{ t("traceID") }}. </h5>
|
<h5 class="mb-10" v-if="diffRefs.length"> {{ t("traceID") }}. </h5>
|
||||||
<div class="mb-10 clear item" v-for="(item, index) in diffRefs" :key="item.traceId">
|
<div class="mb-10 clear item" v-for="item in diffRefs" :key="item.traceId">
|
||||||
<span class="g-sm-4 grey">No.{{ index + 1 }}</span>
|
<span class="g-sm-12 wba cp link" @click="viewRelateTrace(item)">
|
||||||
<span
|
|
||||||
class="g-sm-8 wba cp"
|
|
||||||
:class="dashboardStore.entity === EntityType[1].value ? 'link' : ''"
|
|
||||||
@click="viewRelateTrace(item)"
|
|
||||||
>
|
|
||||||
{{ item.traceId }}
|
{{ item.traceId }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -153,7 +148,6 @@ limitations under the License. -->
|
|||||||
import { useDashboardStore } from "@/store/modules/dashboard";
|
import { useDashboardStore } from "@/store/modules/dashboard";
|
||||||
import { WidgetType } from "@/views/dashboard/data";
|
import { WidgetType } from "@/views/dashboard/data";
|
||||||
import type { LayoutConfig } from "@/types/dashboard";
|
import type { LayoutConfig } from "@/types/dashboard";
|
||||||
import { EntityType } from "@/views/dashboard/data";
|
|
||||||
|
|
||||||
/*global defineProps, Nullable, Recordable */
|
/*global defineProps, Nullable, Recordable */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@ -239,15 +233,12 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
|
|
||||||
function viewRelateTrace(item: Recordable) {
|
function viewRelateTrace(item: Recordable) {
|
||||||
if (dashboardStore.entity !== EntityType[1].value) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const { associationWidget } = getDashboard(dashboardStore.currentDashboard);
|
const { associationWidget } = getDashboard(dashboardStore.currentDashboard);
|
||||||
associationWidget(
|
associationWidget(
|
||||||
(options.id as any) || "",
|
(options.id as any) || "",
|
||||||
{
|
{
|
||||||
sourceId: options.id || "",
|
sourceId: options.id || "",
|
||||||
traceId: item.traceId,
|
traceId: item.traceId || "",
|
||||||
id: "0",
|
id: "0",
|
||||||
},
|
},
|
||||||
WidgetType.Trace,
|
WidgetType.Trace,
|
||||||
|
Loading…
Reference in New Issue
Block a user