mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 1050995
--bug=1050995 --user=王孝刚 【函数库】-创建函数,Python 代码为空时提示语和界面显示标题的不符 https://www.tapd.cn/57709429/s/1647978
This commit is contained in:
parent
86330c443e
commit
7ea082427b
|
|
@ -20,14 +20,23 @@
|
|||
</el-button>
|
||||
</div>
|
||||
<!-- Codemirror 弹出层 -->
|
||||
<el-dialog v-model="dialogVisible" :title="'Python ' + $t('views.functionLib.functionForm.form.param.code')" append-to-body fullscreen>
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
:title="$t('views.functionLib.functionForm.form.param.code')"
|
||||
append-to-body
|
||||
fullscreen
|
||||
>
|
||||
<Codemirror
|
||||
v-model="cloneContent"
|
||||
:extensions="extensions"
|
||||
:style="codemirrorStyle"
|
||||
:tab-size="4"
|
||||
:autofocus="true"
|
||||
style="height: calc(100vh - 160px) !important; border: 1px solid #bbbfc4; border-radius: 4px"
|
||||
style="
|
||||
height: calc(100vh - 160px) !important;
|
||||
border: 1px solid #bbbfc4;
|
||||
border-radius: 4px;
|
||||
"
|
||||
/>
|
||||
<template #footer>
|
||||
<div class="dialog-footer mt-24">
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export default {
|
|||
outputParam: 'Output Parameters',
|
||||
paramInfo1: 'Displayed when using the function',
|
||||
paramInfo2: 'Not displayed when using the function',
|
||||
code: 'Code',
|
||||
code: 'Function Content (Python)'
|
||||
},
|
||||
debug: {
|
||||
run: 'Run',
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export default {
|
|||
disabled: '禁用'
|
||||
},
|
||||
tip: {
|
||||
saveMessage:'当前的更改尚未保存,确认退出吗?'
|
||||
saveMessage: '当前的更改尚未保存,确认退出吗?'
|
||||
},
|
||||
delete: {
|
||||
confirmTitle: '是否删除函数:',
|
||||
|
|
@ -50,28 +50,28 @@ export default {
|
|||
requiredMessage: '请输入参数名'
|
||||
},
|
||||
dataType: {
|
||||
label: '数据类型',
|
||||
label: '数据类型'
|
||||
},
|
||||
source: {
|
||||
label: '来源',
|
||||
custom: '自定义',
|
||||
reference: '引用参数',
|
||||
reference: '引用参数'
|
||||
},
|
||||
required: {
|
||||
label: '是否必填',
|
||||
label: '是否必填'
|
||||
},
|
||||
param: {
|
||||
outputParam: '输出参数',
|
||||
paramInfo1: '使用函数时显示',
|
||||
paramInfo2: '使用函数时不显示',
|
||||
code: '代码',
|
||||
code: '函数内容(Python)'
|
||||
},
|
||||
debug: {
|
||||
run: '运行',
|
||||
output: '输出',
|
||||
runResult: '运行结果',
|
||||
runSuccess: '运行成功',
|
||||
runFailed: '运行失败',
|
||||
runFailed: '运行失败'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ export default {
|
|||
outputParam: '輸出參數',
|
||||
paramInfo1: '使用函數時顯示',
|
||||
paramInfo2: '使用函數時不顯示',
|
||||
code: '代碼',
|
||||
code: '函数内容(Python)'
|
||||
},
|
||||
debug: {
|
||||
run: '運行',
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@
|
|||
</el-table-column>
|
||||
</el-table>
|
||||
<h4 class="title-decoration-1 mb-16">
|
||||
Python {{ $t('views.functionLib.functionForm.form.param.code') }}
|
||||
{{ $t('views.functionLib.functionForm.form.param.code') }}
|
||||
<el-text type="info" class="color-secondary">
|
||||
{{ $t('views.functionLib.functionForm.form.param.paramInfo2') }}
|
||||
</el-text>
|
||||
|
|
@ -164,7 +164,7 @@
|
|||
<!-- Codemirror 弹出层 -->
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
:title="'Python ' + $t('views.functionLib.functionForm.form.param.code')"
|
||||
:title="$t('views.functionLib.functionForm.form.param.code')"
|
||||
append-to-body
|
||||
fullscreen
|
||||
>
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
</el-card>
|
||||
|
||||
<h5 class="lighter mb-8">
|
||||
Python {{ $t('views.functionLib.functionForm.form.param.code') }}
|
||||
{{ $t('views.functionLib.functionForm.form.param.code') }}
|
||||
</h5>
|
||||
<div class="function-CodemirrorEditor mb-8" v-if="showEditor">
|
||||
<CodemirrorEditor
|
||||
|
|
@ -112,7 +112,12 @@
|
|||
</el-form>
|
||||
<FieldFormDialog ref="FieldFormDialogRef" @refresh="refreshFieldList" />
|
||||
<!-- Codemirror 弹出层 -->
|
||||
<el-dialog v-model="dialogVisible" :title="'Python ' + $t('views.functionLib.functionForm.form.param.code')" append-to-body fullscreen>
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
:title="$t('views.functionLib.functionForm.form.param.code')"
|
||||
append-to-body
|
||||
fullscreen
|
||||
>
|
||||
<CodemirrorEditor
|
||||
v-model="cloneContent"
|
||||
style="
|
||||
|
|
|
|||
Loading…
Reference in New Issue