mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 01:25:27 +00:00
update trace
This commit is contained in:
parent
6345c15f00
commit
ff89735739
@ -65,10 +65,7 @@ export const logStore = defineStore({
|
|||||||
if (res.data.errors) {
|
if (res.data.errors) {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.services = [
|
this.services = res.data.data.services;
|
||||||
{ value: "0", label: "All" },
|
|
||||||
...res.data.data.services,
|
|
||||||
] || [{ value: "0", label: "All" }];
|
|
||||||
return res.data;
|
return res.data;
|
||||||
},
|
},
|
||||||
async getInstances() {
|
async getInstances() {
|
||||||
|
@ -82,10 +82,7 @@ export const profileStore = defineStore({
|
|||||||
if (res.data.errors) {
|
if (res.data.errors) {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.services = [
|
this.services = res.data.data.services;
|
||||||
{ value: "0", label: "All" },
|
|
||||||
...res.data.data.services,
|
|
||||||
] || [{ value: "0", label: "All" }];
|
|
||||||
return res.data;
|
return res.data;
|
||||||
},
|
},
|
||||||
async getTaskList() {
|
async getTaskList() {
|
||||||
|
@ -80,10 +80,7 @@ export const traceStore = defineStore({
|
|||||||
if (res.data.errors) {
|
if (res.data.errors) {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.services = [
|
this.services = res.data.data.services;
|
||||||
{ value: "0", label: "All" },
|
|
||||||
...res.data.data.services,
|
|
||||||
] || [{ value: "0", label: "All" }];
|
|
||||||
return res.data;
|
return res.data;
|
||||||
},
|
},
|
||||||
async getInstances() {
|
async getInstances() {
|
||||||
|
@ -143,7 +143,7 @@ const isBrowser = ref<boolean>(dashboardStore.layerId === "BROWSER");
|
|||||||
const state = reactive<any>({
|
const state = reactive<any>({
|
||||||
instance: { value: "0", label: "All" },
|
instance: { value: "0", label: "All" },
|
||||||
endpoint: { value: "0", label: "All" },
|
endpoint: { value: "0", label: "All" },
|
||||||
service: { value: "0", label: "All" },
|
service: { value: "", label: "" },
|
||||||
});
|
});
|
||||||
|
|
||||||
init();
|
init();
|
||||||
@ -154,11 +154,10 @@ async function init() {
|
|||||||
ElMessage.error(resp.errors);
|
ElMessage.error(resp.errors);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
await fetchSelectors();
|
||||||
|
await searchLogs();
|
||||||
state.instance = { value: "0", label: "All" };
|
state.instance = { value: "0", label: "All" };
|
||||||
state.endpoint = { value: "0", label: "All" };
|
state.endpoint = { value: "0", label: "All" };
|
||||||
state.service = { value: "0", label: "All" };
|
|
||||||
searchLogs();
|
|
||||||
fetchSelectors();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetchSelectors() {
|
function fetchSelectors() {
|
||||||
|
@ -113,7 +113,7 @@ const state = reactive<any>({
|
|||||||
status: { label: "All", value: "ALL" },
|
status: { label: "All", value: "ALL" },
|
||||||
instance: { value: "0", label: "All" },
|
instance: { value: "0", label: "All" },
|
||||||
endpoint: { value: "0", label: "All" },
|
endpoint: { value: "0", label: "All" },
|
||||||
service: { value: "0", label: "All" },
|
service: { value: "", label: "" },
|
||||||
});
|
});
|
||||||
|
|
||||||
// const dateTime = computed(() => [
|
// const dateTime = computed(() => [
|
||||||
@ -121,24 +121,21 @@ const state = reactive<any>({
|
|||||||
// appStore.durationRow.end,
|
// appStore.durationRow.end,
|
||||||
// ]);
|
// ]);
|
||||||
init();
|
init();
|
||||||
function init() {
|
async function init() {
|
||||||
searchTraces();
|
|
||||||
if (dashboardStore.entity === EntityType[1].value) {
|
if (dashboardStore.entity === EntityType[1].value) {
|
||||||
getServices();
|
await getServices();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (dashboardStore.entity === EntityType[2].value) {
|
if (dashboardStore.entity === EntityType[2].value) {
|
||||||
getInstances();
|
await getInstances();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (dashboardStore.entity === EntityType[3].value) {
|
if (dashboardStore.entity === EntityType[3].value) {
|
||||||
getEndpoints();
|
await getEndpoints();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (dashboardStore.entity === EntityType[0].value) {
|
if (dashboardStore.entity === EntityType[0].value) {
|
||||||
getInstances();
|
await getInstances();
|
||||||
getEndpoints();
|
await getEndpoints();
|
||||||
}
|
}
|
||||||
|
await searchTraces();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getServices() {
|
async function getServices() {
|
||||||
|
Loading…
Reference in New Issue
Block a user