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