mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 20:33:16 +00:00
fix: set the value(SECOND) of the step
filed for queries (#131)
This commit is contained in:
parent
3b3e790dd9
commit
b01565b2b8
@ -139,7 +139,19 @@ function associateTraceLog(
|
|||||||
};
|
};
|
||||||
dashboardStore.setWidget(item);
|
dashboardStore.setWidget(item);
|
||||||
} else {
|
} else {
|
||||||
const { start, end } = setEndTime(i.start, i.end);
|
let step = appStore.duration.step;
|
||||||
|
let start = i.start;
|
||||||
|
let end = i.end;
|
||||||
|
if (
|
||||||
|
appStore.duration.step === "MINUTE" &&
|
||||||
|
i.end.getTime() - i.start.getTime() < 60000
|
||||||
|
) {
|
||||||
|
step = "SECOND";
|
||||||
|
} else {
|
||||||
|
const times = setEndTime(i.start, i.end);
|
||||||
|
start = times.start;
|
||||||
|
end = times.end;
|
||||||
|
}
|
||||||
const item = {
|
const item = {
|
||||||
...widget,
|
...widget,
|
||||||
filters: {
|
filters: {
|
||||||
@ -147,15 +159,11 @@ function associateTraceLog(
|
|||||||
duration: {
|
duration: {
|
||||||
start: dateFormatStep(
|
start: dateFormatStep(
|
||||||
getLocalTime(appStore.utc, start),
|
getLocalTime(appStore.utc, start),
|
||||||
appStore.duration.step,
|
step,
|
||||||
true
|
true
|
||||||
),
|
),
|
||||||
end: dateFormatStep(
|
end: dateFormatStep(getLocalTime(appStore.utc, end), step, true),
|
||||||
getLocalTime(appStore.utc, end),
|
step,
|
||||||
appStore.duration.step,
|
|
||||||
true
|
|
||||||
),
|
|
||||||
step: appStore.duration.step,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -271,7 +271,7 @@ function searchLogs() {
|
|||||||
: state.service.id,
|
: state.service.id,
|
||||||
endpointId: endpoint || state.endpoint.id || undefined,
|
endpointId: endpoint || state.endpoint.id || undefined,
|
||||||
serviceInstanceId: instance || state.instance.id || undefined,
|
serviceInstanceId: instance || state.instance.id || undefined,
|
||||||
queryDuration: appStore.durationTime,
|
queryDuration: duration.value,
|
||||||
keywordsOfContent: keywordsOfContent.value,
|
keywordsOfContent: keywordsOfContent.value,
|
||||||
excludingKeywordsOfContent: excludingKeywordsOfContent.value,
|
excludingKeywordsOfContent: excludingKeywordsOfContent.value,
|
||||||
tags: tagsMap.value.length ? tagsMap.value : undefined,
|
tags: tagsMap.value.length ? tagsMap.value : undefined,
|
||||||
@ -344,13 +344,6 @@ function removeExcludeContent(index: number) {
|
|||||||
}
|
}
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
logStore.resetState();
|
logStore.resetState();
|
||||||
const item = {
|
|
||||||
...props.data,
|
|
||||||
filters: undefined,
|
|
||||||
};
|
|
||||||
dashboardStore.setWidget(item);
|
|
||||||
traceId.value = "";
|
|
||||||
duration.value = appStore.durationTime;
|
|
||||||
});
|
});
|
||||||
watch(
|
watch(
|
||||||
() => selectorStore.currentService,
|
() => selectorStore.currentService,
|
||||||
|
@ -236,13 +236,6 @@ async function searchEndpoints(keyword: string) {
|
|||||||
}
|
}
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
traceStore.resetState();
|
traceStore.resetState();
|
||||||
const item = {
|
|
||||||
...props.data,
|
|
||||||
filters: undefined,
|
|
||||||
};
|
|
||||||
dashboardStore.setWidget(item);
|
|
||||||
traceId.value = "";
|
|
||||||
duration.value = appStore.durationTime;
|
|
||||||
});
|
});
|
||||||
watch(
|
watch(
|
||||||
() => [selectorStore.currentPod],
|
() => [selectorStore.currentPod],
|
||||||
|
Loading…
Reference in New Issue
Block a user