From db02d9c1267217b05e1ccd2a9f88028af462252c Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Sun, 3 Nov 2024 23:22:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/core/taskmgr.py | 2 + web/src/App.vue | 2 +- web/src/components/TaskCard.vue | 74 ++++++++++++++++++- .../{TaskDialog.vue => TaskListDialog.vue} | 3 +- 4 files changed, 75 insertions(+), 6 deletions(-) rename web/src/components/{TaskDialog.vue => TaskListDialog.vue} (97%) diff --git a/pkg/core/taskmgr.py b/pkg/core/taskmgr.py index 0a8af919..d7436b06 100644 --- a/pkg/core/taskmgr.py +++ b/pkg/core/taskmgr.py @@ -137,6 +137,8 @@ class TaskWrapper: for frame in self.task_stack: exception_traceback += f" File \"{frame.f_code.co_filename}\", line {frame.f_lineno}, in {frame.f_code.co_name}\n" + exception_traceback += f" {self.assume_exception().__str__()}\n" + return { "id": self.id, "task_type": self.task_type, diff --git a/web/src/App.vue b/web/src/App.vue index 02a42f45..f8ebed38 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -69,7 +69,7 @@ import { getCurrentInstance } from 'vue' import {provide, ref, watch} from 'vue'; -import TaskDialog from '@/components/TaskDialog.vue' +import TaskDialog from '@/components/TaskListDialog.vue' const { proxy } = getCurrentInstance() diff --git a/web/src/components/TaskCard.vue b/web/src/components/TaskCard.vue index 653a8670..167f6f41 100644 --- a/web/src/components/TaskCard.vue +++ b/web/src/components/TaskCard.vue @@ -2,19 +2,66 @@
- + + +
{{ task.kind }}
{{ task.label }}
- 正在执行: {{ task.task_context.current_action }} + 正在执行: {{ task.task_context.current_action }} + 完成 + + + + + + + +
- + + + + + +
+