From 456ae4c82aed80e28e5b2d40339632b90c74222f Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期四, 08 五月 2025 14:23:08 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb_region --- src/views/jmreport/jmreport/index.vue | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/views/jmreport/jmreport/index.vue b/src/views/jmreport/jmreport/index.vue index 9a485c8..4421385 100644 --- a/src/views/jmreport/jmreport/index.vue +++ b/src/views/jmreport/jmreport/index.vue @@ -1,6 +1,8 @@ <template> <div v-loading="loading" :style="'height:'+ height"> - <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" /> + <!-- <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" /> --> + <iframe :src="srcs" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" /> + </div> </template> <script> @@ -10,18 +12,40 @@ import { indexUrl } from '@/api/jmreport/jimu' + import Cookies from "js-cookie" + import axios from 'axios'; export default { name: "Ureport", data() { return { src: "", + srcs:"", height: document.documentElement.clientHeight - 94.5 + "px;", loading: true, }; }, created() { indexUrl().then(res => { - this.src = res + "?token=Bearer " + getToken(); + this.srcs = res + "?token=Bearer " + getToken(); + try{ + axios({ + method:"get", + url: this.srcs, + headers: { + hospId:Cookies.get("hospId") + } + }).then(res => { + this.src=res + }) + // const response = axios.get("this.src",{ + // headers: { + // hospId:Cookies.get("hospId") + // } + // }); + + }catch(error){ + console.log(error) + } }) }, -- Gitblit v1.8.0