|
@@ -0,0 +1,31 @@
|
|
|
+<template>
|
|
|
+ <div v-loading="loading" :style="{height: realHeight}">
|
|
|
+ <iframe
|
|
|
+ :src="src"
|
|
|
+ frameborder="0"
|
|
|
+ scrolling="no"
|
|
|
+ id="bi_iframe"
|
|
|
+ @load="adjustIframe"
|
|
|
+ style="width:100%;position: absolute; top: 0px; left: 0px"
|
|
|
+ ></iframe>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+const {proxy} = getCurrentInstance();
|
|
|
+const src = ref("");
|
|
|
+
|
|
|
+function init() {
|
|
|
+ proxy.getConfigKey("pp.url").then(response => {
|
|
|
+ src.value = response.msg
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+init();
|
|
|
+
|
|
|
+
|
|
|
+function adjustIframe() {
|
|
|
+ const ifm = document.getElementById("bi_iframe");
|
|
|
+ ifm.height = document.documentElement.clientHeight - 75;
|
|
|
+}
|
|
|
+</script>
|