let testPassword = /(?!^[0-9]+$)(?!^[A-z]+$)(?!^[^A-z0-9]+$)^.{8,18}$/;
if (!testPassword.test(this.newUserPassword) || !testPassword.test(this.sureNewUserPassword)) {
this.$message.warning('新密码必须由大写字母、小写字母、数字、字符任意两种组成,密码长度最短8位')
return false
}
// var testPassword = /^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_!@#$%^&*`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\W_!@#$%^&*`~()-+=]+$)(?![0-9\W_!@#$%^&*`~()-+=]+$)[a-zA-Z0-9\W_!@#$%^&*`~()-+=]{8,100}$/;
// if (!testPassword.test(this.newUserPassword)) {
// this.$message.warning('新密码必须由大写字母、小写字母、数字、字符任意三种组成,密码长度最短8位')
// return false
// }