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 }) }