From 7377a3e16752447cee25e174e58d168a94fa9c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Fri, 1 Apr 2022 20:25:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B2=97=E4=BD=8D=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E5=88=A0=E9=99=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/System/SysPostController.cs | 6 ++- ZR.Vue/src/components/TopNav/index.vue | 2 +- .../src/layout/components/Sidebar/index.vue | 41 ++++++++++--------- ZR.Vue/src/views/system/user/index.vue | 9 +--- 4 files changed, 28 insertions(+), 30 deletions(-) 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 @@ -