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