feat(backend):数据源form描述非必填;i18n fix
This commit is contained in:
parent
fef63c50ea
commit
a7da52ef01
@ -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' }],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user