From e8866146415fd1a602619c8e8c7150865dd9522a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Mon, 2 Sep 2024 23:26:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E3=80=81=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E3=80=81=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86=E3=80=81=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dtos/Dept/DeptCreateInputVo.cs | 9 +- .../Dtos/Dept/DeptUpdateInputVo.cs | 5 +- Yi.Pure.Vue3/src/api/system/post.ts | 8 +- Yi.Pure.Vue3/src/views/login/index.vue | 5 +- Yi.Pure.Vue3/src/views/system/dept/form.vue | 41 ++- Yi.Pure.Vue3/src/views/system/dept/index.vue | 14 +- .../src/views/system/dept/utils/hook.tsx | 62 ++--- .../src/views/system/dept/utils/rule.ts | 3 +- .../src/views/system/dept/utils/types.ts | 12 +- Yi.Pure.Vue3/src/views/system/menu/form.vue | 253 +++++------------- Yi.Pure.Vue3/src/views/system/menu/index.vue | 4 +- .../src/views/system/menu/utils/enums.ts | 43 ++- .../src/views/system/menu/utils/hook.tsx | 61 ++--- .../src/views/system/menu/utils/rule.ts | 1 + .../src/views/system/menu/utils/types.ts | 21 +- Yi.Pure.Vue3/src/views/system/role/form.vue | 1 + .../src/views/system/role/utils/hook.tsx | 13 +- 17 files changed, 230 insertions(+), 326 deletions(-) diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Dept/DeptCreateInputVo.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Dept/DeptCreateInputVo.cs index 0b3b6d7d..b9a8812a 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Dept/DeptCreateInputVo.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Dept/DeptCreateInputVo.cs @@ -5,14 +5,11 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Dept /// public class DeptCreateInputVo { - public Guid Id { get; set; } - public DateTime CreationTime { get; set; } = DateTime.Now; - public Guid? CreatorId { get; set; } public bool State { get; set; } - public string DeptName { get; set; } = string.Empty; - public string DeptCode { get; set; } = string.Empty; + public string DeptName { get; set; } + public string DeptCode { get; set; } public string? Leader { get; set; } - public Guid ParentId { get; set; } + public Guid? ParentId { get; set; }=Guid.Empty; public string? Remark { get; set; } } } diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Dept/DeptUpdateInputVo.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Dept/DeptUpdateInputVo.cs index 8b5c9002..bbf808f9 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Dept/DeptUpdateInputVo.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Dept/DeptUpdateInputVo.cs @@ -2,14 +2,11 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Dept { public class DeptUpdateInputVo { - public Guid Id { get; set; } - public DateTime CreationTime { get; set; } = DateTime.Now; - public Guid? CreatorId { get; set; } public bool State { get; set; } public string DeptName { get; set; } = string.Empty; public string DeptCode { get; set; } = string.Empty; public string? Leader { get; set; } - public Guid ParentId { get; set; } + public Guid? ParentId { get; set; }=Guid.Empty; public string? Remark { get; set; } } } diff --git a/Yi.Pure.Vue3/src/api/system/post.ts b/Yi.Pure.Vue3/src/api/system/post.ts index 65ecaa7e..3e4d5a84 100644 --- a/Yi.Pure.Vue3/src/api/system/post.ts +++ b/Yi.Pure.Vue3/src/api/system/post.ts @@ -7,22 +7,22 @@ export const getList = (data?: object) => { }; /** 查询部门详细 */ -export const getDept = id => { +export const getPost = id => { return http.request("get", `/dept/${id}`, {}); }; /** 新增部门 */ -export const addDept = data => { +export const addPost = data => { return http.request("post", `/dept`, { data }); }; /** 修改部门 */ -export const updateDept = (id, data) => { +export const updatePost = (id, data) => { return http.request("put", `/dept/${id}`, { data }); }; /** 删除部门 */ -export const delDept = id => { +export const delPost = id => { return http.request("delete", `/dept`, { params: { id } }); }; diff --git a/Yi.Pure.Vue3/src/views/login/index.vue b/Yi.Pure.Vue3/src/views/login/index.vue index d05f0f48..4e01d26d 100644 --- a/Yi.Pure.Vue3/src/views/login/index.vue +++ b/Yi.Pure.Vue3/src/views/login/index.vue @@ -243,7 +243,10 @@ getCode();