Skip to content

Commit a84be67

Browse files
fix: Variable aggregation node adds execution details
1 parent 2800161 commit a84be67

File tree

4 files changed

+39
-5
lines changed

4 files changed

+39
-5
lines changed

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

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@
842842
</div>
843843
</div>
844844
</div>
845-
<div class="card-never border-r-6 mt-8">
845+
<div class="card-never border-r-6 mt-8">
846846
<h5 class="p-8-12">
847847
{{ $t('common.param.outputParam') }}
848848
</h5>
@@ -880,7 +880,41 @@
880880
</div>
881881
</div>
882882
</template>
883-
883+
<!-- 变量聚合 -->
884+
<template v-if="data.type === WorkflowType.VariableAggregationNode">
885+
<div class="card-never border-r-6">
886+
<h5 class="p-8-12">
887+
{{ $t('views.applicationWorkflow.nodes.variableAggregationNode.Strategy') }}
888+
</h5>
889+
<div class="p-8-12 border-t-dashed lighter pre-wrap">
890+
{{ data.strategy }}
891+
</div>
892+
</div>
893+
<div
894+
class="card-never border-r-6 mt-8"
895+
v-for="(group, groupI) in data.group_list"
896+
:key="groupI"
897+
>
898+
<h5 class="p-8-12">
899+
{{ group.label+ ' '+ $t('common.param.inputParam') }}
900+
</h5>
901+
<div class="p-8-12 border-t-dashed lighter">
902+
<div v-for="(f, i) in group.variable_list" :key="i" class="mb-8">
903+
<span class="color-secondary">{{ `${f.node_name}.${f.field}` }}:</span> {{ f.value }}
904+
</div>
905+
</div>
906+
</div>
907+
<div class="card-never border-r-6 mt-8">
908+
<h5 class="p-8-12">
909+
{{ $t('common.param.outputParam') }}
910+
</h5>
911+
<div class="p-8-12 border-t-dashed lighter">
912+
<div v-for="(f, i) in data.result" :key="i" class="mb-8">
913+
<span class="color-secondary">{{ i }}:</span> {{ f }}
914+
</div>
915+
</div>
916+
</div>
917+
</template>
884918
<!-- MCP 节点 -->
885919
<template v-if="data.type === WorkflowType.McpNode">
886920
<div class="card-never border-r-6">

ui/src/workflow/common/NodeContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
@mouseenter="showicon = index"
103103
@mouseleave="showicon = null"
104104
>
105-
<span style="max-width: 92%">{{ item.label }} {{ '{' + item.value + '}' }}</span>
105+
<span class="break-all">{{ item.label }} {{ '{' + item.value + '}' }}</span>
106106
<el-tooltip
107107
effect="dark"
108108
:content="$t('views.applicationWorkflow.setting.copyParam')"

ui/src/workflow/nodes/loop-body-node/LoopBodyContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
@mouseenter="showicon = index"
5555
@mouseleave="showicon = null"
5656
>
57-
<span style="max-width: 92%">{{ item.label }} {{ '{' + item.value + '}' }}</span>
57+
<span class="break-all">{{ item.label }} {{ '{' + item.value + '}' }}</span>
5858
<el-tooltip
5959
effect="dark"
6060
:content="$t('views.applicationWorkflow.setting.copyParam')"

ui/src/workflow/nodes/variable-aggregation-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<div v-for="(group, gIndex) in form_data.group_list" :key="group.id" class="mb-8">
4242
<el-card shadow="never" class="card-never" style="--el-card-padding: 12px">
4343
<div class="flex-between mb-12">
44-
<span class="font-bold">{{ group.label }}</span>
44+
<span class="ellipsis" :title="group.label">{{ group.label }}</span>
4545
<div class="flex align-center" style="margin-right: -3px;">
4646
<el-button @click="openAddOrEditDialog(group, gIndex)" link>
4747
<el-icon><EditPen /></el-icon>

0 commit comments

Comments
 (0)