[update] 53620
This commit is contained in:
@@ -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' }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user