From 1413432cc5fdd0434a3f1782e9452592948e7c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 28 Oct 2021 12:31:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=85=E4=BA=8B=E6=9F=A5=E8=AF=A2=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xm/core/xmMenu/XmMenuMng.vue | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/views/xm/core/xmMenu/XmMenuMng.vue b/src/views/xm/core/xmMenu/XmMenuMng.vue index b44d2848..b247c1cb 100644 --- a/src/views/xm/core/xmMenu/XmMenuMng.vue +++ b/src/views/xm/core/xmMenu/XmMenuMng.vue @@ -89,10 +89,9 @@ - 上级故事: - - {{item.menuName}}/ - + + {{item.menuName}} + @@ -836,16 +835,22 @@ this.searchXmMenus(); }, clearParentMenu(menu,index){ - if(index==1){ + if(index==0){ this.filters.parentMenu=null; + this.filters.parentMenuList=[]; }else{ this.filters.parentMenu=this.filters.parentMenuList[index-1]; - } - - this.filters.parentMenuList.splice(index,this.filters.parentMenuList.length-index) + this.filters.parentMenuList.splice(index,this.filters.parentMenuList.length-index) + } this.pageInfo.count=true this.searchXmMenus(); - } + }, + onParentMenuClick(menu,index){ + this.filters.parentMenu=this.filters.parentMenuList[index]; + this.filters.parentMenuList.splice(index+1,this.filters.parentMenuList.length-index) + this.pageInfo.count=true + this.searchXmMenus(); + }, },//end methods components: { 'xm-menu-add':XmMenuAdd,