Skip to content

Commit 92d5e17

Browse files
feat: Execution details of variable splitting and parameter extraction
1 parent 4487964 commit 92d5e17

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@
841841
</div>
842842
</div>
843843
</div>
844-
<div class="card-never border-r-6">
844+
<div class="card-never border-r-6 mt-8">
845845
<h5 class="p-8-12">
846846
{{ $t('common.param.outputParam') }}
847847
</h5>
@@ -853,6 +853,33 @@
853853
</div>
854854
</template>
855855

856+
<!-- 变量拆分 -->
857+
<template
858+
v-if="
859+
data.type === WorkflowType.VariableSplittingNode ||
860+
data.type == WorkflowType.ParameterExtractionNode
861+
"
862+
>
863+
<div class="card-never border-r-6">
864+
<h5 class="p-8-12">
865+
{{ $t('common.param.inputParam') }}
866+
</h5>
867+
<div class="p-8-12 border-t-dashed lighter pre-wrap">
868+
{{ data.request || '-' }}
869+
</div>
870+
</div>
871+
<div class="card-never border-r-6 mt-8">
872+
<h5 class="p-8-12">
873+
{{ $t('common.param.outputParam') }}
874+
</h5>
875+
<div class="p-8-12 border-t-dashed lighter">
876+
<div v-for="(f, i) in data.result" :key="i" class="mb-8">
877+
<span class="color-secondary">{{ i }}:</span> {{ f }}
878+
</div>
879+
</div>
880+
</div>
881+
</template>
882+
856883
<!-- MCP 节点 -->
857884
<template v-if="data.type === WorkflowType.McpNode">
858885
<div class="card-never border-r-6">
@@ -1002,11 +1029,11 @@
10021029
<div class="p-8-12 border-t-dashed lighter">
10031030
<div class="mb-8">
10041031
<span class="color-secondary"> knowledge_list:</span>
1005-
{{ data.knowledge_items?.map((v:any) => v.name).join(',') }}
1032+
{{ data.knowledge_items?.map((v: any) => v.name).join(',') }}
10061033
</div>
10071034
<div class="mb-8">
10081035
<span class="color-secondary"> document_list:</span>
1009-
{{ data.document_items?.map((v:any) => v.name).join(',') }}
1036+
{{ data.document_items?.map((v: any) => v.name).join(',') }}
10101037
</div>
10111038
</div>
10121039
</div>

0 commit comments

Comments
 (0)