mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 00:37:33 +00:00
fix
This commit is contained in:
parent
a12d1080b4
commit
ecb205d7ac
@ -86,19 +86,20 @@ const items = Object.keys(filters).map((d: string) => {
|
|||||||
});
|
});
|
||||||
const conditions = ref(items[0].key);
|
const conditions = ref(items[0].key);
|
||||||
|
|
||||||
if (filters.id) {
|
init();
|
||||||
init();
|
|
||||||
} else {
|
|
||||||
state.service = selectorStore.currentService.id;
|
|
||||||
if (dashboardStore.entity === EntityType[2].value) {
|
|
||||||
state.instance = selectorStore.currentPod.id;
|
|
||||||
}
|
|
||||||
if (dashboardStore.entity === EntityType[3].value) {
|
|
||||||
state.endpoint = selectorStore.currentPod.id;
|
|
||||||
}
|
|
||||||
queryTraces();
|
|
||||||
}
|
|
||||||
async function init() {
|
async function init() {
|
||||||
|
if (!filters.id) {
|
||||||
|
state.service = selectorStore.currentService.id;
|
||||||
|
if (dashboardStore.entity === EntityType[2].value) {
|
||||||
|
state.instance = selectorStore.currentPod.id;
|
||||||
|
}
|
||||||
|
if (dashboardStore.entity === EntityType[3].value) {
|
||||||
|
state.endpoint = selectorStore.currentPod.id;
|
||||||
|
}
|
||||||
|
await queryTraces();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (dashboardStore.entity === EntityType[1].value) {
|
if (dashboardStore.entity === EntityType[1].value) {
|
||||||
await getService();
|
await getService();
|
||||||
}
|
}
|
||||||
@ -147,16 +148,12 @@ function setCondition() {
|
|||||||
maxTraceDuration: undefined,
|
maxTraceDuration: undefined,
|
||||||
tags: tagsMap.value.length ? tagsMap.value : undefined,
|
tags: tagsMap.value.length ? tagsMap.value : undefined,
|
||||||
paging: { pageNum: 1, pageSize: 20 },
|
paging: { pageNum: 1, pageSize: 20 },
|
||||||
|
serviceId: state.service || undefined,
|
||||||
|
endpointId: state.endpoint || undefined,
|
||||||
|
serviceInstanceId: state.instance || undefined,
|
||||||
};
|
};
|
||||||
// topList
|
// echarts
|
||||||
if (filters.id) {
|
if (!filters.id) {
|
||||||
params = {
|
|
||||||
...params,
|
|
||||||
serviceId: state.service || undefined,
|
|
||||||
endpointId: state.endpoint || undefined,
|
|
||||||
serviceInstanceId: state.instance || undefined,
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
for (const k of items) {
|
for (const k of items) {
|
||||||
if (k.key === conditions.value) {
|
if (k.key === conditions.value) {
|
||||||
params[k.value] = filters[k.key];
|
params[k.value] = filters[k.key];
|
||||||
|
Loading…
Reference in New Issue
Block a user