浏览代码

搞定链路分析打不开的问题

wukai 8 月之前
父节点
当前提交
86fb219b50
共有 2 个文件被更改,包括 32 次插入1 次删除
  1. 1 1
      src/views/index/widget/titleNav.vue
  2. 31 0
      src/views/obj/pp/link.vue

+ 1 - 1
src/views/index/widget/titleNav.vue

@@ -32,7 +32,7 @@ function getWeek(){
 }
 
 function toTarget(){
-  router.push({path:"/alarm/record"})
+  router.push({path:"/link/pp-link"})
 }
 
 </script>

+ 31 - 0
src/views/obj/pp/link.vue

@@ -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>