Skip to content

Commit 2c624a2

Browse files
fix: loop node issue
1 parent 04b42c3 commit 2c624a2

File tree

11 files changed

+55
-11
lines changed

11 files changed

+55
-11
lines changed

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,42 @@
858858
</div>
859859
</div>
860860
</template>
861+
<!-- 循环跳过 节点-->
862+
<template v-if="data.type === WorkflowType.LoopContinueNode">
863+
<div class="card-never border-r-6">
864+
<h5 class="p-8-12">
865+
{{ $t('common.param.outputParam') }}
866+
</h5>
867+
868+
<div class="p-8-12 border-t-dashed lighter">
869+
<div class="mb-8">
870+
<span class="color-secondary">
871+
{{ $t('views.applicationWorkflow.nodes.loopContinueNode.isContinue') }}:</span
872+
>
873+
874+
{{ data.is_continue }}
875+
</div>
876+
</div>
877+
</div>
878+
</template>
879+
<!-- 循环退出 节点-->
880+
<template v-if="data.type === WorkflowType.LoopBreakNode">
881+
<div class="card-never border-r-6">
882+
<h5 class="p-8-12">
883+
{{ $t('common.param.outputParam') }}
884+
</h5>
885+
886+
<div class="p-8-12 border-t-dashed lighter">
887+
<div class="mb-8">
888+
<span class="color-secondary">
889+
{{ $t('views.applicationWorkflow.nodes.loopBreakNode.isBreak') }}:</span
890+
>
891+
892+
{{ data.is_break }}
893+
</div>
894+
</div>
895+
</div>
896+
</template>
861897
<slot></slot>
862898
</template>
863899
<template v-else>

ui/src/locales/lang/en-US/views/application-workflow.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,12 @@ export default {
379379
loopContinueNode: {
380380
label: 'Continue',
381381
text: 'Used to terminate the current loop and proceed to the next one.',
382+
isContinue: 'Continue',
382383
},
383384
loopBreakNode: {
384385
label: 'Break',
385386
text: 'Terminate the current loop and exit the loop body',
387+
isBreak: 'Break',
386388
},
387389
},
388390
compare: {

ui/src/locales/lang/en-US/views/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default {
6666
placeholder: 'Please select an AI model',
6767
},
6868
roleSettings: {
69-
label: 'System Role',
69+
label: 'System Prompt',
7070
placeholder: 'You are xxx assistant',
7171
},
7272

ui/src/locales/lang/zh-CN/views/application-workflow.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,12 @@ export default {
379379
loopContinueNode: {
380380
label: 'Continue',
381381
text: '用于终止当前循环,执行下次循环',
382+
isContinue: 'Continue',
382383
},
383384
loopBreakNode: {
384385
label: 'Break',
385386
text: '终止当前循环,跳出循环体',
387+
isBreak: 'Break',
386388
},
387389
},
388390
compare: {

ui/src/locales/lang/zh-CN/views/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default {
6262
placeholder: '请选择 AI 模型',
6363
},
6464
roleSettings: {
65-
label: '系统角色',
65+
label: '系统提示词',
6666
placeholder: '你是 xxx 小助手',
6767
},
6868

ui/src/locales/lang/zh-Hant/views/application-workflow.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,12 @@ export default {
366366
loopVariable: '循環變量',
367367
},
368368
loopBodyNode: { label: '循環體', text: '循環體' },
369-
loopContinueNode: { label: 'Continue', text: '用於終止當前循環,執行下次循環' },
370-
loopBreakNode: { label: 'Break', text: '終止當前循環,跳出循環體' },
369+
loopContinueNode: {
370+
label: 'Continue',
371+
text: '用於終止當前循環,執行下次循環',
372+
isContinue: 'Continue',
373+
},
374+
loopBreakNode: { label: 'Break', text: '終止當前循環,跳出循環體', isBreak: 'Break' },
371375
},
372376
compare: {
373377
is_null: '為空',

ui/src/locales/lang/zh-Hant/views/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default {
6262
placeholder: '請選擇 AI 模型',
6363
},
6464
roleSettings: {
65-
label: '角色設定',
65+
label: '系統提示詞',
6666
placeholder: '你是 xxx 小助手',
6767
},
6868
prompt: {

ui/src/views/application/ApplicationSetting.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
>
100100
</ModelSelect>
101101
</el-form-item>
102-
<el-form-item :label="$t('views.application.form.roleSettings.label')">
102+
<el-form-item>
103103
<template #label>
104104
<div class="flex-between">
105105
<span>{{ $t('views.application.form.roleSettings.label') }}</span>
@@ -669,7 +669,7 @@ const optimizationPrompt =
669669
const AIModeParamSettingDialogRef = ref<InstanceType<typeof AIModeParamSettingDialog>>()
670670
const ReasoningParamSettingDialogRef = ref<InstanceType<typeof ReasoningParamSettingDialog>>()
671671
const TTSModeParamSettingDialogRef = ref<InstanceType<typeof TTSModeParamSettingDialog>>()
672-
const STTModeParamSettingDialogRef = ref<InstanceType<typeof STTModeParamSettingDialog>>()
672+
const STTModeParamSettingDialogRef = ref<InstanceType<typeof STTModeParamSettingDialog>>()
673673
const ParamSettingDialogRef = ref<InstanceType<typeof ParamSettingDialog>>()
674674
const GeneratePromptDialogRef = ref<InstanceType<typeof GeneratePromptDialog>>()
675675

ui/src/workflow/nodes/ai-chat-node/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
></ModelSelect>
5454
</el-form-item>
5555

56-
<el-form-item :label="$t('views.application.form.roleSettings.label')">
56+
<el-form-item>
5757
<template #label>
5858
<div class="flex-between">
5959
<span>{{ $t('views.application.form.roleSettings.label') }}</span>
@@ -72,7 +72,7 @@
7272
v-model="chat_data.system"
7373
style="height: 100px"
7474
@submitDialog="submitSystemDialog"
75-
:placeholder="$t('views.application.form.roleSettings.label')"
75+
:placeholder="$t('views.application.form.roleSettings.placeholder')"
7676
/>
7777
</el-form-item>
7878
<el-form-item

ui/src/workflow/nodes/image-understand/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
v-model="form_data.system"
6262
style="height: 100px"
6363
@submitDialog="submitSystemDialog"
64-
:placeholder="$t('views.application.form.roleSettings.label')"
64+
:placeholder="$t('views.application.form.roleSettings.placeholder')"
6565
/>
6666
</el-form-item>
6767
<el-form-item

0 commit comments

Comments
 (0)