From 4745b682956116fa09d812c59b485395f45c2e87 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期五, 10 二月 2023 15:38:39 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.20.39:8989/r/LFWEB_NEW

---
 src/components/navMenu.vue |   48 ++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 44 insertions(+), 4 deletions(-)

diff --git a/src/components/navMenu.vue b/src/components/navMenu.vue
index 031434b..657aef7 100644
--- a/src/components/navMenu.vue
+++ b/src/components/navMenu.vue
@@ -117,7 +117,32 @@
       listMenu: [],
       showFlag: null,
       language: true,
-
+      nowPage: [
+        {
+          name: '/Archive',
+          index: 3
+        },
+        {
+          name: '/dataApplication',
+          index: 3
+        },
+        {
+          name: '/ExportMap',
+          index: 3
+        },
+        {
+          name: '/Synthesis',
+          index: 3
+        },
+        {
+          name: '/dataController',
+          index: 4
+        },
+        {
+          name: '/mochaitmo',
+          index: 5
+        }
+      ]
     };
   },
   created() { },
@@ -187,7 +212,7 @@
           this.showFlag = null;
         }
       }
-
+      sessionStorage.setItem('changeSelectStyle', index)
       this.changeSelectStyle = index;
     },
     closeAllChildren() {
@@ -211,9 +236,11 @@
     },
     setLiClick(res, index) {
       setTimeout(() => {
+        // debu
         this.changeliSelect = res.cnName;
         if (res.url.indexOf('http') != -1) {
-           this.$store.reporturl = res.url;
+            this.$store.reporturl = res.url;
+            sessionStorage.setItem('iframehttpurl', this.$store.reporturl)
             this.$router.push('/QualityInspection');
           // if (location.href.indexOf('/WareInspection') == -1) {
           //   this.$store.reporturl = res.url;
@@ -223,6 +250,7 @@
           // }
         } else {
           this.$store.reporturl = null;
+          sessionStorage.setItem('iframehttpurl', null)
           this.$router.push(res.url);
           this.$store.commit('currentPerms', res.perms);
         }
@@ -268,7 +296,19 @@
 
           }
           this.listMenu.push(res[i]);
-          this.changeSelectStyle = this.listMenu.length - 1;
+          // this.changeSelectStyle = this.listMenu.length - 1;
+          // this.changeSelectStyle = 0
+          // const nowPage = this.nowPage
+          // if (sessionStorage.getItem('routerName')) {
+          //   for (let index = 0; index < nowPage.length; index++) {
+          //     if (this.$route.path === nowPage[index].name) {
+          //       this.$set(this, 'changeSelectStyle', nowPage[index].index)
+          //     }
+          //   }
+          // } else {
+          //   this.changeSelectStyle = this.listMenu.length - 1;
+          // }
+          this.changeSelectStyle = sessionStorage.getItem('changeSelectStyle')
           // var strartMneu = res[i].children[0];
           // this.$store.commit('currentPerms', strartMneu.perms);
           // this.changeliSelect = strartMneu.cnName;

--
Gitblit v1.9.3