add lowcode example
This commit is contained in:
parent
240fbc3084
commit
cff739c566
|
@ -195,10 +195,16 @@ export const constantRoutes = [
|
||||||
meta: { title: '变电站' }
|
meta: { title: '变电站' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'heatStation',
|
path: 'aicity',
|
||||||
name: 'HeatStation',
|
name: 'AiCity',
|
||||||
component: () => import('@/views/configuration/heatStation'),
|
component: () => import('@/views/configuration/AiCity'),
|
||||||
meta: { title: '换热站' }
|
meta: { title: '智慧城市' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'bridgeMachine',
|
||||||
|
name: 'BridgeMachine',
|
||||||
|
component: () => import('@/views/configuration/bridgeMachine'),
|
||||||
|
meta: { title: '大方架桥机' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -10,6 +10,13 @@ export default {
|
||||||
iframeHeight() {
|
iframeHeight() {
|
||||||
return window.innerHeight - 185
|
return window.innerHeight - 185
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
const test = document.getElementById('ifm').onload = function() {
|
||||||
|
document.getElementById('ifm')// 获取到iframe
|
||||||
|
|
||||||
|
console.log('test', test)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue