From 619a8c8d980152f3c135e409d58d4d58b623f6c8 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sun, 14 Nov 2021 23:39:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserInfo/Dto/ChangePassWordDto.cs | 12 ++ .../UserInfo/UserInfoAppService.cs | 19 +++ Pages/api/init.json | 6 +- Pages/page/user-password.html | 161 +++++++++++++----- 4 files changed, 153 insertions(+), 45 deletions(-) create mode 100644 Code/src/MineTec.ProManager.Application/UserInfo/Dto/ChangePassWordDto.cs diff --git a/Code/src/MineTec.ProManager.Application/UserInfo/Dto/ChangePassWordDto.cs b/Code/src/MineTec.ProManager.Application/UserInfo/Dto/ChangePassWordDto.cs new file mode 100644 index 0000000..ed8684e --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/UserInfo/Dto/ChangePassWordDto.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace MineTec.ProManager.UserInfo.Dto +{ + public class ChangePassWordDto + { + public Guid id { get; set; } //账号id + public string new_password { get; set; } //新密码 + } +} diff --git a/Code/src/MineTec.ProManager.Application/UserInfo/UserInfoAppService.cs b/Code/src/MineTec.ProManager.Application/UserInfo/UserInfoAppService.cs index 082a74a..cc50025 100644 --- a/Code/src/MineTec.ProManager.Application/UserInfo/UserInfoAppService.cs +++ b/Code/src/MineTec.ProManager.Application/UserInfo/UserInfoAppService.cs @@ -89,5 +89,24 @@ namespace MineTec.ProManager.UserInfo return result; } + + public OutputBase ChangePassWord(ChangePassWordDto input) + { + var result = new OutputBase(); + try + { + var query = _UserRepository.GetAll().FirstOrDefault(a => a.Id == input.id); + + query.PassWord = input.new_password; + result.code = 1;//1成功0失败 + } + catch (Exception ex) + { + result.code = 0; + result.msg = ex.Message; + } + + return result; + } } } \ No newline at end of file diff --git a/Pages/api/init.json b/Pages/api/init.json index a921ec4..0dda825 100644 --- a/Pages/api/init.json +++ b/Pages/api/init.json @@ -10,13 +10,13 @@ }, "menuInfo": [ { - "title": "图号管理", + "title": "项目管理", "icon": "fa fa-folder", "href": "", "target": "_self", "child": [ { - "title": "特征码管理", + "title": "编码管理", "href": "", "icon": "fa fa-folder-open", "target": "_self", @@ -42,7 +42,7 @@ ] }, { - "title": "图样管理", + "title": "图样及文件管理", "href": "", "icon": "fa fa-folder-open", "target": "_self", diff --git a/Pages/page/user-password.html b/Pages/page/user-password.html index 6ffcbc3..c0a5e42 100644 --- a/Pages/page/user-password.html +++ b/Pages/page/user-password.html @@ -1,5 +1,6 @@ + 修改密码 @@ -9,63 +10,139 @@ + -
-
+
+
-
-
- -
- - 填写自己账号的旧的密码。 +
+
+ +
+ + 填写自己账号的旧的密码。 +
-
-
- -
- +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
-
-
- +
+
+ +
-
- - - + + + + + }); + + \ No newline at end of file