From 44e7fbddd45ef1d2cbfec75d7d757cc7f499ad1e Mon Sep 17 00:00:00 2001 From: zory <791736813@qq.com> Date: Tue, 24 May 2022 21:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=8A=A0=E8=BD=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/menu.js | 8 +++++++- src/views/system/menu/index.vue | 28 ++++++++++++++++++++-------- src/views/tool/gen/genInfoForm.vue | 2 +- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/src/api/system/menu.js b/src/api/system/menu.js index 59dcf65..47d3ab1 100644 --- a/src/api/system/menu.js +++ b/src/api/system/menu.js @@ -8,7 +8,13 @@ export function listMenu(query) { params: query }) } - +// 查询菜单列表 +export function listMenuById(menuId) { + return request({ + url: '/system/menu/list/' + menuId, + method: 'get', + }) +} // 查询菜单详细 export function getMenu(menuId) { return request({ diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index e7f93fb..234b4ae 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -9,6 +9,11 @@ + + + + + {{ $t('btn.search') }} {{ $t('btn.reset') }} @@ -32,6 +37,8 @@ row-key="menuId" :default-expand-all="isExpandAll" border + lazy + :load="loadMenu" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> @@ -48,7 +55,6 @@ {{ $t('m.button') }} - diff --git a/src/views/tool/gen/genInfoForm.vue b/src/views/tool/gen/genInfoForm.vue index c928a13..f0cb8ea 100644 --- a/src/views/tool/gen/genInfoForm.vue +++ b/src/views/tool/gen/genInfoForm.vue @@ -374,7 +374,7 @@ function setSubTableColumns(value) { /** 查询菜单下拉树结构 */ function getMenuTreeselect() { /** 查询菜单下拉列表 */ - listMenu().then((response) => { + listMenu({ menuTypeIds: 'M,C' }).then((response) => { menuOptions.value = response.data }) }