From 28eabcf57517e503618d9217e8bf6cd4b6b96cc7 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期三, 10 五月 2023 18:43:33 +0800
Subject: [PATCH] 图层管理DEM切换,根据项目进行筛选;顶部菜单优化

---
 src/views/PackageTwo/WareInspection.vue |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/src/views/PackageTwo/WareInspection.vue b/src/views/PackageTwo/WareInspection.vue
index c716574..581506d 100644
--- a/src/views/PackageTwo/WareInspection.vue
+++ b/src/views/PackageTwo/WareInspection.vue
@@ -91,6 +91,7 @@
       this.url = res
       // sessionStorage.setItem('routerName', this.reportUrl)
       console.log("2", this.reportUrl)
+      // window.addEventListener("message", this.handleMessage, false);
     },
 
     setLiClick(res, index) {
@@ -119,20 +120,27 @@
         Vue.set(this.listMenu, index, newItem);
       }
     },
+    getFunc() {
+      console.log("closeMenuSecond")
+      this.$bus.$emit('closeMenuSecond', false)
+    }
   },
   mounted() {
 
-    // var iframe = document.getElementById('iframeContainer');
-    // iframe.onload = function (res) {
-
+    // const iframe = document.querySelector('#iframeContainer')
+    // // 澶勭悊鍏煎琛岄棶棰�
+    // if (iframe.attachEvent) {
+    //   iframe.attachEvent('onload', () => {
+    //     // iframe鍔犺浇瀹屾瘯浠ュ悗鎵ц鎿嶄綔
+    //     this.getFunc()
+    //   })
+    // } else {
+    //   iframe.onload = () => {
+    //     // iframe鍔犺浇瀹屾瘯浠ュ悗鎵ц鎿嶄綔
+    //     this.getFunc()
+    //   }
     // }
 
-    // $('#iframeContainer').click = function () {
-    //   console.log('鐐瑰嚮浜唅frame椤甸潰')
-    //   // if (window.sessionStorage.getItem('xxxLastTime') !== null) {
-    //   //   window.sessionStorage.setItem('xxxLastTime', new Date().getTime())
-    //   // }
-    // };
     if (sessionStorage.getItem('routerName') === '/WareInspection') {
 
       this.showChangeIfream(sessionStorage.getItem('iframehttpurl'))

--
Gitblit v1.9.3