From ceca28ac6673f3263c5c08eacd91a06b1de6f5d6 Mon Sep 17 00:00:00 2001 From: chenke Date: Wed, 16 Feb 2022 16:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=8F=9C=E5=8D=95=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/menu.js | 12 +- src/styles/scss/index.scss | 1 + src/views/menu/index.vue | 675 ++++++++++++++++++++----------------- 3 files changed, 375 insertions(+), 313 deletions(-) diff --git a/src/api/menu.js b/src/api/menu.js index c11c617..4017529 100644 --- a/src/api/menu.js +++ b/src/api/menu.js @@ -37,17 +37,17 @@ export function roleMenuTreeselect(roleId) { // 新增菜单 export function addMenu(data) { return request({ - url: '/api/v1/menu', + url: '/menu/AddMenu', method: 'post', data: data }) } // 修改菜单 -export function updateMenu(data, id) { +export function updateMenu(data ) { return request({ - url: '/api/v1/menu/' + id, - method: 'put', + url: '/menu/menuEdit', + method: 'post', data: data }) } @@ -55,8 +55,8 @@ export function updateMenu(data, id) { // 删除菜单 export function delMenu(data) { return request({ - url: '/api/v1/menu', - method: 'delete', + url: '/menu/menuDel', + method: 'post', data: data }) } diff --git a/src/styles/scss/index.scss b/src/styles/scss/index.scss index 1ae9715..a7d0ef8 100644 --- a/src/styles/scss/index.scss +++ b/src/styles/scss/index.scss @@ -4,6 +4,7 @@ @import './element-ui.scss'; @import './sidebar.scss'; @import './btn.scss'; +@import './admin.scss'; body { margin: 0; diff --git a/src/views/menu/index.vue b/src/views/menu/index.vue index 80de1f2..702ddb8 100644 --- a/src/views/menu/index.vue +++ b/src/views/menu/index.vue @@ -1,270 +1,287 @@