diff --git a/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj b/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj index 614197aa..c44ee01c 100644 --- a/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj +++ b/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj @@ -47,7 +47,7 @@ - + diff --git a/Admin.NET/Admin.NET.Core/Service/Org/SysOrgService.cs b/Admin.NET/Admin.NET.Core/Service/Org/SysOrgService.cs index 37e51fb4..8e02b2be 100644 --- a/Admin.NET/Admin.NET.Core/Service/Org/SysOrgService.cs +++ b/Admin.NET/Admin.NET.Core/Service/Org/SysOrgService.cs @@ -119,7 +119,7 @@ public class SysOrgService : IDynamicApiController, ITransient if (!_userManager.SuperAdmin && input.Pid == 0) throw Oops.Oh(ErrorCodeEnum.D2009); - if (await _sysOrgRep.IsAnyAsync(u => u.Name == input.Name && u.Code == input.Code)) + if (await _sysOrgRep.IsAnyAsync(u => u.Name == input.Name || u.Code == input.Code)) throw Oops.Oh(ErrorCodeEnum.D2002); if (!_userManager.SuperAdmin && input.Pid != 0) @@ -189,7 +189,7 @@ public class SysOrgService : IDynamicApiController, ITransient if (input.Id == input.Pid) throw Oops.Oh(ErrorCodeEnum.D2001); - if (await _sysOrgRep.IsAnyAsync(u => u.Name == input.Name && u.Code == input.Code && u.Id != input.Id)) + if (await _sysOrgRep.IsAnyAsync(u => (u.Name == input.Name || u.Code == input.Code) && u.Id != input.Id)) throw Oops.Oh(ErrorCodeEnum.D2002); // 父Id不能为自己的子节点 diff --git a/Web/package.json b/Web/package.json index 5f8e4962..9929759f 100644 --- a/Web/package.json +++ b/Web/package.json @@ -2,7 +2,7 @@ "name": "admin.net.pro", "type": "module", "version": "2.4.33", - "lastBuildTime": "2025.10.08", + "lastBuildTime": "2025.10.10", "description": "Admin.NET 站在巨人肩膀上的 .NET 通用权限开发框架", "author": "zuohuaijun", "license": "MIT", @@ -49,7 +49,7 @@ "jsplumb": "^2.15.6", "lodash-es": "^4.17.21", "magic-string": "^0.30.19", - "md-editor-v3": "^6.0.1", + "md-editor-v3": "^6.1.0", "mitt": "^3.0.1", "monaco-editor": "^0.54.0", "mqtt": "^5.14.0", @@ -82,7 +82,7 @@ "vue-signature-pad": "^3.0.2", "vue3-tree-org": "^4.2.2", "vxe-pc-ui": "^4.9.41", - "vxe-table": "^4.16.20", + "vxe-table": "^4.16.21", "xe-utils": "^3.7.9", "xlsx-js-style": "^1.2.0" }, @@ -90,7 +90,7 @@ "@iconify/vue": "^5.0.0", "@plugin-web-update-notification/vite": "^2.0.2", "@types/lodash-es": "^4.17.12", - "@types/node": "^22.18.8", + "@types/node": "^22.18.9", "@types/nprogress": "^0.2.3", "@types/sortablejs": "^1.15.8", "@typescript-eslint/eslint-plugin": "^8.46.0", diff --git a/Web/src/components/table/modifyRecord.vue b/Web/src/components/table/modifyRecord.vue index 20113b94..e6e371e8 100644 --- a/Web/src/components/table/modifyRecord.vue +++ b/Web/src/components/table/modifyRecord.vue @@ -1,14 +1,14 @@