feat: 日志页面

This commit is contained in:
chenjinsong
2022-05-18 15:23:38 +08:00
parent 8aaae91a21
commit 8b59095d60
2 changed files with 33 additions and 0 deletions

View File

@@ -57,6 +57,10 @@ const routes = [
{ {
path: '/temp', path: '/temp',
component: () => import('@/views/Temp') component: () => import('@/views/Temp')
},
{
path: '/businessLog/viewer',
component: () => import('@/views/businessLog/Viewer')
} }
] ]
} }

View File

@@ -0,0 +1,29 @@
<template>
<div id="frame-box" style="height: 100%; width: 100%; padding-top: 10px; overflow: hidden">
<iframe
id="frame"
width="100%"
height="100%"
frameborder="no"
border="0"
>
</iframe>
</div>
</template>
<script>
export default {
name: 'Viewer',
data () {
return {
height: 0
}
},
mounted () {
const boxDom = document.getElementById('frame-box')
const dom = document.getElementById('frame')
const height = boxDom.offsetHeight
dom.src = `http://192.168.44.114:8088/superset/explore/?r=15&standalone=1&height=${height || 800}`
}
}
</script>