From 85e4abd65ef7d9375504e01b06651a869ec19fc1 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Fri, 7 Jul 2023 17:05:55 +0800 Subject: [PATCH] update --- .../Identity/Data/IdentityDbSeed.cs | 26 +++++++++++++++++++ .../Entities/SystemManagement/Department.cs | 1 - .../Entities/SystemManagement/Post.cs | 1 - .../WTA/wwwroot/components/form/form-input.js | 2 +- .../src/WTA/wwwroot/components/icon/index.js | 3 +-- docs/demo/src/WTA/wwwroot/router/index.js | 1 + 6 files changed, 29 insertions(+), 5 deletions(-) diff --git a/docs/demo/src/WTA.Application/Identity/Data/IdentityDbSeed.cs b/docs/demo/src/WTA.Application/Identity/Data/IdentityDbSeed.cs index 5309fc32..50fb412f 100644 --- a/docs/demo/src/WTA.Application/Identity/Data/IdentityDbSeed.cs +++ b/docs/demo/src/WTA.Application/Identity/Data/IdentityDbSeed.cs @@ -59,6 +59,32 @@ public class IdentityDbSeed : IDbSeed // 权限初始化 InitPermissions(context); + //岗位初始化 + context.Set().Add(new Post + { + Name = "董事长", + Number = "001", + Order = 1, + }.SetIdBy(o => o.Number)); + context.Set().Add(new Post + { + Name = "项目经理", + Number = "002", + Order = 2 + }.SetIdBy(o => o.Number)); + context.Set().Add(new Post + { + Name = "人力资源", + Number = "003", + Order = 3 + }.SetIdBy(o => o.Number)); + context.Set().Add(new Post + { + Name = "普通员工", + Number = "004", + Order = 4 + }.SetIdBy(o => o.Number)); + //部门初始化 context.Set().Add( new Department diff --git a/docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/Department.cs b/docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/Department.cs index fe4b2ed6..d08417a9 100644 --- a/docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/Department.cs +++ b/docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/Department.cs @@ -3,7 +3,6 @@ using WTA.Shared.Domain; namespace WTA.Application.Identity.Entities.SystemManagement; -[Hidden] [Order(4)] [SystemManagement] public class Department : BaseTreeEntity diff --git a/docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/Post.cs b/docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/Post.cs index 9f196856..4f76e75e 100644 --- a/docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/Post.cs +++ b/docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/Post.cs @@ -3,7 +3,6 @@ using WTA.Shared.Domain; namespace WTA.Application.Identity.Entities.SystemManagement; -[Hidden] [Order(5)] [SystemManagement] public class Post : BaseEntity diff --git a/docs/demo/src/WTA/wwwroot/components/form/form-input.js b/docs/demo/src/WTA/wwwroot/components/form/form-input.js index 677140f2..88b9af6c 100644 --- a/docs/demo/src/WTA/wwwroot/components/form/form-input.js +++ b/docs/demo/src/WTA/wwwroot/components/form/form-input.js @@ -23,7 +23,7 @@ export default { style="width:100%" :title="JSON.stringify(options)" > - + `; + svg.value = ``; } } } diff --git a/docs/demo/src/WTA/wwwroot/router/index.js b/docs/demo/src/WTA/wwwroot/router/index.js index 175d83b5..7e7dad73 100644 --- a/docs/demo/src/WTA/wwwroot/router/index.js +++ b/docs/demo/src/WTA/wwwroot/router/index.js @@ -81,6 +81,7 @@ router.afterEach((to) => { if (to.meta.title) { useTitle().value = `${to.meta.title}`; } + to.meta.cache = new Map(); } finally { NProgress.done(); }