参数项列表新增 控件备选值不能输入!和#
This commit is contained in:
@@ -415,6 +415,7 @@ export default {
|
||||
controlValues: [
|
||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('controlAlternatives'), trigger: 'blur' },
|
||||
{ min:1, max: 500, message: this.$t('cantExeed')+'500'+this.$t('characters'), trigger: 'blur' },
|
||||
{ validator: this.test }
|
||||
],
|
||||
titleDefaultValue: [
|
||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('DefaultValue'), trigger: 'blur' },
|
||||
@@ -452,6 +453,14 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
test(rule, value, callback) {
|
||||
var money = /^[^##!!]*$/
|
||||
if (money.test(value)) {
|
||||
callback()
|
||||
} else {
|
||||
callback(new Error(this.$t('disableInput') + '!#'))
|
||||
}
|
||||
},
|
||||
getcontentListedEdit() {
|
||||
getAction('sys/dict/getDictItems/cert_category', { }).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user