From a700ba5597acdb90720b2a05c54969b06bca3ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Thu, 4 Jun 2026 16:53:33 +0800 Subject: [PATCH] =?UTF-8?q?perf:=201)=20`=E6=89=A7=E8=A1=8C=E8=AF=A6?= =?UTF-8?q?=E6=83=85`=20=E9=87=8C=E7=9A=84=20`=E5=9B=BE=E7=89=87`=20?= =?UTF-8?q?=E5=8F=AF=E7=82=B9=E5=87=BB=E6=94=BE=E5=A4=A7=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=EF=BC=8C`=E6=96=87=E6=A1=A3`=20=E5=92=8C=20`=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E6=96=87=E4=BB=B6`=20=E5=8F=AF=E7=82=B9=E5=87=BB=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E4=BA=86;=202)=20`=E6=96=87=E6=A1=A3=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E6=8F=90=E5=8F=96`=20=E8=8A=82=E7=82=B9=E7=9A=84?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E8=AF=A6=E6=83=85=E4=B8=AD=EF=BC=8C=E4=BC=9A?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=20`=E8=BE=93=E5=85=A5=E6=96=87=E6=A1=A3`=20?= =?UTF-8?q?=E4=BA=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/base_document_extract_node.py | 2 +- .../execution-detail-card/index.vue | 89 +++++++++++++++++-- 2 files changed, 85 insertions(+), 6 deletions(-) diff --git a/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py b/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py index 68eeadfe055..495cc5db0a6 100644 --- a/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py +++ b/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py @@ -17,12 +17,12 @@ class BaseDocumentExtractNode(IDocumentExtractNode): def save_context(self, details, workflow_manage): self.context['content'] = details.get('content') + self.context['document_list'] = details.get('document_list') self.context['exception_message'] = details.get('err_message') def execute(self, document, chat_id=None, **kwargs): get_buffer = FileBufferHandle().get_buffer - self.context['document_list'] = document content = [] if document is None or not isinstance(document, list): return NodeResult({'content': '', 'document_list': []}, {}) diff --git a/ui/src/components/execution-detail-card/index.vue b/ui/src/components/execution-detail-card/index.vue index f163b40c7a3..73b8b9afcf9 100644 --- a/ui/src/components/execution-detail-card/index.vue +++ b/ui/src/components/execution-detail-card/index.vue @@ -68,7 +68,12 @@ @@ -109,7 +119,7 @@
-

{{ $t('common.fileUpload.image') }}:

+

{{ $t('common.fileUpload.video') }}:

@@ -1422,6 +1494,13 @@ const isKnowLedge = computed(() => props.type === 'knowledge') const currentLoopNode = ref(0) const currentParagraph = ref(0) const currentWriteContent = ref(0) + +// 下载文件 +const downloadFile = (file: any) => { + if (file && file.url) { + window.open(file.url, '_blank') + } +}