lowcode page move to home page

This commit is contained in:
龚祖望 2022-10-10 20:28:06 +08:00
parent dde26f904c
commit 96aacbd62b
6 changed files with 86 additions and 39 deletions

View File

@ -75,6 +75,26 @@ export const constantRoutes = [
component: () => import('@/views/solution/qianjiang'), component: () => import('@/views/solution/qianjiang'),
hidden: true hidden: true
}, },
{
path: '/configuration/development',
component: () => import('@/views/configuration/development'),
hidden: true
},
{
path: '/configuration/transferStation',
component: () => import('@/views/configuration/transferStation'),
hidden: true
},
{
path: '/configuration/AiCity',
component: () => import('@/views/configuration/AiCity'),
hidden: true
},
{
path: '/configuration/bridgeMachine',
component: () => import('@/views/configuration/bridgeMachine'),
hidden: true
},
{ {
path: '/login', path: '/login',
component: () => import('@/views/login/index'), component: () => import('@/views/login/index'),
@ -176,37 +196,43 @@ export const constantRoutes = [
} }
] ]
}, },
// {
// path: '/configuration',
// component: Layout,
// name: 'Configuration',
// meta: { title: '组态管理', icon: 'configuration' },
// children: [
// {
// path: 'development',
// name: 'Development',
// component: () => import('@/views/configuration/development'),
// meta: { title: '组态开发' }
// },
// {
// path: 'transferStation',
// name: 'TransferStation',
// component: () => import('@/views/configuration/transferStation'),
// meta: { title: '变电站' }
// },
// {
// path: 'aicity',
// name: 'AiCity',
// component: () => import('@/views/configuration/AiCity'),
// meta: { title: '智慧城市' }
// },
// {
// path: 'bridgeMachine',
// name: 'BridgeMachine',
// component: () => import('@/views/configuration/bridgeMachine'),
// meta: { title: '大方架桥机' }
// }
// ]
// },
{ {
path: '/configuration', path: '/configureApp',
component: Layout, component: Layout,
name: 'Configuration', name: 'configureApp',
meta: { title: '组态管理', icon: 'configuration' }, meta: { title: '组态应用', icon: 'configuration', disabled: true }
children: [
{
path: 'development',
name: 'Development',
component: () => import('@/views/configuration/development'),
meta: { title: '组态开发' }
},
{
path: 'transferStation',
name: 'TransferStation',
component: () => import('@/views/configuration/transferStation'),
meta: { title: '变电站' }
},
{
path: 'aicity',
name: 'AiCity',
component: () => import('@/views/configuration/AiCity'),
meta: { title: '智慧城市' }
},
{
path: 'bridgeMachine',
name: 'BridgeMachine',
component: () => import('@/views/configuration/bridgeMachine'),
meta: { title: '大方架桥机' }
}
]
}, },
{ {
path: '/log', path: '/log',

View File

@ -48,6 +48,28 @@
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
<div
class="menu"
:class="{ active: current === 4 }"
style="padding: 0 20px"
>
<el-dropdown @command="tpPage">
<span class="menu"> 组态开发 </span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item
command="/configuration/development"
>流程规划</el-dropdown-item>
<el-dropdown-item
command="/configuration/transferStation"
>变电站</el-dropdown-item>
<el-dropdown-item
command="/configuration/AiCity"
>智慧城市</el-dropdown-item>
<el-dropdown-item
command="/configuration/bridgeMachine"
>大方架桥机</el-dropdown-item>
</el-dropdown-menu></el-dropdown>
</div>
<div <div
class="menu" class="menu"
:class="{ active: current === 3 }" :class="{ active: current === 3 }"
@ -169,7 +191,6 @@ export default {
} }
}, },
tpPage(router) { tpPage(router) {
console.log('toPage', router)
this.$router.push({ path: router }) this.$router.push({ path: router })
} }
} }
@ -201,8 +222,7 @@ export default {
right: 120px; right: 120px;
top: 3px; top: 3px;
background-color: rgba(95, 155, 241, 0.39); background-color: rgba(95, 155, 241, 0.39);
width: 700px;
width: 600px;
.menu { .menu {
height: 70px; height: 70px;
line-height: 70px; line-height: 70px;

View File

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

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <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" /> <iframe id="ifm" style="margin-top:-75px;border: medium none" src="https://t.le5le.com/?id=61c98f99311360740ed7a18e" width="100%" :height="iframeHeight" />
</div> </div>
</template> </template>
@ -8,7 +8,8 @@
export default { export default {
computed: { computed: {
iframeHeight() { iframeHeight() {
return window.innerHeight - 185 console.log('height', window.innerHeight)
return window.innerHeight + 30
} }
} }
} }

View File

@ -156,7 +156,7 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.home { .home {
height: calc(100vh - 50px); height: 100vh;
} }
.avater{ .avater{
display: none; display: none;

View File

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