fix 标签内容管理,数据值不能包含“/”,英文不需必填
This commit is contained in:
@@ -191,7 +191,7 @@ export default {
|
|||||||
param.id = this.model.id
|
param.id = this.model.id
|
||||||
}
|
}
|
||||||
if (value) {
|
if (value) {
|
||||||
const reg = new RegExp('[`_~!@#$^&*()=|{}\'.<>《》/?!¥()—【】‘;:”“。,、?]')
|
const reg = new RegExp('[`_~!@#$^&*()=|{}\'.<>《》?!¥()—【】‘;:”“。,、?]')
|
||||||
if (reg.test(value)) {
|
if (reg.test(value)) {
|
||||||
callback(new Error(this.$t('dict.valueCannotContainSpecChar')))
|
callback(new Error(this.$t('dict.valueCannotContainSpecChar')))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ export default {
|
|||||||
itemText: [{ required: true, message: this.$t('pleaseEnter') + this.$t('system.tag.name'), trigger: 'blur' }],
|
itemText: [{ required: true, message: this.$t('pleaseEnter') + this.$t('system.tag.name'), trigger: 'blur' }],
|
||||||
// 英文名称
|
// 英文名称
|
||||||
enName: [{
|
enName: [{
|
||||||
required: true,
|
required: false,
|
||||||
message: this.$t('pleaseEnter') + this.$t('system.tag.attributeNameEnglish'),
|
message: this.$t('pleaseEnter') + this.$t('system.tag.attributeNameEnglish'),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}],
|
}],
|
||||||
@@ -213,7 +213,7 @@ export default {
|
|||||||
param.id = this.model.id
|
param.id = this.model.id
|
||||||
}
|
}
|
||||||
if (value) {
|
if (value) {
|
||||||
const reg = new RegExp('[`_~!@#$^&*()=|{}\'.<>《》/?!¥()—【】‘;:”“。,、?]')
|
const reg = new RegExp('[`_~!@#$^&*()=|{}\'.<>《》?!¥()—【】‘;:”“。,、?]')
|
||||||
if (reg.test(value)) {
|
if (reg.test(value)) {
|
||||||
callback(new Error(this.$t('dict.valueCannotContainSpecChar')))
|
callback(new Error(this.$t('dict.valueCannotContainSpecChar')))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user