feat: 日志页面
This commit is contained in:
@@ -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')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
29
src/views/businessLog/Viewer.vue
Normal file
29
src/views/businessLog/Viewer.vue
Normal 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>
|
||||||
Reference in New Issue
Block a user