fix: update query conditions for browser logs (#95)

This commit is contained in:
Fine0830 2022-05-20 10:51:19 +08:00 committed by GitHub
parent b544decbbb
commit f2e75f2b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 4 deletions

View File

@ -136,6 +136,7 @@ const msg = {
targetType: "Target Type",
ebpfTip: "Don't have a process for profiling",
processSelect: "Click to select processes",
page: "Page",
hourTip: "Select Hour",
minuteTip: "Select Minute",
secondTip: "Select Second",

View File

@ -134,6 +134,7 @@ const msg = {
targetType: "目标类型",
processSelect: "点击选择进程",
ebpfTip: "没有进程可以分析",
page: "页面",
hourTip: "选择小时",
minuteTip: "选择分钟",
secondTip: "选择秒数",

View File

@ -226,8 +226,14 @@ function searchLogs() {
endpointId: endpoint || state.endpoint.id || undefined,
serviceInstanceId: instance || state.instance.id || undefined,
queryDuration: appStore.durationTime,
keywordsOfContent: keywordsOfContent.value,
excludingKeywordsOfContent: excludingKeywordsOfContent.value,
keywordsOfContent:
dashboardStore.layerId === "BROWSER"
? undefined
: keywordsOfContent.value,
excludingKeywordsOfContent:
dashboardStore.layerId === "BROWSER"
? undefined
: excludingKeywordsOfContent.value,
tags: tagsMap.value.length ? tagsMap.value : undefined,
paging: { pageNum: 1, pageSize: 15 },
relatedTrace: traceId.value ? { traceId: traceId.value } : undefined,

View File

@ -110,8 +110,8 @@ const selectorStore = useSelectorStore();
const dashboardStore = useDashboardStore();
const traceStore = useTraceStore();
const traceId = ref<string>("");
const minTraceDuration = ref<number>(NaN);
const maxTraceDuration = ref<number>(NaN);
const minTraceDuration = ref<number>();
const maxTraceDuration = ref<number>();
const tagsList = ref<string[]>([]);
const tagsMap = ref<Option[]>([]);
const state = reactive<any>({