diff --git a/BPASmartClient.Business/Plugin/ConfigMgr.cs b/BPASmartClient.Business/Plugin/ConfigMgr.cs index a524cebb..82bde613 100644 --- a/BPASmartClient.Business/Plugin/ConfigMgr.cs +++ b/BPASmartClient.Business/Plugin/ConfigMgr.cs @@ -84,6 +84,7 @@ namespace BPASmartClient.Business IConfigurationBuilder configurationBuilder = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()); configurationBuilder.AddApolloConfiguration(p => { + p.AppId = apoid; p.MetaServer = apolloUri; p.Namespaces = new List() { "application", namespa }; diff --git a/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj b/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj index 883716d6..ca144ca3 100644 --- a/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj +++ b/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj @@ -112,6 +112,10 @@ + + + + @@ -120,6 +124,7 @@ + @@ -266,8 +271,13 @@ + + + + + PreserveNewest diff --git a/BPASmartClient.CustomResource/Image/按钮/AddGreen.png b/BPASmartClient.CustomResource/Image/按钮/AddGreen.png new file mode 100644 index 00000000..13676da2 Binary files /dev/null and b/BPASmartClient.CustomResource/Image/按钮/AddGreen.png differ diff --git a/BPASmartClient.CustomResource/Image/按钮/Delete.png b/BPASmartClient.CustomResource/Image/按钮/Delete.png new file mode 100644 index 00000000..f53eb2b3 Binary files /dev/null and b/BPASmartClient.CustomResource/Image/按钮/Delete.png differ diff --git a/BPASmartClient.CustomResource/Image/按钮/停用.png b/BPASmartClient.CustomResource/Image/按钮/停用.png new file mode 100644 index 00000000..cb46f6d7 Binary files /dev/null and b/BPASmartClient.CustomResource/Image/按钮/停用.png differ diff --git a/BPASmartClient.CustomResource/Image/按钮/添加.png b/BPASmartClient.CustomResource/Image/按钮/添加.png new file mode 100644 index 00000000..d6e06298 Binary files /dev/null and b/BPASmartClient.CustomResource/Image/按钮/添加.png differ diff --git a/BPASmartClient.CustomResource/Image/权限背景.png b/BPASmartClient.CustomResource/Image/权限背景.png new file mode 100644 index 00000000..59876f6a Binary files /dev/null and b/BPASmartClient.CustomResource/Image/权限背景.png differ diff --git a/BPASmartClient.CustomResource/Pages/Model/Config.cs b/BPASmartClient.CustomResource/Pages/Model/Config.cs index 16abf147..b8498e60 100644 --- a/BPASmartClient.CustomResource/Pages/Model/Config.cs +++ b/BPASmartClient.CustomResource/Pages/Model/Config.cs @@ -39,9 +39,6 @@ namespace BPASmartClient.CustomResource.Pages.Model private void AddData() { Global.userManager.userInfos.Add(new UserInfo() { permission = Permission.管理员, UserName = "admin", Password = "admin" }); - Global.userManager.userInfos.Add(new UserInfo() { permission = Permission.操作员, UserName = "czy", Password = "123456" }); - Global.userManager.userInfos.Add(new UserInfo() { permission = Permission.观察员, UserName = "gcy", Password = "654321" }); - Global.userManager.userInfos.Add(new UserInfo() { permission = Permission.技术员, UserName = "jsy", Password = "88888888" }); SaveUser(); } diff --git a/BPASmartClient.CustomResource/Pages/Model/Global.cs b/BPASmartClient.CustomResource/Pages/Model/Global.cs index cd0a6548..86de75c5 100644 --- a/BPASmartClient.CustomResource/Pages/Model/Global.cs +++ b/BPASmartClient.CustomResource/Pages/Model/Global.cs @@ -12,6 +12,10 @@ namespace BPASmartClient.CustomResource.Pages.Model public static UserManager userManager { get; set; } = new UserManager(); public static UserInfo userInfo { get; set; } = new UserInfo(); + /// + /// 重置密码页面传值 + /// + public static UserInfo changeUserInfo { get; set; } = null; } } diff --git a/BPASmartClient.CustomResource/Pages/Model/MenuManage.cs b/BPASmartClient.CustomResource/Pages/Model/MenuManage.cs index 143f5b24..c834e150 100644 --- a/BPASmartClient.CustomResource/Pages/Model/MenuManage.cs +++ b/BPASmartClient.CustomResource/Pages/Model/MenuManage.cs @@ -91,7 +91,7 @@ namespace BPASmartClient.CustomResource.Pages.Model /// 子菜单的显示隐藏设置 /// public Visibility SubMenuVisibility { get { return _mSubMenuVisibility; } set { _mSubMenuVisibility = value; OnPropertyChanged(); } } - private Visibility _mSubMenuVisibility; + private Visibility _mSubMenuVisibility = Visibility.Collapsed; } diff --git a/BPASmartClient.CustomResource/Pages/Model/UserInfo.cs b/BPASmartClient.CustomResource/Pages/Model/UserInfo.cs index 1164d95f..6cec8d19 100644 --- a/BPASmartClient.CustomResource/Pages/Model/UserInfo.cs +++ b/BPASmartClient.CustomResource/Pages/Model/UserInfo.cs @@ -12,6 +12,8 @@ namespace BPASmartClient.CustomResource.Pages.Model public Permission permission { get; set; } public string UserName { get; set; } public string Password { get; set; } + public String LastLogInTime { get; set; } = "无"; + public List userTreeViewModels { get; set; } } } diff --git a/BPASmartClient.CustomResource/Pages/Model/UserManager.cs b/BPASmartClient.CustomResource/Pages/Model/UserManager.cs index 1baf3908..f07f7f37 100644 --- a/BPASmartClient.CustomResource/Pages/Model/UserManager.cs +++ b/BPASmartClient.CustomResource/Pages/Model/UserManager.cs @@ -10,5 +10,6 @@ namespace BPASmartClient.CustomResource.Pages.Model public class UserManager { public ObservableCollection userInfos { get; set; } = new ObservableCollection(); + } } diff --git a/BPASmartClient.CustomResource/Pages/Model/UserTreeViewModel.cs b/BPASmartClient.CustomResource/Pages/Model/UserTreeViewModel.cs new file mode 100644 index 00000000..4fb56aae --- /dev/null +++ b/BPASmartClient.CustomResource/Pages/Model/UserTreeViewModel.cs @@ -0,0 +1,16 @@ +using Microsoft.Toolkit.Mvvm.ComponentModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BPASmartClient.CustomResource.Pages.Model +{ + public class UserTreeViewModel: ObservableObject + { + public string Name { get; set; } + + public List TreeViewItems { get; set; } + } +} diff --git a/BPASmartClient.CustomResource/Pages/View/AddNewUser.xaml b/BPASmartClient.CustomResource/Pages/View/AddNewUser.xaml new file mode 100644 index 00000000..8ffed030 --- /dev/null +++ b/BPASmartClient.CustomResource/Pages/View/AddNewUser.xaml @@ -0,0 +1,330 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +