|
|
@@ -61,7 +61,7 @@ import { setTimeout } from 'timers';
|
|
|
isregphone:false,
|
|
|
isname:false,
|
|
|
isregname:false,
|
|
|
- regname:new RegExp(/[\@\#\$\%\&\*!!\¥0-9a-zA-Z]/),//非法字符加数字加英文
|
|
|
+ regname:new RegExp(/[\@\#\$\%\&\*!!\¥0-9]/),//非法字符加数字
|
|
|
isvalidCode:false,
|
|
|
isrole:false,
|
|
|
enterprise:[],
|
|
|
@@ -108,7 +108,7 @@ import { setTimeout } from 'timers';
|
|
|
} else {
|
|
|
this.isname = true;
|
|
|
if (this.regname.test(name)) {
|
|
|
- this.$message.error('姓名不能包含符号、数字、英文等非法字符');
|
|
|
+ this.$message.error('姓名不能包含符号、数字等非法字符');
|
|
|
this.isregname = false
|
|
|
} else {
|
|
|
this.isregname = true
|
|
|
@@ -174,7 +174,7 @@ import { setTimeout } from 'timers';
|
|
|
} else if (!this.isname) {
|
|
|
this.$message.error('姓名不能为空');
|
|
|
} else if (!this.isregname) {
|
|
|
- this.$message.error("姓名不能包含符号、数字、英文等非法字符");
|
|
|
+ this.$message.error("姓名不能包含符号、数字等非法字符");
|
|
|
} else if(!this.isvalidCode){
|
|
|
this.$message.error("请输入验证码");
|
|
|
} else if(!this.isrole){
|