mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 12:49:17 +00:00
fix: optimize metrics association (#196)
This commit is contained in:
@@ -85,7 +85,7 @@ const Status = [
|
||||
const { t } = useI18n();
|
||||
const dashboardStore = useDashboardStore();
|
||||
const { graph, relatedTrace } = dashboardStore.selectedGrid;
|
||||
const traceOpt = (relatedTrace && relatedTrace.traceOpt) || {};
|
||||
const traceOpt = relatedTrace || {};
|
||||
const status = ref<string>(traceOpt.status || Status[0].value);
|
||||
const queryOrder = ref<string>(traceOpt.queryOrder || QueryOrders[0].value);
|
||||
const latency = ref<boolean>(traceOpt.latency || false);
|
||||
|
@@ -65,6 +65,7 @@ limitations under the License. -->
|
||||
metricConfig: data.metricConfig || [],
|
||||
filters: data.filters || {},
|
||||
relatedTrace: data.relatedTrace || {},
|
||||
associate: data.associate || [],
|
||||
}"
|
||||
:needQuery="needQuery"
|
||||
@click="clickHandle"
|
||||
|
@@ -45,6 +45,7 @@ defineProps({
|
||||
filters: Filters;
|
||||
relatedTrace: RelatedTrace;
|
||||
id: string;
|
||||
associate: { widgetId: string }[];
|
||||
}
|
||||
>,
|
||||
default: () => ({}),
|
||||
|
@@ -14,7 +14,12 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License. -->
|
||||
<template>
|
||||
<div class="graph" :class="isRight ? 'flex-h' : 'flex-v'">
|
||||
<Graph :option="option" @select="clickEvent" :filters="config.filters" />
|
||||
<Graph
|
||||
:option="option"
|
||||
@select="clickEvent"
|
||||
:filters="config.filters"
|
||||
:associate="config.associate || []"
|
||||
/>
|
||||
<Legend :config="config.legend" :data="data" :intervalTime="intervalTime" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -44,6 +49,7 @@ const props = defineProps({
|
||||
filters: Filters;
|
||||
relatedTrace: RelatedTrace;
|
||||
id: string;
|
||||
associate: { widgetId: string }[];
|
||||
}
|
||||
>,
|
||||
default: () => ({}),
|
||||
|
@@ -19,6 +19,7 @@ limitations under the License. -->
|
||||
@select="clickEvent"
|
||||
:filters="config.filters"
|
||||
:relatedTrace="config.relatedTrace"
|
||||
:associate="config.associate || []"
|
||||
/>
|
||||
<Legend :config="config.legend" :data="data" :intervalTime="intervalTime" />
|
||||
</div>
|
||||
@@ -50,6 +51,7 @@ const props = defineProps({
|
||||
filters?: Filters;
|
||||
relatedTrace?: RelatedTrace;
|
||||
id?: string;
|
||||
associate: { widgetId: string }[];
|
||||
}
|
||||
>,
|
||||
default: () => ({
|
||||
|
@@ -58,6 +58,7 @@ limitations under the License. -->
|
||||
:destroy-on-close="true"
|
||||
:before-close="() => (showTrace = false)"
|
||||
:append-to-body="true"
|
||||
title="The Related Traces"
|
||||
>
|
||||
<Trace :data="traceOptions" />
|
||||
</el-drawer>
|
||||
|
@@ -18,7 +18,7 @@ limitations under the License. -->
|
||||
<el-input size="small" v-model="traceId" class="trace-id" />
|
||||
</div>
|
||||
<div class="conditions flex-h" v-else>
|
||||
<el-radio-group v-model="conditions" @change="changeCondition">
|
||||
<el-radio-group v-model="conditions" @change="changeCondition" size="small">
|
||||
<el-radio-button
|
||||
v-for="(item, index) in items"
|
||||
:label="item.label"
|
||||
|
Reference in New Issue
Block a user