fix log query

This commit is contained in:
Qiuxia Fan 2022-05-20 10:36:36 +08:00
parent 35813868a4
commit d7eaee5913
4 changed files with 12 additions and 4 deletions

View File

@ -138,6 +138,7 @@ const msg = {
processSelect: "Click to select processes",
container: "Container",
limit: "Limit",
page: "Page",
hourTip: "Select Hour",
minuteTip: "Select Minute",
secondTip: "Select Second",

View File

@ -136,6 +136,7 @@ const msg = {
ebpfTip: "没有进程可以分析",
container: "容器",
limit: "范围",
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>({