From 7a0c7de021aebbef3ec137f2f94ff73ab41014d7 Mon Sep 17 00:00:00 2001 From: 王旭 <1377869194@qq.com> Date: 星期三, 10 五月 2023 14:44:47 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.20.39:8989/r/LFWEB_NEW --- src/views/PackageTwo/WareInspection.vue | 41 +++++++++++++++++++++++++++++------------ 1 files changed, 29 insertions(+), 12 deletions(-) diff --git a/src/views/PackageTwo/WareInspection.vue b/src/views/PackageTwo/WareInspection.vue index 32d3b85..c716574 100644 --- a/src/views/PackageTwo/WareInspection.vue +++ b/src/views/PackageTwo/WareInspection.vue @@ -1,8 +1,11 @@ <!--鍏ュ簱璐ㄦ---> <template> - <div class="wareBox"> + <div + class="wareBox" + id="wareBox" + > <iframe - id="ifream" + id="iframeContainer" style="border:none" width="100%" height="100%" @@ -10,7 +13,8 @@ ></iframe> </div> </template> - + + <script> import { getToken } from "@/utils/auth"; export default { @@ -38,15 +42,18 @@ } }, methods: { + closeNaveMenu() { + this.$bus.$emit('closeNaveMenu', true) + }, langreash(res) { - this.$router.push('/QualityInspection') + this.$router.push('/QualityInspection') }, refreash(res) { - this.$router.push('/QualityInspection') - + this.$router.push('/QualityInspection') + }, showChangeIfream(res) { // @@ -89,9 +96,9 @@ setLiClick(res, index) { var timer = setTimeout(function () { if (res.indexOf('http') != -1) { - this.$store.reporturl = res; - // sessionStorage.setItem('iframehttpurl', this.$store.reporturl) - this.$router.push('/QualityInspection'); + this.$store.reporturl = res; + // sessionStorage.setItem('iframehttpurl', this.$store.reporturl) + this.$router.push('/QualityInspection'); // if (location.href.indexOf('/WareInspection') == -1) { // this.$store.reporturl = res.url; // this.$router.push('/WareInspection'); @@ -114,10 +121,20 @@ }, }, mounted() { - // console.log(sessionStorage.getItem('iframehttpurl')) - // + + // var iframe = document.getElementById('iframeContainer'); + // iframe.onload = function (res) { + + // } + + // $('#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')) this.setLiClick(sessionStorage.getItem('iframehttpurl')) -- Gitblit v1.9.3