参数项列表新增 控件备选值不能输入!和#

This commit is contained in:
zyx.net
2022-11-03 09:52:37 +08:00
parent 38e8f211d6
commit bed54d7869
@@ -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) {