diff --git a/ZR.Admin.WebApi/Controllers/System/SysPostController.cs b/ZR.Admin.WebApi/Controllers/System/SysPostController.cs index 5deb34a..9143d49 100644 --- a/ZR.Admin.WebApi/Controllers/System/SysPostController.cs +++ b/ZR.Admin.WebApi/Controllers/System/SysPostController.cs @@ -9,6 +9,7 @@ using Infrastructure.Attribute; using Infrastructure.Enums; using Infrastructure; using ZR.Service.System.IService; +using ZR.Common; namespace ZR.Admin.WebApi.Controllers.System { @@ -106,9 +107,10 @@ namespace ZR.Admin.WebApi.Controllers.System [HttpDelete("{id}")] [ActionPermissionFilter(Permission = "system:post:remove")] [Log(Title = "岗位删除", BusinessType = BusinessType.DELETE)] - public IActionResult Delete(int id = 0) + public IActionResult Delete(string id) { - return ToResponse(ToJson(PostService.Delete(id))); + int[] ids = Tools.SpitIntArrary(id); + return ToResponse(ToJson(PostService.Delete(ids))); } /// diff --git a/ZR.Vue/src/components/TopNav/index.vue b/ZR.Vue/src/components/TopNav/index.vue index e92d381..16632e0 100644 --- a/ZR.Vue/src/components/TopNav/index.vue +++ b/ZR.Vue/src/components/TopNav/index.vue @@ -97,7 +97,7 @@ export default { if (routes.length === 0) { activePath = this.currentIndex || this.defaultRouter(); - console.log("activePath", activePath); + console.log("activePath", activePath); this.activeRoutes(activePath); } return activePath; diff --git a/ZR.Vue/src/layout/components/Sidebar/index.vue b/ZR.Vue/src/layout/components/Sidebar/index.vue index 06dc015..0b1e16e 100644 --- a/ZR.Vue/src/layout/components/Sidebar/index.vue +++ b/ZR.Vue/src/layout/components/Sidebar/index.vue @@ -1,11 +1,12 @@ diff --git a/ZR.Vue/src/views/system/user/index.vue b/ZR.Vue/src/views/system/user/index.vue index b9a205e..c5fcc82 100644 --- a/ZR.Vue/src/views/system/user/index.vue +++ b/ZR.Vue/src/views/system/user/index.vue @@ -41,14 +41,10 @@ 新增 - + 导入 @@ -59,7 +55,6 @@ -