mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 16:27:33 +00:00
update config
This commit is contained in:
parent
d8c71343ce
commit
114d906834
@ -16,7 +16,7 @@ limitations under the License. -->
|
|||||||
<div class="chart" ref="chartRef" :style="`height:${height};width:${width};`">
|
<div class="chart" ref="chartRef" :style="`height:${height};width:${width};`">
|
||||||
<div v-if="!available" class="no-data">No Data</div>
|
<div v-if="!available" class="no-data">No Data</div>
|
||||||
<div class="menus" v-show="visMenus" ref="menus">
|
<div class="menus" v-show="visMenus" ref="menus">
|
||||||
<div class="tools" @click="associateMetrics">
|
<div class="tools" @click="associateMetrics" v-if="associate.length">
|
||||||
{{ t("associateMetrics") }}
|
{{ t("associateMetrics") }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -84,6 +84,10 @@ const props = defineProps({
|
|||||||
relatedTrace: {
|
relatedTrace: {
|
||||||
type: Object as PropType<RelatedTrace>,
|
type: Object as PropType<RelatedTrace>,
|
||||||
},
|
},
|
||||||
|
associate: {
|
||||||
|
type: Array as PropType<{ widgetId: string }[]>,
|
||||||
|
default: () => [],
|
||||||
|
},
|
||||||
});
|
});
|
||||||
const available = computed(
|
const available = computed(
|
||||||
() =>
|
() =>
|
||||||
|
@ -89,7 +89,6 @@ const traceOpt = relatedTrace || {};
|
|||||||
const status = ref<string>(traceOpt.status || Status[0].value);
|
const status = ref<string>(traceOpt.status || Status[0].value);
|
||||||
const queryOrder = ref<string>(traceOpt.queryOrder || QueryOrders[0].value);
|
const queryOrder = ref<string>(traceOpt.queryOrder || QueryOrders[0].value);
|
||||||
const latency = ref<boolean>(traceOpt.latency || false);
|
const latency = ref<boolean>(traceOpt.latency || false);
|
||||||
console.log(dashboardStore.selectedGrid.relatedTrace);
|
|
||||||
const enableRelate = ref<boolean>(traceOpt.enableRelate || false);
|
const enableRelate = ref<boolean>(traceOpt.enableRelate || false);
|
||||||
const type = ref<string>((graph && graph.type) || "");
|
const type = ref<string>((graph && graph.type) || "");
|
||||||
const refIdType = ref<string>(traceOpt.refIdType || "traceId");
|
const refIdType = ref<string>(traceOpt.refIdType || "traceId");
|
||||||
|
@ -65,6 +65,7 @@ limitations under the License. -->
|
|||||||
metricConfig: data.metricConfig || [],
|
metricConfig: data.metricConfig || [],
|
||||||
filters: data.filters || {},
|
filters: data.filters || {},
|
||||||
relatedTrace: data.relatedTrace || {},
|
relatedTrace: data.relatedTrace || {},
|
||||||
|
associate: data.associate || [],
|
||||||
}"
|
}"
|
||||||
:needQuery="needQuery"
|
:needQuery="needQuery"
|
||||||
@click="clickHandle"
|
@click="clickHandle"
|
||||||
|
@ -45,6 +45,7 @@ defineProps({
|
|||||||
filters: Filters;
|
filters: Filters;
|
||||||
relatedTrace: RelatedTrace;
|
relatedTrace: RelatedTrace;
|
||||||
id: string;
|
id: string;
|
||||||
|
associate: { widgetId: string }[];
|
||||||
}
|
}
|
||||||
>,
|
>,
|
||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
|
@ -14,7 +14,12 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License. -->
|
limitations under the License. -->
|
||||||
<template>
|
<template>
|
||||||
<div class="graph" :class="isRight ? 'flex-h' : 'flex-v'">
|
<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" />
|
<Legend :config="config.legend" :data="data" :intervalTime="intervalTime" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -44,6 +49,7 @@ const props = defineProps({
|
|||||||
filters: Filters;
|
filters: Filters;
|
||||||
relatedTrace: RelatedTrace;
|
relatedTrace: RelatedTrace;
|
||||||
id: string;
|
id: string;
|
||||||
|
associate: { widgetId: string }[];
|
||||||
}
|
}
|
||||||
>,
|
>,
|
||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
|
@ -19,6 +19,7 @@ limitations under the License. -->
|
|||||||
@select="clickEvent"
|
@select="clickEvent"
|
||||||
:filters="config.filters"
|
:filters="config.filters"
|
||||||
:relatedTrace="config.relatedTrace"
|
:relatedTrace="config.relatedTrace"
|
||||||
|
:associate="config.associate || []"
|
||||||
/>
|
/>
|
||||||
<Legend :config="config.legend" :data="data" :intervalTime="intervalTime" />
|
<Legend :config="config.legend" :data="data" :intervalTime="intervalTime" />
|
||||||
</div>
|
</div>
|
||||||
@ -50,6 +51,7 @@ const props = defineProps({
|
|||||||
filters?: Filters;
|
filters?: Filters;
|
||||||
relatedTrace?: RelatedTrace;
|
relatedTrace?: RelatedTrace;
|
||||||
id?: string;
|
id?: string;
|
||||||
|
associate: { widgetId: string }[];
|
||||||
}
|
}
|
||||||
>,
|
>,
|
||||||
default: () => ({
|
default: () => ({
|
||||||
|
Loading…
Reference in New Issue
Block a user