Skip to content

Commit 92fd83c

Browse files
wangdan-fit2cloudliuruibin
authored andcommitted
feat: Execution detail support variable assign(#2114)
1 parent 8b6c71f commit 92fd83c

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

ui/src/components/ai-chat/ExecutionDetailDialog.vue

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,16 @@
5959
<h5 class="p-8-12">
6060
{{ $t('common.param.inputParam') }}
6161
</h5>
62+
6263
<div class="p-8-12 border-t-dashed lighter">
6364
<div class="mb-8">
6465
<span class="color-secondary">
6566
{{ $t('chat.paragraphSource.question') }}:</span
6667
>
68+
6769
{{ item.question || '-' }}
6870
</div>
71+
6972
<div v-for="(f, i) in item.global_fields" :key="i" class="mb-8">
7073
<span class="color-secondary">{{ f.label }}:</span> {{ f.value }}
7174
</div>
@@ -604,6 +607,30 @@
604607
</div>
605608
</div>
606609
</template>
610+
611+
<!-- 变量赋值 -->
612+
<template v-if="item.type === WorkflowType.VariableAssignNode">
613+
<div class="card-never border-r-4">
614+
<h5 class="p-8-12">
615+
{{ $t('common.param.inputParam') }}
616+
</h5>
617+
<div class="p-8-12 border-t-dashed lighter">
618+
<div v-for="(f, i) in item.variable_list" :key="i" class="mb-8">
619+
<span class="color-secondary">{{ f.name }}:</span> {{ f.input_value }}
620+
</div>
621+
</div>
622+
</div>
623+
<div class="card-never border-r-4">
624+
<h5 class="p-8-12">
625+
{{ $t('common.param.outputParam') }}
626+
</h5>
627+
<div class="p-8-12 border-t-dashed lighter">
628+
<div v-for="(f, i) in item.variable_list" :key="i" class="mb-8">
629+
<span class="color-secondary">{{ f.name }}:</span> {{ f.output_value }}
630+
</div>
631+
</div>
632+
</div>
633+
</template>
607634
</template>
608635
<template v-else>
609636
<div class="card-never border-r-4">

ui/src/enums/workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ export enum WorkflowType {
1616
FormNode = 'form-node',
1717
TextToSpeechNode = 'text-to-speech-node',
1818
SpeechToTextNode = 'speech-to-text-node',
19-
ImageGenerateNode = 'image-generate-node'
19+
ImageGenerateNode = 'image-generate-node'
2020
}

0 commit comments

Comments
 (0)