mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	用户手机邮箱必填&密码参数修改
This commit is contained in:
		| @@ -416,6 +416,7 @@ export default { | |||||||
|           { required: true, message: "用户密码不能为空", trigger: "blur" } |           { required: true, message: "用户密码不能为空", trigger: "blur" } | ||||||
|         ], |         ], | ||||||
|         email: [ |         email: [ | ||||||
|  |           { required: true, message: "邮箱地址不能为空", trigger: "blur" }, | ||||||
|           { |           { | ||||||
|             type: "email", |             type: "email", | ||||||
|             message: "'请输入正确的邮箱地址", |             message: "'请输入正确的邮箱地址", | ||||||
| @@ -423,6 +424,7 @@ export default { | |||||||
|           } |           } | ||||||
|         ], |         ], | ||||||
|         phonenumber: [ |         phonenumber: [ | ||||||
|  |           { required: true, message: "手机号码不能为空", trigger: "blur" }, | ||||||
|           { |           { | ||||||
|             pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, |             pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, | ||||||
|             message: "请输入正确的手机号码", |             message: "请输入正确的手机号码", | ||||||
| @@ -448,7 +450,7 @@ export default { | |||||||
|       this.sexOptions = response.data; |       this.sexOptions = response.data; | ||||||
|     }); |     }); | ||||||
|     this.getConfigKey("sys.user.initPassword").then(response => { |     this.getConfigKey("sys.user.initPassword").then(response => { | ||||||
|       this.initPassword = response.data; |       this.initPassword = response.msg; | ||||||
|     }); |     }); | ||||||
|   }, |   }, | ||||||
|   methods: { |   methods: { | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ import javax.validation.constraints.NotBlank; | |||||||
| import javax.validation.constraints.Size; | import javax.validation.constraints.Size; | ||||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | import org.apache.commons.lang3.builder.ToStringBuilder; | ||||||
| import org.apache.commons.lang3.builder.ToStringStyle; | import org.apache.commons.lang3.builder.ToStringStyle; | ||||||
| import com.fasterxml.jackson.annotation.JsonIgnore; | import com.fasterxml.jackson.annotation.JsonProperty; | ||||||
| import com.ruoyi.framework.aspectj.lang.annotation.Excel; | import com.ruoyi.framework.aspectj.lang.annotation.Excel; | ||||||
| import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType; | import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType; | ||||||
| import com.ruoyi.framework.aspectj.lang.annotation.Excel.Type; | import com.ruoyi.framework.aspectj.lang.annotation.Excel.Type; | ||||||
| @@ -197,7 +197,7 @@ public class SysUser extends BaseEntity | |||||||
|         this.avatar = avatar; |         this.avatar = avatar; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @JsonIgnore |     @JsonProperty | ||||||
|     public String getPassword() |     public String getPassword() | ||||||
|     { |     { | ||||||
|         return password; |         return password; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 RuoYi
					RuoYi