From 826e5978db29dce715e9e785ee09b4363ea88ac8 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期四, 07 三月 2024 16:51:41 +0800 Subject: [PATCH] qxtj --- src/views/jmreport/kslrtj/index.vue | 43 +++++++++++++++++++++ src/views/jmreport/cwfx/index.vue | 43 +++++++++++++++++++++ 2 files changed, 86 insertions(+), 0 deletions(-) diff --git a/src/views/jmreport/cwfx/index.vue b/src/views/jmreport/cwfx/index.vue new file mode 100644 index 0000000..282f8e2 --- /dev/null +++ b/src/views/jmreport/cwfx/index.vue @@ -0,0 +1,43 @@ +<template> + <div v-loading="loading" :style="'height:' + height"> + <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" /> + </div> +</template> +<script> +import { + getToken +} from '@/utils/auth' +import { view } from "@/api/jmreport/jimu"; +export default { + name: "Ureport", + data() { + return { + src: "", + height: document.documentElement.clientHeight - 94.5 + "px;", + loading: true, + viewNum:"885036207700652032" + }; + }, + created() { + view().then((res) => { + this.src = + res + + "/" + + this.viewNum + + "?token=Bearer" + + getToken(); + }); + // this.src = "http://192.168.0.99:8080/ltkj-admin/jmreport/view/803795472456839168?token=Bearer " + getToken(); + }, + + mounted: function () { + setTimeout(() => { + this.loading = false; + }, 230); + const that = this; + window.onresize = function temp() { + that.height = document.documentElement.clientHeight - 94.5 + "px;"; + }; + } +}; +</script> \ No newline at end of file diff --git a/src/views/jmreport/kslrtj/index.vue b/src/views/jmreport/kslrtj/index.vue new file mode 100644 index 0000000..5c6b29a --- /dev/null +++ b/src/views/jmreport/kslrtj/index.vue @@ -0,0 +1,43 @@ +<template> + <div v-loading="loading" :style="'height:' + height"> + <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" /> + </div> +</template> +<script> +import { + getToken +} from '@/utils/auth' +import { view } from "@/api/jmreport/jimu"; +export default { + name: "Ureport", + data() { + return { + src: "", + height: document.documentElement.clientHeight - 94.5 + "px;", + loading: true, + viewNum:"920563244359954432" + }; + }, + created() { + view().then((res) => { + this.src = + res + + "/" + + this.viewNum + + "?token=Bearer" + + getToken(); + }); + // this.src = "http://192.168.0.99:8080/ltkj-admin/jmreport/view/803795472456839168?token=Bearer " + getToken(); + }, + + mounted: function () { + setTimeout(() => { + this.loading = false; + }, 230); + const that = this; + window.onresize = function temp() { + that.height = document.documentElement.clientHeight - 94.5 + "px;"; + }; + } +}; +</script> \ No newline at end of file -- Gitblit v1.8.0