From f327bc6cb6b6a8535d58044db571ea4c4d3284e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=B8=83=E5=B9=B4=E5=A4=8F?= <2098833867@qq.com> Date: Thu, 23 Feb 2023 15:24:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E8=A7=92=E8=89=B2=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 3 + src/api/roleManagement.ts | 55 ++++ src/utils/common-util.ts | 10 + src/views/menuManagement/index.vue | 2 +- .../components/RoleManagementEdit.vue | 235 ++++++++++++++++++ src/views/roleManagement/index.vue | 193 ++++++++++++++ 6 files changed, 497 insertions(+), 1 deletion(-) create mode 100644 src/api/roleManagement.ts create mode 100644 src/views/roleManagement/components/RoleManagementEdit.vue create mode 100644 src/views/roleManagement/index.vue diff --git a/index.html b/index.html index e5c8853..0dec1a7 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,9 @@ #app-navs > * { margin: 0 12px; } + #app-navs .el-form-item{ + margin-bottom: 0; + }
diff --git a/src/api/roleManagement.ts b/src/api/roleManagement.ts new file mode 100644 index 0000000..4704059 --- /dev/null +++ b/src/api/roleManagement.ts @@ -0,0 +1,55 @@ +import request from '@/utils/request' + +export function getList(data) { + return request({ + url: '/role/queryRoleByPage', + method: 'post', + data, + }) +} + +export function doAdd(data) { + return request({ + url: '/role/create', + method: 'post', + data, + }) +} +export function doUpdate(data) { + return request({ + url: '/role/update', + method: 'post', + data, + }) +} + +export function doDelete(data) { + return request({ + url: '/role/destroy', + method: 'post', + data, + }) +} +/** + * 获取角色列表 + * @return {Promise