[update] 53620

This commit is contained in:
zhaomeijing
2022-06-07 14:21:41 +08:00
parent c8a6fca5e4
commit a59001c401
@@ -36,7 +36,7 @@
:labelCol="labelCol"
:wrapperCol="wrapperCol"
:label="$t('describe')">
<a-input v-decorator="[ 'description']"/>
<a-input :placeholder="$t('PleaseEnterDescription')" v-decorator="[ 'description', validatorRules.description]"/>
</a-form-item>
</a-form>
@@ -67,13 +67,22 @@
confirmLoading: false,
form: this.$form.createForm(this),
validatorRules: {
dictName: { rules: [{ required: true, message: this.$t('enterDictionary') }] },
dictName: { rules: [{ required: true, message: this.$t('enterDictionary') },
{ min:1, max: 100, message: this.$t('DictionaryName')+this.$t('cantExeed')+'100'+this.$t('Characters'), trigger: 'blur' },
] },
dictEnName: {
rules: [{ required: true, message: this.$t('enterEnDictionary') }]
rules: [{ required: true, message: this.$t('enterEnDictionary') },
{ min:1, max: 100, message: this.$t('DictionaryEnName')+this.$t('cantExeed')+'100'+this.$t('Characters'), trigger: 'blur' },
]
},
dictCode: {
rules: [{ required: true, message: this.$t('enterDictionaryCode') },
{ min:1, max: 100, message: this.$t('DictionaryCoding')+this.$t('cantExeed')+'100'+this.$t('Characters'), trigger: 'blur' },
{ validator: this.validateDictCode }]
},
description: {
rules: [
{ max: 300, message: this.$t('DictionaryCoding')+this.$t('cantExeed')+'300'+this.$t('Characters'), trigger: 'blur' }]
}
}
}