From 3c461b6a308a4f3e92aaaf0a26b893861618fd69 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Wed, 11 Sep 2024 10:31:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=89=A7=E8=A1=8C=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=98=BE=E7=A4=BA=E5=85=A8=E5=B1=80=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../flow/step_node/start_node/impl/base_start_node.py | 10 +++++++++- ui/src/components/ai-chat/ExecutionDetailDialog.vue | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/application/flow/step_node/start_node/impl/base_start_node.py b/apps/application/flow/step_node/start_node/impl/base_start_node.py index 7043e42eb..6dd0a81b2 100644 --- a/apps/application/flow/step_node/start_node/impl/base_start_node.py +++ b/apps/application/flow/step_node/start_node/impl/base_start_node.py @@ -22,6 +22,13 @@ class BaseStartStepNode(IStarNode): {'time': datetime.now().strftime('%Y-%m-%d %H:%M:%S'), 'start_time': time.time()}) def get_details(self, index: int, **kwargs): + global_fields = [] + for field in self.node.properties.get('config')['globalFields']: + global_fields.append({ + 'label': field['label'], + 'key': field['value'], + 'value': self.workflow_manage[field['value']] + }) return { 'name': self.node.properties.get('stepName'), "index": index, @@ -29,5 +36,6 @@ class BaseStartStepNode(IStarNode): 'run_time': self.context.get('run_time'), 'type': self.node.type, 'status': self.status, - 'err_message': self.err_message + 'err_message': self.err_message, + 'global_fields': global_fields } diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue index d90a3b507..023ba308a 100644 --- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue +++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue @@ -39,7 +39,10 @@