4949 </el-button >
5050 <template #dropdown >
5151 <div style =" width : 280px " class =" p-12-16" >
52- <h5 >执行条件 </h5 >
52+ <h5 >{{ $t('views.applicationWorkflow.condition.title') }} </h5 >
5353 <p class =" mt-8 lighter" >
54- <span >前置 </span >
54+ <span >{{ $t('views.applicationWorkflow.condition.front') }} </span >
5555 <el-select v-model =" condition" size =" small" style =" width : 60px ; margin : 0 8px " >
56- <el-option label =" 所有" value =" AND" />
57- <el-option label =" 任一" value =" OR" />
56+ <el-option
57+ :label =" $t('views.applicationWorkflow.condition.AND')"
58+ value =" AND"
59+ />
60+ <el-option :label =" $t('views.applicationWorkflow.condition.OR')" value =" OR" />
5861 </el-select >
59- <span >连线节点执行完,执行当前节点 </span >
62+ <span >{{ $t('views.applicationWorkflow.condition.text') }} </span >
6063 </p >
6164 </div >
6265 </template >
6770 </el-button >
6871 <template #dropdown >
6972 <el-dropdown-menu style =" min-width : 80px " >
70- <el-dropdown-item @click =" copyNode" class =" p-8" >复制</el-dropdown-item >
73+ <el-dropdown-item @click =" copyNode" class =" p-8" >{{
74+ $t('common.copy')
75+ }}</el-dropdown-item >
7176 <el-dropdown-item @click =" deleteNode" class =" border-t p-8" >{{
7277 $t('common.delete')
7378 }}</el-dropdown-item >
8186 <el-alert
8287 v-if =" node_status != 200"
8388 class =" mb-16"
84- :title =" props.nodeModel.type === 'application-node' ? '该应用不可用' : '该函数不可用'"
89+ :title ="
90+ props.nodeModel.type === 'application-node'
91+ ? $t('views.applicationWorkflow.tip.applicationNodeError')
92+ : $t('views.applicationWorkflow.tip.functionNodeError')
93+ "
8594 type =" error"
8695 show-icon
8796 :closable =" false"
8897 />
8998 <slot ></slot >
9099 <template v-if =" nodeFields .length > 0 " >
91- <h5 class =" title-decoration-1 mb-8 mt-8" >参数输出</h5 >
100+ <h5 class =" title-decoration-1 mb-8 mt-8" >
101+ {{ $t('components.chat.executionDetails.paramOutput') }}
102+ </h5 >
92103 <template v-for =" (item , index ) in nodeFields " :key =" index " >
93104 <div
94105 class =" flex-between border-r-4 p-8-12 mb-8 layout-bg lighter"
98109 <span style =" max-width : 92% " >{{ item.label }} {{ '{' + item.value + '}' }}</span >
99110 <el-tooltip
100111 effect =" dark"
101- content =" 复制参数 "
112+ : content =" $t('views.applicationWorkflow.setting.copyParam') "
102113 placement =" top"
103114 v-if =" showicon === index"
104115 >
@@ -138,7 +149,7 @@ import { iconComponent } from '../icons/utils'
138149import { copyClick } from ' @/utils/clipboard'
139150import { WorkflowType } from ' @/enums/workflow'
140151import { MsgError , MsgConfirm } from ' @/utils/message'
141-
152+ import { t } from ' @/locales '
142153const {
143154 params : { id }
144155} = app .config .globalProperties .$route as any
@@ -200,7 +211,7 @@ function editName(val: string) {
200211 ) {
201212 set (props .nodeModel .properties , ' stepName' , val .trim ())
202213 } else {
203- MsgError (' 节点名称已存在! ' )
214+ MsgError (t ( ' views.applicationWorkflow.tip.repeatedNodeError ' ) )
204215 }
205216 }
206217}
@@ -219,7 +230,7 @@ const copyNode = () => {
219230 props .nodeModel .graphModel .toFront (cloneNode .id )
220231}
221232const deleteNode = () => {
222- MsgConfirm (t (' common.tip' ), ` 确定删除该节点? ` , {
233+ MsgConfirm (t (' common.tip' ), t ( ' views.applicationWorkflow.delete.confirmTitle ' ) , {
223234 confirmButtonText: t (' common.delete' ),
224235 confirmButtonClass: ' danger'
225236 }).then (() => {
0 commit comments