From c5a82baca60824b73bf09d5d346f62e3aebac777 Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 21 Nov 2024 11:10:40 +0800 Subject: [PATCH] view task detail and logs --- src/store/modules/async-profiling.ts | 2 +- .../async-profiling/components/TaskList.vue | 69 ++++++++++++++++--- 2 files changed, 59 insertions(+), 12 deletions(-) diff --git a/src/store/modules/async-profiling.ts b/src/store/modules/async-profiling.ts index 6546cd46..20fea5cd 100644 --- a/src/store/modules/async-profiling.ts +++ b/src/store/modules/async-profiling.ts @@ -50,7 +50,7 @@ export const asyncProfilingStore = defineStore({ if (res.data.errors) { return res.data; } - this.taskList = res.data.data.asyncTaskList || []; + this.taskList = res.data.data.asyncTaskList.tasks || []; this.selectedTask = this.taskList[0] || {}; this.setSelectedTask(this.selectedTask); if (!this.taskList.length) { diff --git a/src/views/dashboard/related/async-profiling/components/TaskList.vue b/src/views/dashboard/related/async-profiling/components/TaskList.vue index d411b1e1..97fdbe9f 100644 --- a/src/views/dashboard/related/async-profiling/components/TaskList.vue +++ b/src/views/dashboard/related/async-profiling/components/TaskList.vue @@ -35,16 +35,16 @@ limitations under the License. --> >
{{ i.endpointName }} - +
- {{ dateFormat(i.startTime) }} + {{ dateFormat(i.createTime) }} - {{ dateFormat(i.startTime + i.duration * 60 * 1000) }} + {{ dateFormat(i.createTime + i.duration * 60 * 1000) }}
@@ -53,6 +53,57 @@ limitations under the License. --> + +
+
+
{{ t("task") }}.
+
+ {{ t("id") }}: + {{ asyncProfilingStore.currentTask.id }} +
+
+ {{ t("service") }}: + {{ service }} +
+
+ {{ t("serviceInstanceIds") }}: + {{ asyncProfilingStore.currentTask.serviceInstanceIds.join(", ") }} +
+
+ {{ t("execArgs") }}: + {{ asyncProfilingStore.currentTask.execArgs }} +
+
+ {{ t("duration") }}: + {{ asyncProfilingStore.currentTask.duration }} +
+
+ {{ t("events") }}: + {{ asyncProfilingStore.currentTask.events.join(", ") }} +
+
+
+
+ {{ t("logs") }}. +
+
+
+ {{ t("instance") }}: + {{ i }} +
+
+ {{ t("operationType") }}: + {{ d.operationType }} + {{ t("time") }}: + {{ dateFormat(d.operationTime) }} +
+
+
+
+