mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 16:27:33 +00:00
merge
This commit is contained in:
commit
56db2b67d8
@ -161,7 +161,7 @@ const msg = {
|
||||
apisix: "APISIX",
|
||||
viewTrace: "View Related Traces",
|
||||
relatedTraceOptions: "Related Trace Options",
|
||||
setLatencyDuration: "Delay Related Metrics",
|
||||
setLatencyDuration: "Latency Related Metrics",
|
||||
queryOrder: "Query Order",
|
||||
latency: "Latency",
|
||||
metricValues: "Metric Values",
|
||||
|
@ -67,7 +67,7 @@ const dashboardStore = useDashboardStore();
|
||||
const traceOpt = dashboardStore.selectedGrid.relatedTrace || {};
|
||||
const status = ref<string>(traceOpt.status || Status[0].value);
|
||||
const queryOrder = ref<string>(traceOpt.queryOrder || QueryOrders[0].value);
|
||||
const latency = ref<boolean>(traceOpt.setLatencyDuration || false);
|
||||
const latency = ref<boolean>(traceOpt.latency || false);
|
||||
const enableRelate = ref<boolean>(traceOpt.enableRelate || false);
|
||||
|
||||
function updateConfig(param: { [key: string]: unknown }) {
|
||||
|
@ -127,7 +127,10 @@ init();
|
||||
|
||||
async function init() {
|
||||
for (const d of Object.keys(filters)) {
|
||||
if (filters[d] && ["status", "queryOrder", "latency"].includes(d)) {
|
||||
if (
|
||||
["status", "queryOrder"].includes(d) ||
|
||||
(filters[d] && d === "latency")
|
||||
) {
|
||||
items.value.push({ label: d, value: FiltersKeys[d] });
|
||||
}
|
||||
}
|
||||
@ -212,7 +215,11 @@ function setCondition() {
|
||||
serviceInstanceId: state.instance || undefined,
|
||||
};
|
||||
for (const k of items.value) {
|
||||
if (k.label === conditions.value && FiltersKeys[k.label]) {
|
||||
if (
|
||||
k.label === conditions.value &&
|
||||
FiltersKeys[k.label] &&
|
||||
filters[k.label]
|
||||
) {
|
||||
params[k.value] = filters[k.label];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user