From c215c89ecda16e4d32593f3e942fe871898071e9 Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期一, 05 二月 2024 17:51:53 +0800
Subject: [PATCH] 代码提交

---
 src/views/PackageTwo/WareInspection.vue |   31 +++++++++++++++++++------------
 1 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/src/views/PackageTwo/WareInspection.vue b/src/views/PackageTwo/WareInspection.vue
index c716574..e9904e4 100644
--- a/src/views/PackageTwo/WareInspection.vue
+++ b/src/views/PackageTwo/WareInspection.vue
@@ -56,8 +56,6 @@
 
     },
     showChangeIfream(res) {
-      // 
-      console.log(res)
       if (this.$store.state.themeflag == true) {
         if (res.indexOf('theme=white') != -1) {
           res = res.replace('theme=white', 'theme=dark');
@@ -77,11 +75,12 @@
           res = res.replace('lang=zh', 'lang=en');
         }
       }
+
       if (res.indexOf('{fmeHost}') != -1) {
 
         res = res.replace('{fmeHost}', fmeHost)
       }
-
+      console.log("2", this.reportUrl)
       if (res.indexOf('token=') != -1) {
         res = res + getToken();
       }
@@ -91,6 +90,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 +119,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