From 3c11b85ce33a0868d370951fc261456250d83859 Mon Sep 17 00:00:00 2001 From: GYYM <704080176@qq.com> Date: Thu, 24 Oct 2024 13:24:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E9=A1=B5=E9=9D=A2=E4=B8=AD?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=96=B0=E5=A2=9E=E4=B8=8E=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E8=A7=92=E8=89=B2=E6=97=B6=E8=B0=83=E7=94=A8=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E7=9A=84=E8=BF=87=E7=A8=8B=EF=BC=9B=E5=AF=B9=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=95=88=E6=9E=9C=E8=BF=9B=E8=A1=8C=E4=BA=86=E5=BE=AE?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/role/role.ts | 4 +- .../authority/role/components/roleUnit.vue | 38 ++++++++++++++----- frontend/src/views/authority/role/index.vue | 15 ++++++-- frontend/src/views/authority/user/index.vue | 6 +-- frontend/src/views/machine/device/index.vue | 6 +-- .../src/views/machine/testScript/index.vue | 6 +-- .../src/views/machine/testSource/index.vue | 6 +-- 7 files changed, 54 insertions(+), 27 deletions(-) diff --git a/frontend/src/api/role/role.ts b/frontend/src/api/role/role.ts index 2cde151..dcd57f7 100644 --- a/frontend/src/api/role/role.ts +++ b/frontend/src/api/role/role.ts @@ -20,7 +20,7 @@ export const getRoleList = (params: Role.ReqRoleParams) => { // 新增角色 export const addRole = (params: { id: string }) => { - return http.post(`${rePrefix}/role/add`, params) + return http.post(`/RoleList_Add`, params) } // 批量添加角色 @@ -35,7 +35,7 @@ export const editRole = (params: { id: string }) => { // 删除角色 export const deleteRole = (params: { id: string[] }) => { - return http.post(`${rePrefix}/role/delete`, params) + return http.post(`/RoleList_Del`, params) } // 切换角色状态 diff --git a/frontend/src/views/authority/role/components/roleUnit.vue b/frontend/src/views/authority/role/components/roleUnit.vue index 36d2cd9..1483d04 100644 --- a/frontend/src/views/authority/role/components/roleUnit.vue +++ b/frontend/src/views/authority/role/components/roleUnit.vue @@ -3,13 +3,13 @@
- - + + - - + + - + - - + +