diff --git a/src/components/dialoguePanel/DialogueFlow.vue b/src/components/dialoguePanel/DialogueFlow.vue index f806251751e8b4b99688b2d2526830f84e115a9d..b9aac288ac6049f54797a50a48df3937a55cf561 100644 --- a/src/components/dialoguePanel/DialogueFlow.vue +++ b/src/components/dialoguePanel/DialogueFlow.vue @@ -77,7 +77,7 @@ watch(
- {{ StatusInfoTitle[props.flowdata.status] }} + {{ $t(`flow.${StatusInfoTitle[props.flowdata.status]}`) }}
- 输入 - 输出 - 参数 - 补充参数 {{ props.title }} + {{ $t('flow.input')}} + {{ $t('flow.output')}} + {{ $t('flow.params')}} + {{ $t('flow.supplementaryParameters')}} {{ props.title }} { resultInfo.value.status = props.status; // 目前props.status只有success、error、running三种 - resultInfo.value.title = StatusInfoTitle[props.status]; + resultInfo.value.title = $t(`flow.${StatusInfoTitle[props.status]}`); if (props?.inputAndOutput) { resultInfo.value.time = props.inputAndOutput.input_parameters.timeout ?? 0; diff --git a/src/views/createapp/components/types.ts b/src/views/createapp/components/types.ts index e80c3b4df5b17267d080800b073e4a0968ad2478..d3fd2a2774c01d77adb447d26e5340e655943284 100644 --- a/src/views/createapp/components/types.ts +++ b/src/views/createapp/components/types.ts @@ -41,10 +41,10 @@ export enum BranchSourceIdType { // 这里配置的是各节点运行状态 export const StatusInfoTitle = { default: '', - success: '运行成功', - error: '运行失败', - running: '运行中', - pending: '运行中', + success: 'success', + error: 'error', + running: 'running', + pending: 'pending', }; // 这里配置工作流画布默认的viewPort缩放级别 diff --git a/src/views/createapp/components/workFlow.vue b/src/views/createapp/components/workFlow.vue index 5f0e6441775d53e6c16a44645ab281d9c4364ff8..4a06178d346978e2de8c1a3a70aa6c018140739d 100644 --- a/src/views/createapp/components/workFlow.vue +++ b/src/views/createapp/components/workFlow.vue @@ -943,7 +943,7 @@ defineExpose({
-
{{ StatusInfoTitle[debugStatus] }}
+
{{ $t(`flow.${StatusInfoTitle[debugStatus]}`) }}
-
{{ props.data.name }}
+
{{ $t('main.start') }}
+
{{ $t('main.end') }}