Skip to content

Commit 7ea0824

Browse files
committed
fix: 1050995
--bug=1050995 --user=王孝刚 【函数库】-创建函数,Python 代码为空时提示语和界面显示标题的不符 https://www.tapd.cn/57709429/s/1647978
1 parent 86330c4 commit 7ea0824

File tree

6 files changed

+28
-14
lines changed

6 files changed

+28
-14
lines changed

ui/src/components/dynamics-form/items/JsonInput.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,23 @@
2020
</el-button>
2121
</div>
2222
<!-- Codemirror 弹出层 -->
23-
<el-dialog v-model="dialogVisible" :title="'Python ' + $t('views.functionLib.functionForm.form.param.code')" append-to-body fullscreen>
23+
<el-dialog
24+
v-model="dialogVisible"
25+
:title="$t('views.functionLib.functionForm.form.param.code')"
26+
append-to-body
27+
fullscreen
28+
>
2429
<Codemirror
2530
v-model="cloneContent"
2631
:extensions="extensions"
2732
:style="codemirrorStyle"
2833
:tab-size="4"
2934
:autofocus="true"
30-
style="height: calc(100vh - 160px) !important; border: 1px solid #bbbfc4; border-radius: 4px"
35+
style="
36+
height: calc(100vh - 160px) !important;
37+
border: 1px solid #bbbfc4;
38+
border-radius: 4px;
39+
"
3140
/>
3241
<template #footer>
3342
<div class="dialog-footer mt-24">

ui/src/locales/lang/en_US/views/function-lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default {
6666
outputParam: 'Output Parameters',
6767
paramInfo1: 'Displayed when using the function',
6868
paramInfo2: 'Not displayed when using the function',
69-
code: 'Code',
69+
code: 'Function Content (Python)'
7070
},
7171
debug: {
7272
run: 'Run',

ui/src/locales/lang/zh_CN/views/function-lib.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
disabled: '禁用'
1111
},
1212
tip: {
13-
saveMessage:'当前的更改尚未保存,确认退出吗?'
13+
saveMessage: '当前的更改尚未保存,确认退出吗?'
1414
},
1515
delete: {
1616
confirmTitle: '是否删除函数:',
@@ -50,28 +50,28 @@ export default {
5050
requiredMessage: '请输入参数名'
5151
},
5252
dataType: {
53-
label: '数据类型',
53+
label: '数据类型'
5454
},
5555
source: {
5656
label: '来源',
5757
custom: '自定义',
58-
reference: '引用参数',
58+
reference: '引用参数'
5959
},
6060
required: {
61-
label: '是否必填',
61+
label: '是否必填'
6262
},
6363
param: {
6464
outputParam: '输出参数',
6565
paramInfo1: '使用函数时显示',
6666
paramInfo2: '使用函数时不显示',
67-
code: '代码',
67+
code: '函数内容(Python)'
6868
},
6969
debug: {
7070
run: '运行',
7171
output: '输出',
7272
runResult: '运行结果',
7373
runSuccess: '运行成功',
74-
runFailed: '运行失败',
74+
runFailed: '运行失败'
7575
}
7676
}
7777
}

ui/src/locales/lang/zh_TW/views/function-lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default {
6464
outputParam: '輸出參數',
6565
paramInfo1: '使用函數時顯示',
6666
paramInfo2: '使用函數時不顯示',
67-
code: '代碼',
67+
code: '函数内容(Python)'
6868
},
6969
debug: {
7070
run: '運行',

ui/src/views/function-lib/component/FunctionFormDrawer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
</el-table-column>
127127
</el-table>
128128
<h4 class="title-decoration-1 mb-16">
129-
Python {{ $t('views.functionLib.functionForm.form.param.code') }}
129+
{{ $t('views.functionLib.functionForm.form.param.code') }}
130130
<el-text type="info" class="color-secondary">
131131
{{ $t('views.functionLib.functionForm.form.param.paramInfo2') }}
132132
</el-text>
@@ -164,7 +164,7 @@
164164
<!-- Codemirror 弹出层 -->
165165
<el-dialog
166166
v-model="dialogVisible"
167-
:title="'Python ' + $t('views.functionLib.functionForm.form.param.code')"
167+
:title="$t('views.functionLib.functionForm.form.param.code')"
168168
append-to-body
169169
fullscreen
170170
>

ui/src/workflow/nodes/function-node/index.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
</el-card>
7373

7474
<h5 class="lighter mb-8">
75-
Python {{ $t('views.functionLib.functionForm.form.param.code') }}
75+
{{ $t('views.functionLib.functionForm.form.param.code') }}
7676
</h5>
7777
<div class="function-CodemirrorEditor mb-8" v-if="showEditor">
7878
<CodemirrorEditor
@@ -112,7 +112,12 @@
112112
</el-form>
113113
<FieldFormDialog ref="FieldFormDialogRef" @refresh="refreshFieldList" />
114114
<!-- Codemirror 弹出层 -->
115-
<el-dialog v-model="dialogVisible" :title="'Python ' + $t('views.functionLib.functionForm.form.param.code')" append-to-body fullscreen>
115+
<el-dialog
116+
v-model="dialogVisible"
117+
:title="$t('views.functionLib.functionForm.form.param.code')"
118+
append-to-body
119+
fullscreen
120+
>
116121
<CodemirrorEditor
117122
v-model="cloneContent"
118123
style="

0 commit comments

Comments
 (0)