From 2d2b6208fcae505a0401ace51610ec955d4d5a02 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 11 三月 2025 14:54:55 +0800
Subject: [PATCH] 最新版本541200007

---
 admin/src/components/common/tagsview.vue |   31 ++++++++++++++++++++++++-------
 1 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/admin/src/components/common/tagsview.vue b/admin/src/components/common/tagsview.vue
index 8d654bc..50d9800 100644
--- a/admin/src/components/common/tagsview.vue
+++ b/admin/src/components/common/tagsview.vue
@@ -12,7 +12,7 @@
         :key="index"
         :id="'tags-box-' + index"
         @contextmenu.prevent="openMenu(item, $event)"
-        :class="isActive(item.url, index) ? 'active' : ''"
+        :class="isActive(item.url, item.params,index) ? 'active' : ''"
         class="tagsview"
         @click="tagsmenu(item, index)"
       >
@@ -68,7 +68,7 @@
     },
     $route(to, from) {
       this.tags.forEach((item, index) => {
-        if (item.url === to.path) {
+        if (item.url === to.path && item.index === to.query.index) {
           const tagsDiv = document.getElementById('tags-box')
           if (index) {
             tagsDiv.scrollTo(index * 110, 0)
@@ -129,11 +129,11 @@
           }
         } else {
           // 閭d箞锛屽鏋滀笂闈㈢殑鏉′欢閮戒笉鎴愮珛锛屾病鏈塴ength=0.涔熷氨鏄浣犺繕鏈夊ソ鍑犱釜鏍囩锛屽苟涓斾綘鍒犻櫎鐨勬槸鏈�鍚庝竴浣嶆爣绛撅紝閭d箞灏卞線宸﹁竟鎸竴浣嶈烦杞矾鐢�
-          this.$router.push({ path: this.tags[index - 1].url })
+          this.$router.push({ path: this.tags[index - 1].url,query:{param: this.tags[index - 1].params} })
         }
       } else {
         // 濡傛灉浣犵偣鍑讳笉鏄渶鍚庝竴浣嶆爣绛撅紝鐐圭殑鍓嶉潰鐨勶紝閭e氨寰�鍙宠竟璺宠浆
-        this.$router.push({ path: this.tags[index].url })
+        this.$router.push({ path: this.tags[index].url ,query:{param: this.tags[index].params}})
       }
     },
     // 鐐瑰嚮璺宠浆璺敱
@@ -142,16 +142,33 @@
       // 鍒ゆ柇锛氬綋鍓嶈矾鐢变笉绛変簬褰撳墠閫変腑椤圭殑url锛屼篃灏变唬琛ㄤ綘鐐瑰嚮鐨勪笉鏄幇鍦ㄩ�変腑鐨勬爣绛撅紝鏄彟涓�涓爣绛惧氨璺宠浆杩囧幓锛屽鏋滀綘鐐瑰嚮鐨勬槸鐜板湪宸茬粡閫変腑鐨勬爣绛惧氨涓嶇敤璺宠浆浜嗭紝鍥犱负浣犲凡缁忓湪杩欎釜璺敱浜嗚繕璺充粈涔堝憿銆�
       if (this.$route.path !== item.url) {
         // 鐢╬ath鐨勮烦杞柟娉曟妸褰撳墠椤圭殑url褰撲綔鍦板潃璺宠浆銆�
-        this.$router.push({ path: item.url })
+        this.$router.push({ path: item.url ,query:{param: this.tags[index].params}})
         const tagsDiv = document.getElementById('tags-box')
         if (index) {
           tagsDiv.scrollTo(index * 110, 0)
         }
       }
+      this.computeTableHeightView();
+    },
+    computeTableHeightView () { state.tags = []
+      this.$nextTick(() => {
+        let height = window.innerHeight
+        let height6 = (document.getElementsByClassName('common-header') && document.getElementsByClassName('common-header')[0] ? document.getElementsByClassName('common-header')[0].clientHeight:0)
+        // alert(height)
+        let height1 = (document.getElementsByClassName('table-search-form') && document.getElementsByClassName('table-search-form')[0])? document.getElementsByClassName('table-search-form')[document.getElementsByClassName('table-search-form').length-1].clientHeight:0
+        height1 = height1===0? 40:height1+10
+        let height3 = document.getElementsByClassName('main-header') && document.getElementsByClassName('main-header')[0]?document.getElementsByClassName('main-header')[0].clientHeight:0
+        let height4 = document.getElementsByClassName('table-pagination') && document.getElementsByClassName('table-pagination')[0]? document.getElementsByClassName('table-pagination')[0].clientHeight:0
+        let height2 = document.getElementsByClassName('toolbar') && document.getElementsByClassName('toolbar')[0]?document.getElementsByClassName('toolbar')[0].clientHeight:0
+        let height5 = document.getElementsByTagName('thead') && document.getElementsByTagName('thead')[0]? document.getElementsByTagName('thead')[0].clientHeight:0
+        // this.tableHeightNew = height-height4-height3-height2-height1-height5-height6-height7-height8-height9 -height10// 鎵撳嵃楂樺害
+        console.log('view',height,height6,height3 ,height1,height2,height4,height4)
+        console.log('view', height-height4-height3-height2-height1-height5 -height6)
+      })
     },
     // 閫氳繃鍒ゆ柇璺敱涓�鑷磋繑鍥炲竷灏斿�兼坊鍔燾lass锛屾坊鍔犻珮浜晥鏋�
-    isActive(route, index) {
-      const res = route === this.$route.path
+    isActive(route,params, index) {
+      const res =(route === this.$route.path && params== this.$route.query.param)
       return res
     },
     scrollToStart() {

--
Gitblit v1.9.3