From 57a2564bdaf704686dc3c38ce02713e8f68e3f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Sat, 17 Jun 2023 16:04:41 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E8=8F=9C=E5=8D=95=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/menu/index.vue | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index 0b9b1c2..c6157bf 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -116,7 +116,7 @@ - + @@ -231,7 +231,11 @@ {{ $t('m.componentPath') }} - + + + @@ -377,7 +381,7 @@ proxy.getDicts(dictParams).then((response) => { const { queryParams, form, rules, sys_show_hide, sys_normal_disable } = toRefs(state) /** 查询菜单列表 */ -function getList() { +function getList(type) { loading.value = true if (queryParams.value.parentId != undefined || queryParams.value.menuName != undefined) { queryParams.value.menuTypeIds = '' @@ -386,6 +390,9 @@ function getList() { } listMenu(queryParams.value).then((response) => { menuList.value = response.data + if (type == 1) { + menuQueryOptions.value = response.data + } loading.value = false }) } @@ -557,10 +564,10 @@ function refreshMenu(pid) { } } -listMenu({ menuTypeIds: 'M,C' }).then((response) => { - menuQueryOptions.value = response.data -}) +// listMenu({ menuTypeIds: 'M,C' }).then((response) => { +// menuQueryOptions.value = response.data +// }) // 首次列表加载(只加载一层) -getList() +getList(1)