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();