diff --git a/jero-web/src/views/system/modules/DictModal.vue b/jero-web/src/views/system/modules/DictModal.vue
index 40edf139f..2ddda85df 100644
--- a/jero-web/src/views/system/modules/DictModal.vue
+++ b/jero-web/src/views/system/modules/DictModal.vue
@@ -36,7 +36,7 @@
:labelCol="labelCol"
:wrapperCol="wrapperCol"
:label="$t('describe')">
-
+
@@ -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' }]
}
}
}