提交 a7da52ef authored 作者: junjie's avatar junjie

feat(backend):数据源form描述非必填;i18n fix

上级 fef63c50
......@@ -807,7 +807,10 @@ export default {
validate_success: '校验成功',
validate: '校验',
search_by_name: '根据名称搜索',
delete_warning: '确定要删除吗?'
delete_warning: '确定要删除吗?',
input_name: '请输入名称',
input_limit_2_25: '2-25字符',
input_limit_0_50: '0-50字符'
},
panel: {
copy_link_passwd: '复制链接及密码',
......
......@@ -55,9 +55,8 @@ export default {
form: { configuration: {}},
rule: {
name: [{ required: true, message: this.$t('datasource.input_name'), trigger: 'blur' },
{ min: 2, max: 25, message: this.$t('commons.input_limit', [2, 25]), trigger: 'blur' }],
desc: [{ required: true, message: this.$t('datasource.input_desc'), trigger: 'blur' },
{ min: 2, max: 50, message: this.$t('commons.input_limit', [2, 50]), trigger: 'blur' }],
{ min: 2, max: 25, message: this.$t('datasource.input_limit_2_25', [2, 25]), trigger: 'blur' }],
desc: [{ min: 0, max: 50, message: this.$t('datasource.input_limit_0_50'), trigger: 'blur' }],
type: [{ required: true, message: this.$t('datasource.please_choose_type'), trigger: 'change' }],
'configuration.dataBase': [{ required: true, message: this.$t('datasource.please_input_data_base'), trigger: 'blur' }],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论