diff --git a/src/pages/myApp/ATPProcess.vue b/src/pages/myApp/ATPProcess.vue index fbdb22e7a3c665735331ad045f96ebefab4531df..b7d0a044496cd70df46077dd268dd20696fa6e3e 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 8bf9b9ce96fc2eb3c14f6c6644bd53bfe2c5fb86..0260346ebf04b5c643c65573736a1b4e7c77e6a1 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 f2697f9daa9a920dd08516b34dd1ff039c5c186c..6125c15343c8aed6dfd1b5a022475443efb5ea7a 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 5611415da4fc4008d2b12a1f4a027478a250538d..a09ea96d3429b5895ad741cb40bb3da24fe17405 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() },