From 8aa3704b98ae6bc169dc4b22cd466161076e0af3 Mon Sep 17 00:00:00 2001 From: "ck01060722@163.com" Date: Fri, 1 Apr 2022 16:52:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=9B=BD=E9=99=85=E5=8C=96=E5=90=8C=E6=AD=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/myApp/ATPProcess.vue | 5 ++++- src/pages/myApp/ATPReport.vue | 5 ++++- src/pages/myApp/ATPTask.vue | 5 ++++- src/pages/myApp/TestScenarios.vue | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/pages/myApp/ATPProcess.vue b/src/pages/myApp/ATPProcess.vue index fbdb22e..b7d0a04 100644 --- a/src/pages/myApp/ATPProcess.vue +++ b/src/pages/myApp/ATPProcess.vue @@ -30,6 +30,7 @@ name="atp" width="100%" height="800" + ref="iframe" /> @@ -43,7 +44,8 @@ export default { return { srcUrl: '', taskId: '', - language: localStorage.getItem('language') + language: localStorage.getItem('language'), + iframeWin: {} } }, methods: { @@ -63,6 +65,7 @@ export default { }, mounted () { this.taskId = this.$route.params.taskId + this.iframeWin = this.$refs.iframe.contentWindow this.getAtpUrl() }, watch: { diff --git a/src/pages/myApp/ATPReport.vue b/src/pages/myApp/ATPReport.vue index 8bf9b9c..0260346 100644 --- a/src/pages/myApp/ATPReport.vue +++ b/src/pages/myApp/ATPReport.vue @@ -22,6 +22,7 @@ name="atp" width="100%" height="1450" + ref="iframe" /> @@ -35,7 +36,8 @@ export default { return { srcUrl: '', taskId: '', - language: localStorage.getItem('language') + language: localStorage.getItem('language'), + iframeWin: {} } }, methods: { @@ -52,6 +54,7 @@ export default { }, mounted () { this.taskId = this.$route.query.taskId + this.iframeWin = this.$refs.iframe.contentWindow this.getAtpUrl() }, watch: { diff --git a/src/pages/myApp/ATPTask.vue b/src/pages/myApp/ATPTask.vue index f2697f9..6125c15 100644 --- a/src/pages/myApp/ATPTask.vue +++ b/src/pages/myApp/ATPTask.vue @@ -26,6 +26,7 @@ id="iframe_atp" width="100%" height="1000" + ref="iframe" /> @@ -38,7 +39,8 @@ export default { data () { return { srcUrl: '', - language: localStorage.getItem('language') + language: localStorage.getItem('language'), + iframeWin: {} } }, methods: { @@ -54,6 +56,7 @@ export default { } }, mounted () { + this.iframeWin = this.$refs.iframe.contentWindow this.getAtpUrl() }, watch: { diff --git a/src/pages/myApp/TestScenarios.vue b/src/pages/myApp/TestScenarios.vue index 5611415..a09ea96 100644 --- a/src/pages/myApp/TestScenarios.vue +++ b/src/pages/myApp/TestScenarios.vue @@ -30,6 +30,7 @@ :src="srcUrl" name="atp" class="atp" + ref="iframe" /> @@ -43,7 +44,8 @@ export default { return { srcUrl: '', taskId: '', - language: localStorage.getItem('language') + language: localStorage.getItem('language'), + iframeWin: {} } }, methods: { @@ -62,6 +64,7 @@ export default { } }, mounted () { + this.iframeWin = this.$refs.iframe.contentWindow this.taskId = this.$route.params.taskId this.getAtpUrl() }, -- Gitee