fix: loop node issue
parent
04b42c399d
commit
2c624a26ba
|
|
@ -858,6 +858,42 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<!-- 循环跳过 节点-->
|
||||||
|
<template v-if="data.type === WorkflowType.LoopContinueNode">
|
||||||
|
<div class="card-never border-r-6">
|
||||||
|
<h5 class="p-8-12">
|
||||||
|
{{ $t('common.param.outputParam') }}
|
||||||
|
</h5>
|
||||||
|
|
||||||
|
<div class="p-8-12 border-t-dashed lighter">
|
||||||
|
<div class="mb-8">
|
||||||
|
<span class="color-secondary">
|
||||||
|
{{ $t('views.applicationWorkflow.nodes.loopContinueNode.isContinue') }}:</span
|
||||||
|
>
|
||||||
|
|
||||||
|
{{ data.is_continue }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<!-- 循环退出 节点-->
|
||||||
|
<template v-if="data.type === WorkflowType.LoopBreakNode">
|
||||||
|
<div class="card-never border-r-6">
|
||||||
|
<h5 class="p-8-12">
|
||||||
|
{{ $t('common.param.outputParam') }}
|
||||||
|
</h5>
|
||||||
|
|
||||||
|
<div class="p-8-12 border-t-dashed lighter">
|
||||||
|
<div class="mb-8">
|
||||||
|
<span class="color-secondary">
|
||||||
|
{{ $t('views.applicationWorkflow.nodes.loopBreakNode.isBreak') }}:</span
|
||||||
|
>
|
||||||
|
|
||||||
|
{{ data.is_break }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
|
||||||
|
|
@ -379,10 +379,12 @@ export default {
|
||||||
loopContinueNode: {
|
loopContinueNode: {
|
||||||
label: 'Continue',
|
label: 'Continue',
|
||||||
text: 'Used to terminate the current loop and proceed to the next one.',
|
text: 'Used to terminate the current loop and proceed to the next one.',
|
||||||
|
isContinue: 'Continue',
|
||||||
},
|
},
|
||||||
loopBreakNode: {
|
loopBreakNode: {
|
||||||
label: 'Break',
|
label: 'Break',
|
||||||
text: 'Terminate the current loop and exit the loop body',
|
text: 'Terminate the current loop and exit the loop body',
|
||||||
|
isBreak: 'Break',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
compare: {
|
compare: {
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ export default {
|
||||||
placeholder: 'Please select an AI model',
|
placeholder: 'Please select an AI model',
|
||||||
},
|
},
|
||||||
roleSettings: {
|
roleSettings: {
|
||||||
label: 'System Role',
|
label: 'System Prompt',
|
||||||
placeholder: 'You are xxx assistant',
|
placeholder: 'You are xxx assistant',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -379,10 +379,12 @@ export default {
|
||||||
loopContinueNode: {
|
loopContinueNode: {
|
||||||
label: 'Continue',
|
label: 'Continue',
|
||||||
text: '用于终止当前循环,执行下次循环',
|
text: '用于终止当前循环,执行下次循环',
|
||||||
|
isContinue: 'Continue',
|
||||||
},
|
},
|
||||||
loopBreakNode: {
|
loopBreakNode: {
|
||||||
label: 'Break',
|
label: 'Break',
|
||||||
text: '终止当前循环,跳出循环体',
|
text: '终止当前循环,跳出循环体',
|
||||||
|
isBreak: 'Break',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
compare: {
|
compare: {
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ export default {
|
||||||
placeholder: '请选择 AI 模型',
|
placeholder: '请选择 AI 模型',
|
||||||
},
|
},
|
||||||
roleSettings: {
|
roleSettings: {
|
||||||
label: '系统角色',
|
label: '系统提示词',
|
||||||
placeholder: '你是 xxx 小助手',
|
placeholder: '你是 xxx 小助手',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -366,8 +366,12 @@ export default {
|
||||||
loopVariable: '循環變量',
|
loopVariable: '循環變量',
|
||||||
},
|
},
|
||||||
loopBodyNode: { label: '循環體', text: '循環體' },
|
loopBodyNode: { label: '循環體', text: '循環體' },
|
||||||
loopContinueNode: { label: 'Continue', text: '用於終止當前循環,執行下次循環' },
|
loopContinueNode: {
|
||||||
loopBreakNode: { label: 'Break', text: '終止當前循環,跳出循環體' },
|
label: 'Continue',
|
||||||
|
text: '用於終止當前循環,執行下次循環',
|
||||||
|
isContinue: 'Continue',
|
||||||
|
},
|
||||||
|
loopBreakNode: { label: 'Break', text: '終止當前循環,跳出循環體', isBreak: 'Break' },
|
||||||
},
|
},
|
||||||
compare: {
|
compare: {
|
||||||
is_null: '為空',
|
is_null: '為空',
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ export default {
|
||||||
placeholder: '請選擇 AI 模型',
|
placeholder: '請選擇 AI 模型',
|
||||||
},
|
},
|
||||||
roleSettings: {
|
roleSettings: {
|
||||||
label: '角色設定',
|
label: '系統提示詞',
|
||||||
placeholder: '你是 xxx 小助手',
|
placeholder: '你是 xxx 小助手',
|
||||||
},
|
},
|
||||||
prompt: {
|
prompt: {
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
>
|
>
|
||||||
</ModelSelect>
|
</ModelSelect>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('views.application.form.roleSettings.label')">
|
<el-form-item>
|
||||||
<template #label>
|
<template #label>
|
||||||
<div class="flex-between">
|
<div class="flex-between">
|
||||||
<span>{{ $t('views.application.form.roleSettings.label') }}</span>
|
<span>{{ $t('views.application.form.roleSettings.label') }}</span>
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
></ModelSelect>
|
></ModelSelect>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item :label="$t('views.application.form.roleSettings.label')">
|
<el-form-item>
|
||||||
<template #label>
|
<template #label>
|
||||||
<div class="flex-between">
|
<div class="flex-between">
|
||||||
<span>{{ $t('views.application.form.roleSettings.label') }}</span>
|
<span>{{ $t('views.application.form.roleSettings.label') }}</span>
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
v-model="chat_data.system"
|
v-model="chat_data.system"
|
||||||
style="height: 100px"
|
style="height: 100px"
|
||||||
@submitDialog="submitSystemDialog"
|
@submitDialog="submitSystemDialog"
|
||||||
:placeholder="$t('views.application.form.roleSettings.label')"
|
:placeholder="$t('views.application.form.roleSettings.placeholder')"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
v-model="form_data.system"
|
v-model="form_data.system"
|
||||||
style="height: 100px"
|
style="height: 100px"
|
||||||
@submitDialog="submitSystemDialog"
|
@submitDialog="submitSystemDialog"
|
||||||
:placeholder="$t('views.application.form.roleSettings.label')"
|
:placeholder="$t('views.application.form.roleSettings.placeholder')"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
v-model="form_data.system"
|
v-model="form_data.system"
|
||||||
style="height: 100px"
|
style="height: 100px"
|
||||||
@submitDialog="submitSystemDialog"
|
@submitDialog="submitSystemDialog"
|
||||||
:placeholder="$t('views.application.form.roleSettings.label')"
|
:placeholder="$t('views.application.form.roleSettings.placeholder')"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue