From ec86ce630c3bf6ef4abe5f52ecde21eeda03c5e7 Mon Sep 17 00:00:00 2001
From: WX <1377869194@qq.com>
Date: 星期二, 15 八月 2023 10:59:21 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.20.39:8989/r/LunarMidplane

---
 src/components/navMenu.vue |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/src/components/navMenu.vue b/src/components/navMenu.vue
index 15baf70..7ce050d 100644
--- a/src/components/navMenu.vue
+++ b/src/components/navMenu.vue
@@ -224,7 +224,7 @@
     },
     //榧犳爣绉诲叆鑿滃崟浜嬩欢
     setMenuMove(index, item) {
-    
+
       if (item.perms != null && item.perms != "") {
         this.$router.push(item.url);
         if (this.showFlag != null) {
@@ -239,14 +239,23 @@
         this.changeSelectStyle = index;
         sessionStorage.setItem('changeSelectStyle', index)
       } else {
+
+
         if (this.showFlag != index) {
-          this.showFlag = index;
+
+          if (item.url == '/bankController') {
+            this.setLiClick(item, index)
+          } else {
+            this.showFlag = index;
+            if (item.url && item.children && item.children.length == 0) {
+              window.open(item.url)
+            }
+          }
+
           this.changeSelectStyle = index;
 
 
-          if (item.url && item.children && item.children.length == 0) {
-            window.open(item.url)
-          }
+
         } else {
           this.showFlag = null;
         }
@@ -335,20 +344,22 @@
       }
     },
     async setMenuTree(res) {
-
       for (var i in res) {
         res[i].checkClass = res[i].css + '1';
         res[i].show = false; //鎺у埗鏄鹃殣
 
         if (res[i].perms == null || res[i].perms == "") {
           const result = await selectMenuRecursive({ id: res[i].id });
-     
+
           if (result.code == 200) {
 
             res[i].children = result.result.filter((value) => {
               return value.isShow == 1;
             })
               .filter((value) => {
+                if (value.pid == res[i].id) {
+                  // console.log(JSON.stringify(value))
+                }
                 return value.pid == res[i].id;
               });
 

--
Gitblit v1.9.3