diff --git a/src/views/dashboard/related/async-profiling/components/Filter.vue b/src/views/dashboard/related/async-profiling/components/Filter.vue index 0bac83e9..b4f7eed4 100644 --- a/src/views/dashboard/related/async-profiling/components/Filter.vue +++ b/src/views/dashboard/related/async-profiling/components/Filter.vue @@ -54,7 +54,7 @@ limitations under the License. --> ); const instances = computed(() => asyncProfilingStore.instances.filter((d: Instance) => - (asyncProfilingStore.selectedTask.serviceInstanceIds ?? []).includes(d.id), + (asyncProfilingStore.selectedTask.successInstanceIds ?? []).includes(d.id), ), ); diff --git a/src/views/dashboard/related/async-profiling/components/Stack.vue b/src/views/dashboard/related/async-profiling/components/Stack.vue new file mode 100644 index 00000000..bdd89ba5 --- /dev/null +++ b/src/views/dashboard/related/async-profiling/components/Stack.vue @@ -0,0 +1,194 @@ + + + + diff --git a/src/views/dashboard/related/async-profiling/components/TaskList.vue b/src/views/dashboard/related/async-profiling/components/TaskList.vue index 483ccac3..860ed1f1 100644 --- a/src/views/dashboard/related/async-profiling/components/TaskList.vue +++ b/src/views/dashboard/related/async-profiling/components/TaskList.vue @@ -33,7 +33,7 @@ limitations under the License. -->
{{ i.id }} - +
@@ -63,10 +63,6 @@ limitations under the License. --> {{ t("service") }}: {{ service }} -
- {{ t("instances") }}: - {{ instances.map((d) => d.label).join(", ") }} -
{{ t("execArgs") }}: {{ asyncProfilingStore.selectedTask.execArgs }} @@ -144,7 +140,6 @@ limitations under the License. --> const selectorStore = useSelectorStore(); const showDetail = ref(false); const service = ref(""); - const instances = ref([]); const instanceLogs = ref({}); const errorInstances = ref([]); const successInstances = ref([]); @@ -165,16 +160,7 @@ limitations under the License. --> async function changeTask(item: TaskListItem) { asyncProfilingStore.setSelectedTask(item); - } - - async function viewTaskDetail(e: Event, item: TaskListItem) { - e.stopPropagation(); - showDetail.value = true; - asyncProfilingStore.setSelectedTask(item); - service.value = (selectorStore.services.filter((s: Service) => s.id === item.serviceId)[0] || {}).label; - instances.value = asyncProfilingStore.instances.filter((d: Instance) => - item.serviceInstanceIds.includes(d.id || ""), - ); + service.value = (selectorStore.services.filter((s: Service) => s.id === item.serviceId)[0] ?? {}).label; const res = await asyncProfilingStore.getTaskLogs({ taskId: item.id }); if (res.errors) { @@ -185,6 +171,7 @@ limitations under the License. --> ...item, ...asyncProfilingStore.taskProgress, }; + asyncProfilingStore.setSelectedTask(item); errorInstances.value = asyncProfilingStore.instances.filter( (d: Instance) => d.id && item.errorInstanceIds.includes(d.id), );