add lowcode example

This commit is contained in:
龚祖望 2022-10-08 20:36:40 +08:00
parent 240fbc3084
commit cff739c566
4 changed files with 35 additions and 6 deletions

View File

@ -195,10 +195,16 @@ export const constantRoutes = [
meta: { title: '变电站' }
},
{
path: 'heatStation',
name: 'HeatStation',
component: () => import('@/views/configuration/heatStation'),
meta: { title: '换热站' }
path: 'aicity',
name: 'AiCity',
component: () => import('@/views/configuration/AiCity'),
meta: { title: '智慧城市' }
},
{
path: 'bridgeMachine',
name: 'BridgeMachine',
component: () => import('@/views/configuration/bridgeMachine'),
meta: { title: '大方架桥机' }
}
]
},

View File

@ -1,6 +1,6 @@
<template>
<div class="app-container">
<iframe src="http://localhost:8081/" width="100%" :height="iframeHeight" />
<iframe id="ifm" style="margin-top:-130px;height: 90vh;border: medium none" src="https://t.le5le.com/?id=6128887203582f00012b8a14" width="100%" :height="iframeHeight" />
</div>
</template>

View File

@ -0,0 +1,16 @@
<template>
<div class="app-container">
<iframe id="ifm" style="margin-top:-130px;height: 90vh;border: medium none" src="https://t.le5le.com/?id=61c98f99311360740ed7a18e" width="100%" :height="iframeHeight" />
</div>
</template>
<script>
export default {
computed: {
iframeHeight() {
return window.innerHeight - 185
}
}
}
</script>

View File

@ -1,6 +1,6 @@
<template>
<div class="app-container">
<iframe src="http://localhost:8080/" width="100%" :height="iframeHeight" />
<iframe id="ifm" style="margin-top:-130px;height: 90vh;border: medium none" src="https://t.le5le.com/?id=6318527c288d77e4cee1a1bd" width="100%" :height="iframeHeight" />
</div>
</template>
@ -10,6 +10,13 @@ export default {
iframeHeight() {
return window.innerHeight - 185
}
},
mounted() {
const test = document.getElementById('ifm').onload = function() {
document.getElementById('ifm')// iframe
console.log('test', test)
}
}
}
</script>