mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: refine translation (#2165)
Co-authored-by: wangdan-fit2cloud <dan.wang@fit2cloud.com>
This commit is contained in:
parent
d2cd48a86a
commit
6c6821df20
|
|
@ -57,7 +57,7 @@
|
|||
>
|
||||
<div class="card-never border-r-4">
|
||||
<h5 class="p-8-12">
|
||||
{{ $t('chat.executionDetails.paramInput') }}
|
||||
{{ $t('common.param.inputParam') }}
|
||||
</h5>
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
<div class="mb-8">
|
||||
|
|
@ -218,7 +218,7 @@
|
|||
<h5 class="p-8-12">
|
||||
{{
|
||||
item.type == WorkflowType.Application
|
||||
? $t('chat.executionDetails.paramOutput')
|
||||
? $t('common.param.outputParam')
|
||||
: $t('chat.executionDetails.answer')
|
||||
}}
|
||||
</h5>
|
||||
|
|
@ -260,9 +260,7 @@
|
|||
<template v-if="item.type === WorkflowType.DocumentExtractNode">
|
||||
<div class="card-never border-r-4">
|
||||
<h5 class="p-8-12 flex align-center">
|
||||
<span class="mr-4">{{
|
||||
$t('chat.executionDetails.paramOutput')
|
||||
}}</span>
|
||||
<span class="mr-4">{{ $t('chat.executionDetails.paramOutput') }}</span>
|
||||
|
||||
<el-tooltip
|
||||
effect="dark"
|
||||
|
|
@ -297,7 +295,7 @@
|
|||
<template v-if="item.type === WorkflowType.SpeechToTextNode">
|
||||
<div class="card-never border-r-4">
|
||||
<h5 class="p-8-12">
|
||||
{{ $t('chat.executionDetails.paramInput') }}
|
||||
{{ $t('common.param.inputParam') }}
|
||||
</h5>
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
<div class="mb-8">
|
||||
|
|
@ -322,7 +320,7 @@
|
|||
</div>
|
||||
<div class="card-never border-r-4">
|
||||
<h5 class="p-8-12">
|
||||
{{ $t('chat.executionDetails.paramOutput') }}
|
||||
{{ $t('common.param.outputParam') }}
|
||||
</h5>
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
<el-card
|
||||
|
|
@ -348,7 +346,7 @@
|
|||
<template v-if="item.type === WorkflowType.TextToSpeechNode">
|
||||
<div class="card-never border-r-4">
|
||||
<h5 class="p-8-12">
|
||||
{{ $t('chat.executionDetails.paramInput') }}
|
||||
{{ $t('common.param.inputParam') }}
|
||||
</h5>
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
|
|
@ -368,7 +366,7 @@
|
|||
</div>
|
||||
<div class="card-never border-r-4">
|
||||
<h5 class="p-8-12">
|
||||
{{ $t('chat.executionDetails.paramOutput') }}
|
||||
{{ $t('common.param.outputParam') }}
|
||||
</h5>
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
<p class="mb-8 color-secondary">
|
||||
|
|
@ -475,11 +473,9 @@
|
|||
<template v-if="item.type === WorkflowType.FormNode">
|
||||
<div class="card-never border-r-4">
|
||||
<h5 class="p-8-12">
|
||||
{{ $t('chat.executionDetails.paramOutput')
|
||||
{{ $t('common.param.outputParam')
|
||||
}}<span style="color: #f54a45">{{
|
||||
item.is_submit
|
||||
? ''
|
||||
: `(${$t('chat.executionDetails.noSubmit')})`
|
||||
item.is_submit ? '' : `(${$t('chat.executionDetails.noSubmit')})`
|
||||
}}</span>
|
||||
</h5>
|
||||
|
||||
|
|
@ -572,7 +568,7 @@
|
|||
<h5 class="p-8-12">
|
||||
{{
|
||||
item.type == WorkflowType.Application
|
||||
? $t('chat.executionDetails.paramOutput')
|
||||
? $t('common.param.outputParam')
|
||||
: $t('chat.executionDetails.answer')
|
||||
}}
|
||||
</h5>
|
||||
|
|
@ -602,7 +598,7 @@
|
|||
<h5 class="p-8-12">
|
||||
{{
|
||||
item.type == WorkflowType.Application
|
||||
? $t('chat.executionDetails.paramOutput')
|
||||
? $t('common.param.outputParam')
|
||||
: $t('chat.executionDetails.answer')
|
||||
}}
|
||||
</h5>
|
||||
|
|
|
|||
|
|
@ -63,8 +63,6 @@ export default {
|
|||
},
|
||||
executionDetails: {
|
||||
title: 'Execution Details',
|
||||
paramInput: 'Parameter Input',
|
||||
paramOutput: 'Parameter Output',
|
||||
paramOutputTooltip: 'Each document supports previewing up to 500 characters',
|
||||
audioFile: 'Audio File',
|
||||
searchContent: 'Search Query',
|
||||
|
|
|
|||
|
|
@ -50,6 +50,11 @@ export default {
|
|||
enableSuccess: 'Successful',
|
||||
disableSuccess: 'Successful'
|
||||
},
|
||||
param: {
|
||||
outputParam: 'Output Parameters',
|
||||
inputParam: 'Input Parameters'
|
||||
},
|
||||
|
||||
inputPlaceholder: 'Please input',
|
||||
title: 'Title',
|
||||
content: 'Content'
|
||||
|
|
|
|||
|
|
@ -80,7 +80,14 @@ export default {
|
|||
currentTime: 'Current Time'
|
||||
},
|
||||
baseNode: {
|
||||
label: 'Base Info',
|
||||
label: 'Base Information',
|
||||
appName: {
|
||||
label: 'App Name',
|
||||
|
||||
},
|
||||
appDescription: {
|
||||
label: 'App Description',
|
||||
},
|
||||
fileUpload: {
|
||||
label: 'File Upload',
|
||||
tooltip: 'When enabled, the Q&A page will display a file upload button.'
|
||||
|
|
@ -100,7 +107,7 @@ export default {
|
|||
aiChatNode: {
|
||||
label: 'AI Chat',
|
||||
text: 'Chat with an AI model',
|
||||
answer: 'AI Answer Content',
|
||||
answer: 'AI Content',
|
||||
returnContent: {
|
||||
label: 'Return Content',
|
||||
tooltip: `If turned off, the content of this node will not be output to the user.
|
||||
|
|
@ -194,7 +201,7 @@ export default {
|
|||
imageUnderstandNode: {
|
||||
label: 'Image Understanding',
|
||||
text: 'Analyze images to identify objects, scenes, and provide answers',
|
||||
answer: 'AI Answer Content',
|
||||
answer: 'AI Content',
|
||||
model: {
|
||||
label: 'Vision Model',
|
||||
requiredMessage: 'Please select a vision model'
|
||||
|
|
@ -207,7 +214,7 @@ export default {
|
|||
imageGenerateNode: {
|
||||
label: 'Image Generation',
|
||||
text: 'Generate images based on provided text content',
|
||||
answer: 'AI Answer Content',
|
||||
answer: 'AI Content',
|
||||
model: {
|
||||
label: 'Image Generation Model',
|
||||
requiredMessage: 'Please select an image generation model'
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ export default {
|
|||
|
||||
applicationForm: {
|
||||
title: {
|
||||
info: 'APP Information',
|
||||
appTest: 'Debug Preview',
|
||||
copy: 'copy'
|
||||
},
|
||||
|
|
@ -153,7 +152,6 @@ export default {
|
|||
lark: 'Lark',
|
||||
larkTip: 'Create Lark intelligent APP',
|
||||
setting: 'Setting',
|
||||
info: 'APP Information',
|
||||
callback: 'Callback Address',
|
||||
callbackTip: 'Please fill in the callback address',
|
||||
wecomPlatform: 'WeCom Open Platform',
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ export default {
|
|||
migration: 'Move',
|
||||
cancelGenerateQuestion: 'Cancel Generating Questions',
|
||||
cancelVectorization: 'Cancel Vectorization',
|
||||
cancelGenerate: 'Cancel Generation'
|
||||
cancelGenerate: 'Cancel Generation',
|
||||
export: 'Export to',
|
||||
},
|
||||
tip: {
|
||||
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;',
|
||||
tip4: 'The generation effect depends on the selected model and prompt. Users can adjust to achieve the best effect.',
|
||||
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.'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,11 +41,6 @@ export default {
|
|||
label: 'Permissions',
|
||||
requiredMessage: 'Please select'
|
||||
},
|
||||
inputParam: {
|
||||
label: 'Input Parameters',
|
||||
placeholder: 'Please enter parameter values',
|
||||
requiredMessage: 'Please enter parameter values'
|
||||
},
|
||||
paramName: {
|
||||
label: 'Parameter Name',
|
||||
placeholder: 'Please enter the parameter name',
|
||||
|
|
@ -63,10 +58,11 @@ export default {
|
|||
label: 'Required'
|
||||
},
|
||||
param: {
|
||||
outputParam: 'Output Parameters',
|
||||
paramInfo1: '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: {
|
||||
run: 'Run',
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
export default {
|
||||
title: 'Segment',
|
||||
paragraph_count: 'Segments',
|
||||
editParagraph: 'Edit Segment',
|
||||
addParagraph: 'Add Segment',
|
||||
paragraphDetail: 'Segment Details',
|
||||
|
|
@ -18,11 +19,11 @@ export default {
|
|||
},
|
||||
form: {
|
||||
paragraphTitle: {
|
||||
label: 'Segment Title',
|
||||
label: 'Title',
|
||||
placeholder: 'Please enter the segment title'
|
||||
},
|
||||
content: {
|
||||
label: 'Segment Content',
|
||||
label: 'Content',
|
||||
placeholder: 'Please enter the segment content',
|
||||
requiredMessage1: 'Please enter the segment content',
|
||||
requiredMessage2: 'Content must not exceed 100,000 words'
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ export default {
|
|||
authEndpointPlaceholder: 'Please enter auth endpoint',
|
||||
tokenEndpoint: 'Token Endpoint',
|
||||
tokenEndpointPlaceholder: 'Please enter token endpoint',
|
||||
userInfoEndpoint: 'User Info Endpoint',
|
||||
userInfoEndpointPlaceholder: 'Please enter user info endpoint',
|
||||
userInfoEndpoint: 'User Information Endpoint',
|
||||
userInfoEndpointPlaceholder: 'Please enter user information endpoint',
|
||||
clientId: 'Client ID',
|
||||
clientIdPlaceholder: 'Please enter client ID',
|
||||
clientSecret: 'Client Secret',
|
||||
|
|
@ -55,8 +55,8 @@ export default {
|
|||
authEndpointPlaceholder: 'Please enter auth endpoint',
|
||||
tokenEndpoint: 'Token Endpoint',
|
||||
tokenEndpointPlaceholder: 'Please enter token endpoint',
|
||||
userInfoEndpoint: 'User Info Endpoint',
|
||||
userInfoEndpointPlaceholder: 'Please enter user info endpoint',
|
||||
userInfoEndpoint: 'User Information Endpoint',
|
||||
userInfoEndpointPlaceholder: 'Please enter user information endpoint',
|
||||
scope: 'Scope',
|
||||
scopePlaceholder: 'Please enter scope',
|
||||
clientId: 'Client ID',
|
||||
|
|
|
|||
|
|
@ -64,8 +64,6 @@ export default {
|
|||
},
|
||||
executionDetails: {
|
||||
title: '执行详情',
|
||||
paramInput: '参数输入',
|
||||
paramOutput: '参数输出',
|
||||
paramOutputTooltip: '每个文档仅支持预览500字',
|
||||
audioFile: '语音文件',
|
||||
searchContent: '检索内容',
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ export default {
|
|||
createDate: '创建日期',
|
||||
createTime: '创建时间',
|
||||
operation: '操作',
|
||||
|
||||
character: '字符',
|
||||
export: '导出',
|
||||
exportSuccess: '导出成功',
|
||||
|
|
@ -53,5 +52,9 @@ export default {
|
|||
},
|
||||
inputPlaceholder: '请输入',
|
||||
title: '标题',
|
||||
content: '内容'
|
||||
content: '内容',
|
||||
param: {
|
||||
outputParam: '输出参数',
|
||||
inputParam:'输入参数'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,6 +82,13 @@ export default {
|
|||
},
|
||||
baseNode: {
|
||||
label: '基本信息',
|
||||
appName: {
|
||||
label: '应用名称',
|
||||
|
||||
},
|
||||
appDescription: {
|
||||
label: '应用描述',
|
||||
},
|
||||
fileUpload: {
|
||||
label: '文件上传',
|
||||
tooltip: '开启后,问答页面会显示上传文件的按钮。'
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ export default {
|
|||
},
|
||||
applicationForm: {
|
||||
title: {
|
||||
info: '应用信息',
|
||||
appTest: '调试预览',
|
||||
copy: '副本'
|
||||
},
|
||||
|
|
@ -145,7 +144,6 @@ export default {
|
|||
lark: '飞书应用',
|
||||
larkTip: '打造飞书智能应用',
|
||||
setting: '配置',
|
||||
info: '应用信息',
|
||||
callback: '回调地址',
|
||||
callbackTip: '请输入回调地址',
|
||||
wecomPlatform: '企业微信后台',
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ export default {
|
|||
migration: '迁移',
|
||||
cancelGenerateQuestion: '取消生成问题',
|
||||
cancelVectorization: '取消向量化',
|
||||
cancelGenerate: '取消生成'
|
||||
cancelGenerate: '取消生成',
|
||||
export: '导出',
|
||||
},
|
||||
tip: {
|
||||
saveMessage: '当前的更改尚未保存,确认退出吗?',
|
||||
|
|
|
|||
|
|
@ -39,11 +39,6 @@ export default {
|
|||
label: '权限',
|
||||
requiredMessage: '请选择'
|
||||
},
|
||||
inputParam: {
|
||||
label: '输入参数',
|
||||
placeholder: '请选择参数',
|
||||
requiredMessage: '请输入参数值'
|
||||
},
|
||||
paramName: {
|
||||
label: '参数名',
|
||||
placeholder: '请输入参数名',
|
||||
|
|
@ -61,10 +56,11 @@ export default {
|
|||
label: '是否必填'
|
||||
},
|
||||
param: {
|
||||
outputParam: '输出参数',
|
||||
paramInfo1: '使用函数时显示',
|
||||
paramInfo2: '使用函数时不显示',
|
||||
code: '函数内容(Python)'
|
||||
code: '函数内容(Python)',
|
||||
selectPlaceholder: '请选择参数',
|
||||
inputPlaceholder: '请输入参数值',
|
||||
},
|
||||
debug: {
|
||||
run: '运行',
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
export default {
|
||||
title: '段落',
|
||||
paragraph_count: '段落',
|
||||
editParagraph: '编辑分段',
|
||||
addParagraph: '添加分段',
|
||||
paragraphDetail: '分段详情',
|
||||
|
|
|
|||
|
|
@ -63,8 +63,6 @@ export default {
|
|||
},
|
||||
executionDetails: {
|
||||
title: '執行詳細',
|
||||
paramInput: '參數輸入',
|
||||
paramOutput: '參數輸出',
|
||||
paramOutputTooltip: '每個文件僅支持預覽 500 字',
|
||||
audioFile: '語音文件',
|
||||
searchContent: '檢索內容',
|
||||
|
|
|
|||
|
|
@ -52,5 +52,9 @@ export default {
|
|||
},
|
||||
inputPlaceholder: '請輸入',
|
||||
title: '標題',
|
||||
content: '内容'
|
||||
content: '内容',
|
||||
param: {
|
||||
outputParam: '輸出參數',
|
||||
inputParam:'輸入參數'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export default {
|
|||
autoSave: '自動保存',
|
||||
latestRelease: '最近發布',
|
||||
copyParam: '複製參數',
|
||||
debug: '調試',
|
||||
debug: '調試'
|
||||
},
|
||||
tip: {
|
||||
publicSuccess: '發布成功',
|
||||
|
|
@ -82,6 +82,12 @@ export default {
|
|||
},
|
||||
baseNode: {
|
||||
label: '基本信息',
|
||||
appName: {
|
||||
label: '應用名稱'
|
||||
},
|
||||
appDescription: {
|
||||
label: '應用描述'
|
||||
},
|
||||
fileUpload: {
|
||||
label: '文件上傳',
|
||||
tooltip: '開啟後,問答頁面會顯示上傳文件的按鈕。'
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ export default {
|
|||
},
|
||||
applicationForm: {
|
||||
title: {
|
||||
info: '應用資訊',
|
||||
appTest: '調試預覽',
|
||||
copy: '副本'
|
||||
},
|
||||
|
|
@ -145,7 +144,6 @@ export default {
|
|||
lark: '飛書應用',
|
||||
larkTip: '打造飛書智慧應用',
|
||||
setting: '配置',
|
||||
info: '應用資訊',
|
||||
callback: '回呼位址',
|
||||
callbackTip: '請輸入回呼位址',
|
||||
wecomPlatform: '企業微信後台',
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ export default {
|
|||
},
|
||||
setting: {
|
||||
migration: '遷移',
|
||||
|
||||
cancelGenerateQuestion: '取消生成問題',
|
||||
cancelVectorization: '取消向量化',
|
||||
cancelGenerate: '取消生成'
|
||||
cancelGenerate: '取消生成',
|
||||
export: '匯出',
|
||||
},
|
||||
tip: {
|
||||
saveMessage: '當前的更改尚未保存,確認退出嗎?',
|
||||
|
|
|
|||
|
|
@ -39,11 +39,6 @@ export default {
|
|||
label: '權限',
|
||||
requiredMessage: '請選擇'
|
||||
},
|
||||
inputParam: {
|
||||
label: '輸入參數',
|
||||
placeholder: '請輸入參數值',
|
||||
requiredMessage: '請輸入參數值'
|
||||
},
|
||||
paramName: {
|
||||
label: '參數名',
|
||||
placeholder: '請輸入參數名',
|
||||
|
|
@ -61,10 +56,11 @@ export default {
|
|||
label: '是否必填'
|
||||
},
|
||||
param: {
|
||||
outputParam: '輸出參數',
|
||||
paramInfo1: '使用函數時顯示',
|
||||
paramInfo2: '使用函數時不顯示',
|
||||
code: '函数内容(Python)'
|
||||
code: '函数内容(Python)',
|
||||
selectPlaceholder: '請选择參數',
|
||||
inputPlaceholder: '請輸入參數值',
|
||||
},
|
||||
debug: {
|
||||
run: '運行',
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
export default {
|
||||
title: '段落',
|
||||
paragraph_count: '段落',
|
||||
editParagraph: '編輯分段',
|
||||
addParagraph: '添加分段',
|
||||
paragraphDetail: '分段詳情',
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
<el-col :span="10">
|
||||
<div class="p-24 mb-16" style="padding-bottom: 0">
|
||||
<h4 class="title-decoration-1">
|
||||
{{ $t('views.application.applicationForm.title.info') }}
|
||||
{{ $t('views.applicationOverview.appInfo.header') }}
|
||||
</h4>
|
||||
</div>
|
||||
<div class="scrollbar-height-left">
|
||||
|
|
|
|||
|
|
@ -300,10 +300,10 @@ const drawerTitle = computed(
|
|||
const infoTitle = computed(
|
||||
() =>
|
||||
({
|
||||
wechat: t('views.application.applicationAccess.info'),
|
||||
dingtalk: t('views.application.applicationAccess.info'),
|
||||
wecom: t('views.application.applicationAccess.info'),
|
||||
feishu: t('views.application.applicationAccess.info')
|
||||
wechat: t('views.applicationOverview.appInfo.header'),
|
||||
dingtalk: t('views.applicationOverview.appInfo.header'),
|
||||
wecom: t('views.applicationOverview.appInfo.header'),
|
||||
feishu: t('views.applicationOverview.appInfo.header')
|
||||
})[configType.value]
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -119,11 +119,11 @@
|
|||
>
|
||||
<el-dropdown-item @click.stop="export_dataset(item)">
|
||||
<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)">
|
||||
<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)">{{
|
||||
$t('common.delete')
|
||||
|
|
|
|||
|
|
@ -324,11 +324,11 @@
|
|||
</el-dropdown-item>
|
||||
<el-dropdown-item @click="exportDocument(row)">
|
||||
<AppIcon iconName="app-export"></AppIcon>
|
||||
{{ $t('common.export') }}Excel
|
||||
{{ $t('views.document.setting.export') }} Excel
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item @click="exportDocumentZip(row)">
|
||||
<AppIcon iconName="app-export"></AppIcon>
|
||||
{{ $t('common.export') }}Zip
|
||||
{{ $t('views.document.setting.export') }} Zip
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item icon="Delete" @click.stop="deleteDocument(row)">{{
|
||||
$t('common.delete')
|
||||
|
|
@ -413,11 +413,11 @@
|
|||
>
|
||||
<el-dropdown-item @click="exportDocument(row)">
|
||||
<AppIcon iconName="app-export"></AppIcon>
|
||||
{{ $t('common.export') }}Excel
|
||||
{{ $t('views.document.setting.export') }} Excel
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item @click="exportDocumentZip(row)">
|
||||
<AppIcon iconName="app-export"></AppIcon>
|
||||
{{ $t('common.export') }}Zip
|
||||
{{ $t('views.document.setting.export') }} Zip
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item icon="Delete" @click.stop="deleteDocument(row)">{{
|
||||
$t('common.delete')
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<div>
|
||||
<div v-if="form.debug_field_list.length > 0" class="mb-16">
|
||||
<h4 class="title-decoration-1 mb-16">
|
||||
{{ $t('views.functionLib.functionForm.form.inputParam.label') }}
|
||||
{{ $t('common.param.inputParam') }}
|
||||
</h4>
|
||||
<el-card shadow="never" class="card-never" style="--el-card-padding: 12px">
|
||||
<el-form
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
:prop="'debug_field_list.' + index + '.value'"
|
||||
:rules="{
|
||||
required: item.is_required,
|
||||
message: $t('views.functionLib.functionForm.form.inputParam.requiredMessage'),
|
||||
message: $t('views.functionLib.functionForm.form.param.inputPlaceholder'),
|
||||
trigger: 'blur'
|
||||
}"
|
||||
>
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
</template>
|
||||
<el-input
|
||||
v-model="item.value"
|
||||
:placeholder="$t('views.functionLib.functionForm.form.inputParam.requiredMessage')"
|
||||
:placeholder="$t('views.functionLib.functionForm.form.param.inputPlaceholder')"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
</el-form>
|
||||
<div class="flex-between">
|
||||
<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">
|
||||
{{ $t('views.functionLib.functionForm.form.param.paramInfo1') }}
|
||||
</el-text>
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<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">
|
||||
{{ $t('views.functionLib.functionForm.form.param.paramInfo1') }}
|
||||
</el-text>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
v-loading="(paginationConfig.current_page === 1 && loading) || changeStateloading"
|
||||
>
|
||||
<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
|
||||
v-model="search"
|
||||
:placeholder="$t('common.search')"
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
<slot></slot>
|
||||
<template v-if="nodeFields.length > 0">
|
||||
<h5 class="title-decoration-1 mb-8 mt-8">
|
||||
{{ $t('chat.executionDetails.paramOutput') }}
|
||||
{{ $t('common.param.outputParam') }}
|
||||
</h5>
|
||||
<template v-for="(item, index) in nodeFields" :key="index">
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -187,8 +187,8 @@ export const formNode = {
|
|||
is_result: true,
|
||||
form_field_list: [],
|
||||
form_content_format: `${t('views.applicationWorkflow.nodes.formNode.form_content_format1')}
|
||||
{{form}}
|
||||
${t('views.applicationWorkflow.nodes.formNode.form_content_format2')}`
|
||||
{{form}}
|
||||
${t('views.applicationWorkflow.nodes.formNode.form_content_format2')}`
|
||||
},
|
||||
config: {
|
||||
fields: [
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
ref="baseNodeFormRef"
|
||||
>
|
||||
<el-form-item
|
||||
:label="$t('views.application.applicationForm.form.appName.label')"
|
||||
:label="$t('views.applicationWorkflow.nodes.baseNode.appName.label')"
|
||||
prop="name"
|
||||
:rules="{
|
||||
message: t('views.application.applicationForm.form.appName.requiredMessage'),
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
@blur="form_data.name = form_data.name?.trim()"
|
||||
/>
|
||||
</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
|
||||
v-model="form_data.desc"
|
||||
:placeholder="$t('views.application.applicationForm.form.appDescription.placeholder')"
|
||||
|
|
|
|||
|
|
@ -211,8 +211,8 @@ const deleteField = (form_field_data: any) => {
|
|||
const form = ref<any>({
|
||||
is_result: true,
|
||||
form_content_format: `${t('views.applicationWorkflow.nodes.formNode.form_content_format1')}
|
||||
{{form}}
|
||||
${t('views.applicationWorkflow.nodes.formNode.form_content_format2')}`,
|
||||
{{form}}
|
||||
${t('views.applicationWorkflow.nodes.formNode.form_content_format2')}`,
|
||||
form_field_list: []
|
||||
})
|
||||
const form_data = computed({
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<NodeContainer :nodeModel="nodeModel">
|
||||
<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
|
||||
@submit.prevent
|
||||
ref="FunctionNodeFormRef"
|
||||
|
|
@ -18,7 +18,10 @@
|
|||
:prop="'input_field_list.' + index + '.value'"
|
||||
:rules="{
|
||||
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'
|
||||
}"
|
||||
>
|
||||
|
|
@ -40,10 +43,14 @@
|
|||
ref="nodeCascaderRef"
|
||||
:nodeModel="nodeModel"
|
||||
class="w-full"
|
||||
:placeholder="$t('views.functionLib.functionForm.form.inputParam.placeholder')"
|
||||
:placeholder="$t('views.functionLib.functionForm.form.param.selectPlaceholder')"
|
||||
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>
|
||||
</template>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<NodeContainer :nodeModel="nodeModel">
|
||||
<h5 class="title-decoration-1 mb-16">{{ $t('views.applicationWorkflow.nodeSetting') }}</h5>
|
||||
<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-icon class="mr-4"><Plus /></el-icon> {{ $t('common.add') }}
|
||||
</el-button>
|
||||
|
|
@ -23,7 +23,9 @@
|
|||
:prop="'input_field_list.' + index + '.value'"
|
||||
:rules="{
|
||||
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'
|
||||
}"
|
||||
>
|
||||
|
|
@ -55,14 +57,14 @@
|
|||
ref="nodeCascaderRef"
|
||||
:nodeModel="nodeModel"
|
||||
class="w-full"
|
||||
:placeholder="$t('views.functionLib.functionForm.form.inputParam.placeholder')"
|
||||
:placeholder="$t('views.functionLib.functionForm.form.param.selectPlaceholder')"
|
||||
v-model="item.value"
|
||||
:width="100"
|
||||
/>
|
||||
<el-input
|
||||
v-else
|
||||
v-model="item.value"
|
||||
:placeholder="$t('views.functionLib.functionForm.form.inputParam.requiredMessage')"
|
||||
:placeholder="$t('views.functionLib.functionForm.form.param.inputPlaceholder')"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue