From a0103aa0144c5f92158457dec9925c85f4f201f9 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 3 Dec 2025 19:25:45 +0800 Subject: [PATCH] fix: Adjust execution details and fix some bugs. --- .../component/chat-input-operate/index.vue | 8 +- .../ExecutionDetailCard.vue | 158 +++++++++++------- .../ai-chat/component/user-form/index.vue | 2 +- ui/src/stores/modules/application.ts | 1 - ui/src/styles/component.scss | 29 +++- ui/src/views/application/index.vue | 5 +- .../component/DebugDrawer.vue | 2 + ui/src/views/knowledge-workflow/index.vue | 2 +- .../knowledge/component/ParagraphPreview.vue | 26 --- .../CreateWorkflowKnowledgeDialog.vue | 2 +- ui/src/workflow/common/NodeContainer.vue | 18 +- .../component/UserInputFieldTable.vue | 1 - .../nodes/knowledge-base-node/index.vue | 11 +- 13 files changed, 165 insertions(+), 100 deletions(-) diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index e548dcf8b..d533d6466 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -568,7 +568,7 @@ const uploadFile = async (file: any, fileList: any) => { } filePromisionDict.value[file.uid] = false const inner = reactive(file) - fileAllList.value.push(inner) + // fileAllList.value.push(inner) if (!chatId_context.value) { chatId_context.value = await props.openChatId() } @@ -1313,9 +1313,9 @@ async function saveUrl() { // 并行处理所有 URL await Promise.all(validUrls.map(url => processUrl(url))); - if (validFiles.length > 0) { - fileAllList.value.push(...validFiles); - } + // if (validFiles.length > 0) { + // fileAllList.value.push(...validFiles); + // } showURLSetting.value = false; urlForm.source_url = ''; diff --git a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue index c22b74cad..64d111e3c 100644 --- a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue +++ b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue @@ -294,7 +294,7 @@
- + + @@ -892,7 +893,11 @@ {{ $t('views.workflow.nodes.variableAggregationNode.Strategy') }}
- {{ data.strategy }} + {{ + data.strategy === 'variable_to_json' + ? t('views.workflow.nodes.variableAggregationNode.placeholder1') + : t('views.workflow.nodes.variableAggregationNode.placeholder') + }}
{{ group.label + ' ' + $t('common.param.inputParam') }} -
-
- {{ `${f.node_name}.${f.field}` }}: - {{ f.value }} + +
+
+ {{ `${f.node_name}.${f.field}` }}: + {{ f.value }} +
-
+
@@ -1106,9 +1113,16 @@ > {{ data.split_strategy }}
+
+ {{ $t('views.workflow.nodes.documentSplitNode.chunk_length.label') }}: + {{ data.chunk_size }} +
+ {{ data.size }}
{{ $t('common.inputContent') }}: - {{ data.document_list }} + {{ data.document_list?.map((v: any) => v.name).join(',') }}
@@ -1119,72 +1133,100 @@ }})
- - - -