From 146a7093f7512720ec983ab7f450dbb6d0a107d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Sat, 4 May 2024 02:53:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B2=97=E4=BD=8Ddtl?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dtos/Post/PostCreateInputVo.cs | 2 +- .../Dtos/Post/PostUpdateInputVo.cs | 2 +- Yi.RuoYi.Vue3/src/views/system/user/index.vue | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Post/PostCreateInputVo.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Post/PostCreateInputVo.cs index 2d50b107..0dc73506 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Post/PostCreateInputVo.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Post/PostCreateInputVo.cs @@ -8,7 +8,7 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Post public Guid Id { get; set; } public DateTime CreationTime { get; set; } = DateTime.Now; public long? CreatorId { get; set; } - public Guid State { get; set; } + public bool? State { get; set; } public string PostCode { get; set; } = string.Empty; public string PostName { get; set; } = string.Empty; public string? Remark { get; set; } diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Post/PostUpdateInputVo.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Post/PostUpdateInputVo.cs index d789ba0f..2304f8ac 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Post/PostUpdateInputVo.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Post/PostUpdateInputVo.cs @@ -5,7 +5,7 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Post public Guid Id { get; set; } public DateTime CreationTime { get; set; } = DateTime.Now; public Guid? CreatorId { get; set; } - public bool State { get; set; } + public bool? State { get; set; } public string PostCode { get; set; } = string.Empty; public string PostName { get; set; } = string.Empty; public string? Remark { get; set; } diff --git a/Yi.RuoYi.Vue3/src/views/system/user/index.vue b/Yi.RuoYi.Vue3/src/views/system/user/index.vue index 2816513d..4a38687a 100644 --- a/Yi.RuoYi.Vue3/src/views/system/user/index.vue +++ b/Yi.RuoYi.Vue3/src/views/system/user/index.vue @@ -528,16 +528,16 @@ function submitForm() { proxy.$refs["userRef"].validate(valid => { if (valid) { if (form.value.id != undefined) { - updateUser(form.value.id,form.value).then(response => { + updateUser(form.value.id,form.value).then(async response => { proxy.$modal.msgSuccess("修改成功"); open.value = false; - getList(); + await getList(); }); } else { - addUser(form.value).then(response => { + addUser(form.value).then(async response => { proxy.$modal.msgSuccess("新增成功"); open.value = false; - getList(); + await getList(); }); } }