fix: 修复岗位dtl问题

This commit is contained in:
橙子
2024-05-04 02:53:23 +08:00
parent c9127c6d30
commit 146a7093f7
3 changed files with 6 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Post
public Guid Id { get; set; } public Guid Id { get; set; }
public DateTime CreationTime { get; set; } = DateTime.Now; public DateTime CreationTime { get; set; } = DateTime.Now;
public long? CreatorId { get; set; } public long? CreatorId { get; set; }
public Guid State { get; set; } public bool? State { get; set; }
public string PostCode { get; set; } = string.Empty; public string PostCode { get; set; } = string.Empty;
public string PostName { get; set; } = string.Empty; public string PostName { get; set; } = string.Empty;
public string? Remark { get; set; } public string? Remark { get; set; }

View File

@@ -5,7 +5,7 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Post
public Guid Id { get; set; } public Guid Id { get; set; }
public DateTime CreationTime { get; set; } = DateTime.Now; public DateTime CreationTime { get; set; } = DateTime.Now;
public Guid? CreatorId { get; set; } public Guid? CreatorId { get; set; }
public bool State { get; set; } public bool? State { get; set; }
public string PostCode { get; set; } = string.Empty; public string PostCode { get; set; } = string.Empty;
public string PostName { get; set; } = string.Empty; public string PostName { get; set; } = string.Empty;
public string? Remark { get; set; } public string? Remark { get; set; }

View File

@@ -528,16 +528,16 @@ function submitForm() {
proxy.$refs["userRef"].validate(valid => { proxy.$refs["userRef"].validate(valid => {
if (valid) { if (valid) {
if (form.value.id != undefined) { 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("修改成功"); proxy.$modal.msgSuccess("修改成功");
open.value = false; open.value = false;
getList(); await getList();
}); });
} else { } else {
addUser(form.value).then(response => { addUser(form.value).then(async response => {
proxy.$modal.msgSuccess("新增成功"); proxy.$modal.msgSuccess("新增成功");
open.value = false; open.value = false;
getList(); await getList();
}); });
} }
} }