From 1653112f53e17dbbd8a5b7230b096da8902b3337 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期五, 11 八月 2023 15:13:47 +0800
Subject: [PATCH] 图层管理修改

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

diff --git a/src/components/navMenu.vue b/src/components/navMenu.vue
index 76c4e0a..7ce050d 100644
--- a/src/components/navMenu.vue
+++ b/src/components/navMenu.vue
@@ -13,6 +13,7 @@
             class="contentDiv"
             @click="setMenuMove(index, item)"
             v-for="(item, index) in listMenu"
+            :key="index"
           >
             <div style="display: flex;align-items: center">
               <div class="ImgMenu">
@@ -31,9 +32,11 @@
             <div
               class="secondMenuDiv   subpage_Div"
               v-show="index == showFlag ? true :false"
+              v-if="item.children && item.children.length>0"
             >
               <div
-                v-for="res in item.children"
+                v-for="(res,i) in item.children"
+                :key="i"
                 @click="setLiClick(res,index)"
                 :class="{ changeLiStyle: changeliSelect == res.cnName }"
               >
@@ -229,15 +232,30 @@
           this.changeliSelect = '%%';
           this.showFlag = null;
         }
-        if (item.url == "Thematic") {
-          this.signInsertOpLog("缁煎悎灞曠ず", item.cnName)
+        if (item.url == "/projectController") {
+          this.signInsertOpLog("椤圭洰绠$悊", item.cnName)
         }
 
         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;
+
+
+
         } else {
           this.showFlag = null;
         }
@@ -326,7 +344,6 @@
       }
     },
     async setMenuTree(res) {
-
       for (var i in res) {
         res[i].checkClass = res[i].css + '1';
         res[i].show = false; //鎺у埗鏄鹃殣
@@ -340,6 +357,9 @@
               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