fix: refine translation (#2165)

Co-authored-by: wangdan-fit2cloud <dan.wang@fit2cloud.com>
This commit is contained in:
shaohuzhang1 2025-02-08 17:30:36 +08:00 committed by GitHub
parent d2cd48a86a
commit 6c6821df20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
36 changed files with 117 additions and 99 deletions

View File

@ -57,7 +57,7 @@
> >
<div class="card-never border-r-4"> <div class="card-never border-r-4">
<h5 class="p-8-12"> <h5 class="p-8-12">
{{ $t('chat.executionDetails.paramInput') }} {{ $t('common.param.inputParam') }}
</h5> </h5>
<div class="p-8-12 border-t-dashed lighter"> <div class="p-8-12 border-t-dashed lighter">
<div class="mb-8"> <div class="mb-8">
@ -218,7 +218,7 @@
<h5 class="p-8-12"> <h5 class="p-8-12">
{{ {{
item.type == WorkflowType.Application item.type == WorkflowType.Application
? $t('chat.executionDetails.paramOutput') ? $t('common.param.outputParam')
: $t('chat.executionDetails.answer') : $t('chat.executionDetails.answer')
}} }}
</h5> </h5>
@ -260,9 +260,7 @@
<template v-if="item.type === WorkflowType.DocumentExtractNode"> <template v-if="item.type === WorkflowType.DocumentExtractNode">
<div class="card-never border-r-4"> <div class="card-never border-r-4">
<h5 class="p-8-12 flex align-center"> <h5 class="p-8-12 flex align-center">
<span class="mr-4">{{ <span class="mr-4">{{ $t('chat.executionDetails.paramOutput') }}</span>
$t('chat.executionDetails.paramOutput')
}}</span>
<el-tooltip <el-tooltip
effect="dark" effect="dark"
@ -297,7 +295,7 @@
<template v-if="item.type === WorkflowType.SpeechToTextNode"> <template v-if="item.type === WorkflowType.SpeechToTextNode">
<div class="card-never border-r-4"> <div class="card-never border-r-4">
<h5 class="p-8-12"> <h5 class="p-8-12">
{{ $t('chat.executionDetails.paramInput') }} {{ $t('common.param.inputParam') }}
</h5> </h5>
<div class="p-8-12 border-t-dashed lighter"> <div class="p-8-12 border-t-dashed lighter">
<div class="mb-8"> <div class="mb-8">
@ -322,7 +320,7 @@
</div> </div>
<div class="card-never border-r-4"> <div class="card-never border-r-4">
<h5 class="p-8-12"> <h5 class="p-8-12">
{{ $t('chat.executionDetails.paramOutput') }} {{ $t('common.param.outputParam') }}
</h5> </h5>
<div class="p-8-12 border-t-dashed lighter"> <div class="p-8-12 border-t-dashed lighter">
<el-card <el-card
@ -348,7 +346,7 @@
<template v-if="item.type === WorkflowType.TextToSpeechNode"> <template v-if="item.type === WorkflowType.TextToSpeechNode">
<div class="card-never border-r-4"> <div class="card-never border-r-4">
<h5 class="p-8-12"> <h5 class="p-8-12">
{{ $t('chat.executionDetails.paramInput') }} {{ $t('common.param.inputParam') }}
</h5> </h5>
<div class="p-8-12 border-t-dashed lighter"> <div class="p-8-12 border-t-dashed lighter">
<div class="p-8-12 border-t-dashed lighter"> <div class="p-8-12 border-t-dashed lighter">
@ -368,7 +366,7 @@
</div> </div>
<div class="card-never border-r-4"> <div class="card-never border-r-4">
<h5 class="p-8-12"> <h5 class="p-8-12">
{{ $t('chat.executionDetails.paramOutput') }} {{ $t('common.param.outputParam') }}
</h5> </h5>
<div class="p-8-12 border-t-dashed lighter"> <div class="p-8-12 border-t-dashed lighter">
<p class="mb-8 color-secondary"> <p class="mb-8 color-secondary">
@ -475,11 +473,9 @@
<template v-if="item.type === WorkflowType.FormNode"> <template v-if="item.type === WorkflowType.FormNode">
<div class="card-never border-r-4"> <div class="card-never border-r-4">
<h5 class="p-8-12"> <h5 class="p-8-12">
{{ $t('chat.executionDetails.paramOutput') {{ $t('common.param.outputParam')
}}<span style="color: #f54a45">{{ }}<span style="color: #f54a45">{{
item.is_submit item.is_submit ? '' : `(${$t('chat.executionDetails.noSubmit')})`
? ''
: `(${$t('chat.executionDetails.noSubmit')})`
}}</span> }}</span>
</h5> </h5>
@ -572,7 +568,7 @@
<h5 class="p-8-12"> <h5 class="p-8-12">
{{ {{
item.type == WorkflowType.Application item.type == WorkflowType.Application
? $t('chat.executionDetails.paramOutput') ? $t('common.param.outputParam')
: $t('chat.executionDetails.answer') : $t('chat.executionDetails.answer')
}} }}
</h5> </h5>
@ -602,7 +598,7 @@
<h5 class="p-8-12"> <h5 class="p-8-12">
{{ {{
item.type == WorkflowType.Application item.type == WorkflowType.Application
? $t('chat.executionDetails.paramOutput') ? $t('common.param.outputParam')
: $t('chat.executionDetails.answer') : $t('chat.executionDetails.answer')
}} }}
</h5> </h5>

View File

@ -63,8 +63,6 @@ export default {
}, },
executionDetails: { executionDetails: {
title: 'Execution Details', title: 'Execution Details',
paramInput: 'Parameter Input',
paramOutput: 'Parameter Output',
paramOutputTooltip: 'Each document supports previewing up to 500 characters', paramOutputTooltip: 'Each document supports previewing up to 500 characters',
audioFile: 'Audio File', audioFile: 'Audio File',
searchContent: 'Search Query', searchContent: 'Search Query',

View File

@ -50,6 +50,11 @@ export default {
enableSuccess: 'Successful', enableSuccess: 'Successful',
disableSuccess: 'Successful' disableSuccess: 'Successful'
}, },
param: {
outputParam: 'Output Parameters',
inputParam: 'Input Parameters'
},
inputPlaceholder: 'Please input', inputPlaceholder: 'Please input',
title: 'Title', title: 'Title',
content: 'Content' content: 'Content'

View File

@ -80,7 +80,14 @@ export default {
currentTime: 'Current Time' currentTime: 'Current Time'
}, },
baseNode: { baseNode: {
label: 'Base Info', label: 'Base Information',
appName: {
label: 'App Name',
},
appDescription: {
label: 'App Description',
},
fileUpload: { fileUpload: {
label: 'File Upload', label: 'File Upload',
tooltip: 'When enabled, the Q&A page will display a file upload button.' tooltip: 'When enabled, the Q&A page will display a file upload button.'
@ -100,7 +107,7 @@ export default {
aiChatNode: { aiChatNode: {
label: 'AI Chat', label: 'AI Chat',
text: 'Chat with an AI model', text: 'Chat with an AI model',
answer: 'AI Answer Content', answer: 'AI Content',
returnContent: { returnContent: {
label: 'Return Content', label: 'Return Content',
tooltip: `If turned off, the content of this node will not be output to the user. tooltip: `If turned off, the content of this node will not be output to the user.
@ -194,7 +201,7 @@ export default {
imageUnderstandNode: { imageUnderstandNode: {
label: 'Image Understanding', label: 'Image Understanding',
text: 'Analyze images to identify objects, scenes, and provide answers', text: 'Analyze images to identify objects, scenes, and provide answers',
answer: 'AI Answer Content', answer: 'AI Content',
model: { model: {
label: 'Vision Model', label: 'Vision Model',
requiredMessage: 'Please select a vision model' requiredMessage: 'Please select a vision model'
@ -207,7 +214,7 @@ export default {
imageGenerateNode: { imageGenerateNode: {
label: 'Image Generation', label: 'Image Generation',
text: 'Generate images based on provided text content', text: 'Generate images based on provided text content',
answer: 'AI Answer Content', answer: 'AI Content',
model: { model: {
label: 'Image Generation Model', label: 'Image Generation Model',
requiredMessage: 'Please select an image generation model' requiredMessage: 'Please select an image generation model'

View File

@ -27,7 +27,6 @@ export default {
applicationForm: { applicationForm: {
title: { title: {
info: 'APP Information',
appTest: 'Debug Preview', appTest: 'Debug Preview',
copy: 'copy' copy: 'copy'
}, },
@ -153,7 +152,6 @@ export default {
lark: 'Lark', lark: 'Lark',
larkTip: 'Create Lark intelligent APP', larkTip: 'Create Lark intelligent APP',
setting: 'Setting', setting: 'Setting',
info: 'APP Information',
callback: 'Callback Address', callback: 'Callback Address',
callbackTip: 'Please fill in the callback address', callbackTip: 'Please fill in the callback address',
wecomPlatform: 'WeCom Open Platform', wecomPlatform: 'WeCom Open Platform',

View File

@ -11,7 +11,8 @@ export default {
migration: 'Move', migration: 'Move',
cancelGenerateQuestion: 'Cancel Generating Questions', cancelGenerateQuestion: 'Cancel Generating Questions',
cancelVectorization: 'Cancel Vectorization', cancelVectorization: 'Cancel Vectorization',
cancelGenerate: 'Cancel Generation' cancelGenerate: 'Cancel Generation',
export: 'Export to',
}, },
tip: { tip: {
saveMessage: 'Current changes have not been saved. Confirm exit?', saveMessage: 'Current changes have not been saved. Confirm exit?',
@ -171,7 +172,7 @@ export default {
tip3: 'tags, and the system will automatically relate the questions within these tags;', tip3: 'tags, and the system will automatically relate the questions within these tags;',
tip4: 'The generation effect depends on the selected model and prompt. Users can adjust to achieve the best effect.', tip4: 'The generation effect depends on the selected model and prompt. Users can adjust to achieve the best effect.',
prompt1: prompt1:
'Content: {data}\n \n Please summarize the above content and generate a summary based on the content 5 a question. \nAnswer requirements: \n - Please output only questions; \n - Please place each question in', 'Content: {data}\n \n Please summarize the above and generate 5 questions based on the summary. \nAnswer requirements: \n - Please output only questions; \n - Please place each question in',
prompt2: 'tag.' prompt2: 'tag.'
} }
} }

View File

@ -41,11 +41,6 @@ export default {
label: 'Permissions', label: 'Permissions',
requiredMessage: 'Please select' requiredMessage: 'Please select'
}, },
inputParam: {
label: 'Input Parameters',
placeholder: 'Please enter parameter values',
requiredMessage: 'Please enter parameter values'
},
paramName: { paramName: {
label: 'Parameter Name', label: 'Parameter Name',
placeholder: 'Please enter the parameter name', placeholder: 'Please enter the parameter name',
@ -63,10 +58,11 @@ export default {
label: 'Required' label: 'Required'
}, },
param: { param: {
outputParam: 'Output Parameters',
paramInfo1: 'Displayed when using the function', paramInfo1: 'Displayed when using the function',
paramInfo2: 'Not displayed when using the function', paramInfo2: 'Not displayed when using the function',
code: 'Content (Python)' code: 'Content (Python)',
selectPlaceholder: 'Please select parameter',
inputPlaceholder: 'Please enter parameter values',
}, },
debug: { debug: {
run: 'Run', run: 'Run',

View File

@ -1,5 +1,6 @@
export default { export default {
title: 'Segment', title: 'Segment',
paragraph_count: 'Segments',
editParagraph: 'Edit Segment', editParagraph: 'Edit Segment',
addParagraph: 'Add Segment', addParagraph: 'Add Segment',
paragraphDetail: 'Segment Details', paragraphDetail: 'Segment Details',
@ -18,11 +19,11 @@ export default {
}, },
form: { form: {
paragraphTitle: { paragraphTitle: {
label: 'Segment Title', label: 'Title',
placeholder: 'Please enter the segment title' placeholder: 'Please enter the segment title'
}, },
content: { content: {
label: 'Segment Content', label: 'Content',
placeholder: 'Please enter the segment content', placeholder: 'Please enter the segment content',
requiredMessage1: 'Please enter the segment content', requiredMessage1: 'Please enter the segment content',
requiredMessage2: 'Content must not exceed 100,000 words' requiredMessage2: 'Content must not exceed 100,000 words'

View File

@ -36,8 +36,8 @@ export default {
authEndpointPlaceholder: 'Please enter auth endpoint', authEndpointPlaceholder: 'Please enter auth endpoint',
tokenEndpoint: 'Token Endpoint', tokenEndpoint: 'Token Endpoint',
tokenEndpointPlaceholder: 'Please enter token endpoint', tokenEndpointPlaceholder: 'Please enter token endpoint',
userInfoEndpoint: 'User Info Endpoint', userInfoEndpoint: 'User Information Endpoint',
userInfoEndpointPlaceholder: 'Please enter user info endpoint', userInfoEndpointPlaceholder: 'Please enter user information endpoint',
clientId: 'Client ID', clientId: 'Client ID',
clientIdPlaceholder: 'Please enter client ID', clientIdPlaceholder: 'Please enter client ID',
clientSecret: 'Client Secret', clientSecret: 'Client Secret',
@ -55,8 +55,8 @@ export default {
authEndpointPlaceholder: 'Please enter auth endpoint', authEndpointPlaceholder: 'Please enter auth endpoint',
tokenEndpoint: 'Token Endpoint', tokenEndpoint: 'Token Endpoint',
tokenEndpointPlaceholder: 'Please enter token endpoint', tokenEndpointPlaceholder: 'Please enter token endpoint',
userInfoEndpoint: 'User Info Endpoint', userInfoEndpoint: 'User Information Endpoint',
userInfoEndpointPlaceholder: 'Please enter user info endpoint', userInfoEndpointPlaceholder: 'Please enter user information endpoint',
scope: 'Scope', scope: 'Scope',
scopePlaceholder: 'Please enter scope', scopePlaceholder: 'Please enter scope',
clientId: 'Client ID', clientId: 'Client ID',

View File

@ -64,8 +64,6 @@ export default {
}, },
executionDetails: { executionDetails: {
title: '执行详情', title: '执行详情',
paramInput: '参数输入',
paramOutput: '参数输出',
paramOutputTooltip: '每个文档仅支持预览500字', paramOutputTooltip: '每个文档仅支持预览500字',
audioFile: '语音文件', audioFile: '语音文件',
searchContent: '检索内容', searchContent: '检索内容',

View File

@ -27,7 +27,6 @@ export default {
createDate: '创建日期', createDate: '创建日期',
createTime: '创建时间', createTime: '创建时间',
operation: '操作', operation: '操作',
character: '字符', character: '字符',
export: '导出', export: '导出',
exportSuccess: '导出成功', exportSuccess: '导出成功',
@ -53,5 +52,9 @@ export default {
}, },
inputPlaceholder: '请输入', inputPlaceholder: '请输入',
title: '标题', title: '标题',
content: '内容' content: '内容',
param: {
outputParam: '输出参数',
inputParam:'输入参数'
}
} }

View File

@ -82,6 +82,13 @@ export default {
}, },
baseNode: { baseNode: {
label: '基本信息', label: '基本信息',
appName: {
label: '应用名称',
},
appDescription: {
label: '应用描述',
},
fileUpload: { fileUpload: {
label: '文件上传', label: '文件上传',
tooltip: '开启后,问答页面会显示上传文件的按钮。' tooltip: '开启后,问答页面会显示上传文件的按钮。'

View File

@ -23,7 +23,6 @@ export default {
}, },
applicationForm: { applicationForm: {
title: { title: {
info: '应用信息',
appTest: '调试预览', appTest: '调试预览',
copy: '副本' copy: '副本'
}, },
@ -145,7 +144,6 @@ export default {
lark: '飞书应用', lark: '飞书应用',
larkTip: '打造飞书智能应用', larkTip: '打造飞书智能应用',
setting: '配置', setting: '配置',
info: '应用信息',
callback: '回调地址', callback: '回调地址',
callbackTip: '请输入回调地址', callbackTip: '请输入回调地址',
wecomPlatform: '企业微信后台', wecomPlatform: '企业微信后台',

View File

@ -11,7 +11,8 @@ export default {
migration: '迁移', migration: '迁移',
cancelGenerateQuestion: '取消生成问题', cancelGenerateQuestion: '取消生成问题',
cancelVectorization: '取消向量化', cancelVectorization: '取消向量化',
cancelGenerate: '取消生成' cancelGenerate: '取消生成',
export: '导出',
}, },
tip: { tip: {
saveMessage: '当前的更改尚未保存,确认退出吗?', saveMessage: '当前的更改尚未保存,确认退出吗?',

View File

@ -39,11 +39,6 @@ export default {
label: '权限', label: '权限',
requiredMessage: '请选择' requiredMessage: '请选择'
}, },
inputParam: {
label: '输入参数',
placeholder: '请选择参数',
requiredMessage: '请输入参数值'
},
paramName: { paramName: {
label: '参数名', label: '参数名',
placeholder: '请输入参数名', placeholder: '请输入参数名',
@ -61,10 +56,11 @@ export default {
label: '是否必填' label: '是否必填'
}, },
param: { param: {
outputParam: '输出参数',
paramInfo1: '使用函数时显示', paramInfo1: '使用函数时显示',
paramInfo2: '使用函数时不显示', paramInfo2: '使用函数时不显示',
code: '函数内容Python' code: '函数内容Python',
selectPlaceholder: '请选择参数',
inputPlaceholder: '请输入参数值',
}, },
debug: { debug: {
run: '运行', run: '运行',

View File

@ -1,5 +1,6 @@
export default { export default {
title: '段落', title: '段落',
paragraph_count: '段落',
editParagraph: '编辑分段', editParagraph: '编辑分段',
addParagraph: '添加分段', addParagraph: '添加分段',
paragraphDetail: '分段详情', paragraphDetail: '分段详情',

View File

@ -63,8 +63,6 @@ export default {
}, },
executionDetails: { executionDetails: {
title: '執行詳細', title: '執行詳細',
paramInput: '參數輸入',
paramOutput: '參數輸出',
paramOutputTooltip: '每個文件僅支持預覽 500 字', paramOutputTooltip: '每個文件僅支持預覽 500 字',
audioFile: '語音文件', audioFile: '語音文件',
searchContent: '檢索內容', searchContent: '檢索內容',

View File

@ -52,5 +52,9 @@ export default {
}, },
inputPlaceholder: '請輸入', inputPlaceholder: '請輸入',
title: '標題', title: '標題',
content: '内容' content: '内容',
param: {
outputParam: '輸出參數',
inputParam:'輸入參數'
}
} }

View File

@ -19,7 +19,7 @@ export default {
autoSave: '自動保存', autoSave: '自動保存',
latestRelease: '最近發布', latestRelease: '最近發布',
copyParam: '複製參數', copyParam: '複製參數',
debug: '調試', debug: '調試'
}, },
tip: { tip: {
publicSuccess: '發布成功', publicSuccess: '發布成功',
@ -82,6 +82,12 @@ export default {
}, },
baseNode: { baseNode: {
label: '基本信息', label: '基本信息',
appName: {
label: '應用名稱'
},
appDescription: {
label: '應用描述'
},
fileUpload: { fileUpload: {
label: '文件上傳', label: '文件上傳',
tooltip: '開啟後,問答頁面會顯示上傳文件的按鈕。' tooltip: '開啟後,問答頁面會顯示上傳文件的按鈕。'

View File

@ -23,7 +23,6 @@ export default {
}, },
applicationForm: { applicationForm: {
title: { title: {
info: '應用資訊',
appTest: '調試預覽', appTest: '調試預覽',
copy: '副本' copy: '副本'
}, },
@ -145,7 +144,6 @@ export default {
lark: '飛書應用', lark: '飛書應用',
larkTip: '打造飛書智慧應用', larkTip: '打造飛書智慧應用',
setting: '配置', setting: '配置',
info: '應用資訊',
callback: '回呼位址', callback: '回呼位址',
callbackTip: '請輸入回呼位址', callbackTip: '請輸入回呼位址',
wecomPlatform: '企業微信後台', wecomPlatform: '企業微信後台',

View File

@ -9,10 +9,10 @@ export default {
}, },
setting: { setting: {
migration: '遷移', migration: '遷移',
cancelGenerateQuestion: '取消生成問題', cancelGenerateQuestion: '取消生成問題',
cancelVectorization: '取消向量化', cancelVectorization: '取消向量化',
cancelGenerate: '取消生成' cancelGenerate: '取消生成',
export: '匯出',
}, },
tip: { tip: {
saveMessage: '當前的更改尚未保存,確認退出嗎?', saveMessage: '當前的更改尚未保存,確認退出嗎?',

View File

@ -39,11 +39,6 @@ export default {
label: '權限', label: '權限',
requiredMessage: '請選擇' requiredMessage: '請選擇'
}, },
inputParam: {
label: '輸入參數',
placeholder: '請輸入參數值',
requiredMessage: '請輸入參數值'
},
paramName: { paramName: {
label: '參數名', label: '參數名',
placeholder: '請輸入參數名', placeholder: '請輸入參數名',
@ -61,10 +56,11 @@ export default {
label: '是否必填' label: '是否必填'
}, },
param: { param: {
outputParam: '輸出參數',
paramInfo1: '使用函數時顯示', paramInfo1: '使用函數時顯示',
paramInfo2: '使用函數時不顯示', paramInfo2: '使用函數時不顯示',
code: '函数内容Python' code: '函数内容Python',
selectPlaceholder: '請选择參數',
inputPlaceholder: '請輸入參數值',
}, },
debug: { debug: {
run: '運行', run: '運行',

View File

@ -1,5 +1,6 @@
export default { export default {
title: '段落', title: '段落',
paragraph_count: '段落',
editParagraph: '編輯分段', editParagraph: '編輯分段',
addParagraph: '添加分段', addParagraph: '添加分段',
paragraphDetail: '分段詳情', paragraphDetail: '分段詳情',

View File

@ -14,7 +14,7 @@
<el-col :span="10"> <el-col :span="10">
<div class="p-24 mb-16" style="padding-bottom: 0"> <div class="p-24 mb-16" style="padding-bottom: 0">
<h4 class="title-decoration-1"> <h4 class="title-decoration-1">
{{ $t('views.application.applicationForm.title.info') }} {{ $t('views.applicationOverview.appInfo.header') }}
</h4> </h4>
</div> </div>
<div class="scrollbar-height-left"> <div class="scrollbar-height-left">

View File

@ -300,10 +300,10 @@ const drawerTitle = computed(
const infoTitle = computed( const infoTitle = computed(
() => () =>
({ ({
wechat: t('views.application.applicationAccess.info'), wechat: t('views.applicationOverview.appInfo.header'),
dingtalk: t('views.application.applicationAccess.info'), dingtalk: t('views.applicationOverview.appInfo.header'),
wecom: t('views.application.applicationAccess.info'), wecom: t('views.applicationOverview.appInfo.header'),
feishu: t('views.application.applicationAccess.info') feishu: t('views.applicationOverview.appInfo.header')
})[configType.value] })[configType.value]
) )

View File

@ -119,11 +119,11 @@
> >
<el-dropdown-item @click.stop="export_dataset(item)"> <el-dropdown-item @click.stop="export_dataset(item)">
<AppIcon iconName="app-export"></AppIcon <AppIcon iconName="app-export"></AppIcon
>{{ $t('common.export') }}Excel</el-dropdown-item >{{ $t('views.document.setting.export') }} Excel</el-dropdown-item
> >
<el-dropdown-item @click.stop="export_zip_dataset(item)"> <el-dropdown-item @click.stop="export_zip_dataset(item)">
<AppIcon iconName="app-export"></AppIcon <AppIcon iconName="app-export"></AppIcon
>{{ $t('common.export') }}ZIP</el-dropdown-item >{{ $t('views.document.setting.export') }} ZIP</el-dropdown-item
> >
<el-dropdown-item icon="Delete" @click.stop="deleteDataset(item)">{{ <el-dropdown-item icon="Delete" @click.stop="deleteDataset(item)">{{
$t('common.delete') $t('common.delete')

View File

@ -324,11 +324,11 @@
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item @click="exportDocument(row)"> <el-dropdown-item @click="exportDocument(row)">
<AppIcon iconName="app-export"></AppIcon> <AppIcon iconName="app-export"></AppIcon>
{{ $t('common.export') }}Excel {{ $t('views.document.setting.export') }} Excel
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item @click="exportDocumentZip(row)"> <el-dropdown-item @click="exportDocumentZip(row)">
<AppIcon iconName="app-export"></AppIcon> <AppIcon iconName="app-export"></AppIcon>
{{ $t('common.export') }}Zip {{ $t('views.document.setting.export') }} Zip
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item icon="Delete" @click.stop="deleteDocument(row)">{{ <el-dropdown-item icon="Delete" @click.stop="deleteDocument(row)">{{
$t('common.delete') $t('common.delete')
@ -413,11 +413,11 @@
> >
<el-dropdown-item @click="exportDocument(row)"> <el-dropdown-item @click="exportDocument(row)">
<AppIcon iconName="app-export"></AppIcon> <AppIcon iconName="app-export"></AppIcon>
{{ $t('common.export') }}Excel {{ $t('views.document.setting.export') }} Excel
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item @click="exportDocumentZip(row)"> <el-dropdown-item @click="exportDocumentZip(row)">
<AppIcon iconName="app-export"></AppIcon> <AppIcon iconName="app-export"></AppIcon>
{{ $t('common.export') }}Zip {{ $t('views.document.setting.export') }} Zip
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item icon="Delete" @click.stop="deleteDocument(row)">{{ <el-dropdown-item icon="Delete" @click.stop="deleteDocument(row)">{{
$t('common.delete') $t('common.delete')

View File

@ -13,7 +13,7 @@
<div> <div>
<div v-if="form.debug_field_list.length > 0" class="mb-16"> <div v-if="form.debug_field_list.length > 0" class="mb-16">
<h4 class="title-decoration-1 mb-16"> <h4 class="title-decoration-1 mb-16">
{{ $t('views.functionLib.functionForm.form.inputParam.label') }} {{ $t('common.param.inputParam') }}
</h4> </h4>
<el-card shadow="never" class="card-never" style="--el-card-padding: 12px"> <el-card shadow="never" class="card-never" style="--el-card-padding: 12px">
<el-form <el-form
@ -30,7 +30,7 @@
:prop="'debug_field_list.' + index + '.value'" :prop="'debug_field_list.' + index + '.value'"
:rules="{ :rules="{
required: item.is_required, required: item.is_required,
message: $t('views.functionLib.functionForm.form.inputParam.requiredMessage'), message: $t('views.functionLib.functionForm.form.param.inputPlaceholder'),
trigger: 'blur' trigger: 'blur'
}" }"
> >
@ -44,7 +44,7 @@
</template> </template>
<el-input <el-input
v-model="item.value" v-model="item.value"
:placeholder="$t('views.functionLib.functionForm.form.inputParam.requiredMessage')" :placeholder="$t('views.functionLib.functionForm.form.param.inputPlaceholder')"
/> />
</el-form-item> </el-form-item>
</template> </template>

View File

@ -67,7 +67,7 @@
</el-form> </el-form>
<div class="flex-between"> <div class="flex-between">
<h4 class="title-decoration-1 mb-16"> <h4 class="title-decoration-1 mb-16">
{{ $t('views.functionLib.functionForm.form.inputParam.label') }} {{ $t('common.param.inputParam') }}
<el-text type="info" class="color-secondary"> <el-text type="info" class="color-secondary">
{{ $t('views.functionLib.functionForm.form.param.paramInfo1') }} {{ $t('views.functionLib.functionForm.form.param.paramInfo1') }}
</el-text> </el-text>
@ -141,7 +141,7 @@
</div> </div>
</div> </div>
<h4 class="title-decoration-1 mb-16 mt-16"> <h4 class="title-decoration-1 mb-16 mt-16">
{{ $t('views.functionLib.functionForm.form.param.outputParam') }} {{ $t('common.param.outputParam') }}
<el-text type="info" class="color-secondary"> <el-text type="info" class="color-secondary">
{{ $t('views.functionLib.functionForm.form.param.paramInfo1') }} {{ $t('views.functionLib.functionForm.form.param.paramInfo1') }}
</el-text> </el-text>

View File

@ -34,7 +34,7 @@
v-loading="(paginationConfig.current_page === 1 && loading) || changeStateloading" v-loading="(paginationConfig.current_page === 1 && loading) || changeStateloading"
> >
<div class="flex-between p-8"> <div class="flex-between p-8">
<span>{{ paginationConfig.total }} {{ $t('views.paragraph.title') }}</span> <span>{{ paginationConfig.total }} {{ $t('views.paragraph.paragraph_count') }}</span>
<el-input <el-input
v-model="search" v-model="search"
:placeholder="$t('common.search')" :placeholder="$t('common.search')"

View File

@ -98,7 +98,7 @@
<slot></slot> <slot></slot>
<template v-if="nodeFields.length > 0"> <template v-if="nodeFields.length > 0">
<h5 class="title-decoration-1 mb-8 mt-8"> <h5 class="title-decoration-1 mb-8 mt-8">
{{ $t('chat.executionDetails.paramOutput') }} {{ $t('common.param.outputParam') }}
</h5> </h5>
<template v-for="(item, index) in nodeFields" :key="index"> <template v-for="(item, index) in nodeFields" :key="index">
<div <div

View File

@ -187,8 +187,8 @@ export const formNode = {
is_result: true, is_result: true,
form_field_list: [], form_field_list: [],
form_content_format: `${t('views.applicationWorkflow.nodes.formNode.form_content_format1')} form_content_format: `${t('views.applicationWorkflow.nodes.formNode.form_content_format1')}
{{form}} {{form}}
${t('views.applicationWorkflow.nodes.formNode.form_content_format2')}` ${t('views.applicationWorkflow.nodes.formNode.form_content_format2')}`
}, },
config: { config: {
fields: [ fields: [

View File

@ -10,7 +10,7 @@
ref="baseNodeFormRef" ref="baseNodeFormRef"
> >
<el-form-item <el-form-item
:label="$t('views.application.applicationForm.form.appName.label')" :label="$t('views.applicationWorkflow.nodes.baseNode.appName.label')"
prop="name" prop="name"
:rules="{ :rules="{
message: t('views.application.applicationForm.form.appName.requiredMessage'), message: t('views.application.applicationForm.form.appName.requiredMessage'),
@ -26,7 +26,7 @@
@blur="form_data.name = form_data.name?.trim()" @blur="form_data.name = form_data.name?.trim()"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('views.application.applicationForm.form.appDescription.label')"> <el-form-item :label="$t('views.applicationWorkflow.nodes.baseNode.appDescription.label')">
<el-input <el-input
v-model="form_data.desc" v-model="form_data.desc"
:placeholder="$t('views.application.applicationForm.form.appDescription.placeholder')" :placeholder="$t('views.application.applicationForm.form.appDescription.placeholder')"

View File

@ -211,8 +211,8 @@ const deleteField = (form_field_data: any) => {
const form = ref<any>({ const form = ref<any>({
is_result: true, is_result: true,
form_content_format: `${t('views.applicationWorkflow.nodes.formNode.form_content_format1')} form_content_format: `${t('views.applicationWorkflow.nodes.formNode.form_content_format1')}
{{form}} {{form}}
${t('views.applicationWorkflow.nodes.formNode.form_content_format2')}`, ${t('views.applicationWorkflow.nodes.formNode.form_content_format2')}`,
form_field_list: [] form_field_list: []
}) })
const form_data = computed({ const form_data = computed({

View File

@ -1,7 +1,7 @@
<template> <template>
<NodeContainer :nodeModel="nodeModel"> <NodeContainer :nodeModel="nodeModel">
<h5 class="title-decoration-1 mb-16">{{ $t('views.applicationWorkflow.nodeSetting') }}</h5> <h5 class="title-decoration-1 mb-16">{{ $t('views.applicationWorkflow.nodeSetting') }}</h5>
<h5 class="lighter mb-8">{{ $t('views.functionLib.functionForm.form.inputParam.label') }}</h5> <h5 class="lighter mb-8">{{ $t('common.param.inputParam') }}</h5>
<el-form <el-form
@submit.prevent @submit.prevent
ref="FunctionNodeFormRef" ref="FunctionNodeFormRef"
@ -18,7 +18,10 @@
:prop="'input_field_list.' + index + '.value'" :prop="'input_field_list.' + index + '.value'"
:rules="{ :rules="{
required: item.is_required, required: item.is_required,
message: $t('views.functionLib.functionForm.form.inputParam.requiredMessage'), message:
item.source === 'reference'
? $t('views.functionLib.functionForm.form.param.selectPlaceholder')
: $t('views.functionLib.functionForm.form.param.inputPlaceholder'),
trigger: 'blur' trigger: 'blur'
}" }"
> >
@ -40,10 +43,14 @@
ref="nodeCascaderRef" ref="nodeCascaderRef"
:nodeModel="nodeModel" :nodeModel="nodeModel"
class="w-full" class="w-full"
:placeholder="$t('views.functionLib.functionForm.form.inputParam.placeholder')" :placeholder="$t('views.functionLib.functionForm.form.param.selectPlaceholder')"
v-model="item.value" v-model="item.value"
/> />
<el-input v-else v-model="item.value" :placeholder="$t('views.functionLib.functionForm.form.inputParam.requiredMessage')" /> <el-input
v-else
v-model="item.value"
:placeholder="$t('views.functionLib.functionForm.form.param.inputPlaceholder')"
/>
</el-form-item> </el-form-item>
</template> </template>
</div> </div>

View File

@ -2,7 +2,7 @@
<NodeContainer :nodeModel="nodeModel"> <NodeContainer :nodeModel="nodeModel">
<h5 class="title-decoration-1 mb-16">{{ $t('views.applicationWorkflow.nodeSetting') }}</h5> <h5 class="title-decoration-1 mb-16">{{ $t('views.applicationWorkflow.nodeSetting') }}</h5>
<div class="flex-between"> <div class="flex-between">
<h5 class="lighter mb-8">{{ $t('views.functionLib.functionForm.form.inputParam.label') }}</h5> <h5 class="lighter mb-8">{{ $t('common.param.inputParam') }}</h5>
<el-button link type="primary" @click="openAddDialog()"> <el-button link type="primary" @click="openAddDialog()">
<el-icon class="mr-4"><Plus /></el-icon> {{ $t('common.add') }} <el-icon class="mr-4"><Plus /></el-icon> {{ $t('common.add') }}
</el-button> </el-button>
@ -23,7 +23,9 @@
:prop="'input_field_list.' + index + '.value'" :prop="'input_field_list.' + index + '.value'"
:rules="{ :rules="{
required: item.is_required, required: item.is_required,
message: $t('views.functionLib.functionForm.form.inputParam.requiredMessage'), message: item.source === 'reference'
? $t('views.functionLib.functionForm.form.param.selectPlaceholder')
: $t('views.functionLib.functionForm.form.param.inputPlaceholder'),
trigger: 'blur' trigger: 'blur'
}" }"
> >
@ -55,14 +57,14 @@
ref="nodeCascaderRef" ref="nodeCascaderRef"
:nodeModel="nodeModel" :nodeModel="nodeModel"
class="w-full" class="w-full"
:placeholder="$t('views.functionLib.functionForm.form.inputParam.placeholder')" :placeholder="$t('views.functionLib.functionForm.form.param.selectPlaceholder')"
v-model="item.value" v-model="item.value"
:width="100" :width="100"
/> />
<el-input <el-input
v-else v-else
v-model="item.value" v-model="item.value"
:placeholder="$t('views.functionLib.functionForm.form.inputParam.requiredMessage')" :placeholder="$t('views.functionLib.functionForm.form.param.inputPlaceholder')"
/> />
</el-form-item> </el-form-item>
</template> </template>