fix 标签内容管理,数据值不能包含“/”,英文不需必填

This commit is contained in:
赵霄
2024-02-19 16:05:49 +08:00
parent 4ed63795e8
commit 1bf98bde68
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 {