Files
emsfront/src/views/ems/dzjk/tjbb/index.vue

59 lines
1.4 KiB
Vue
Raw Normal View History

2025-06-18 01:01:17 +08:00
<template>
2025-06-23 19:51:17 +08:00
<div class="ems-dashboard-editor-container tjbb-ems-dashboard-editor-container">
2025-06-24 22:48:33 +08:00
<el-menu
class="ems-third-menu"
:default-active="$route.name"
background-color="#ffffff"
text-color="#666666"
active-text-color="#ffffff"
>
<el-menu-item :index="item.name" v-for="(item,index) in childrenRoute" :key="index+'tjbbChildrenRoute'">
<router-link style="height: 100%;width: 100%;display: block;" :to="{path:item.path,query:$route.query}">
{{item.meta.title}}
</router-link>
</el-menu-item>
</el-menu>
2025-06-23 19:51:17 +08:00
<div class="ems-content-container ems-content-container-padding tjbb-ems-content-container">
<keep-alive>
<router-view></router-view>
</keep-alive>
</div>
2025-06-18 01:01:17 +08:00
</div>
2025-06-23 19:51:17 +08:00
2025-06-18 01:01:17 +08:00
</template>
2025-06-23 19:51:17 +08:00
<script>
import { dzjk } from '@/router/ems'
2025-06-25 12:55:58 +08:00
const childrenRoute = dzjk[0].children[0].children.find(item=> item.name==='DzjkTjbb').children//获取到统计报表下面的字路由
2025-06-23 19:51:17 +08:00
console.log('设备监控子路由',childrenRoute)
export default {
name:'DzjkTjbb',
2025-06-23 19:51:17 +08:00
data(){
return {
childrenRoute,
activeMenu:''
}
},
mounted() {
console.log('当前统计报表页面路由',this.$route)
}
2025-06-18 01:01:17 +08:00
2025-06-23 19:51:17 +08:00
}
</script>
<style scoped lang="scss">
.tjbb-ems-dashboard-editor-container{
display: flex;
padding:0;
background: #FFFFFF;
}
.tjbb-ems-content-container{
margin-top:0;
padding-top:0;
padding-right: 0;
flex: 1;
}
2025-06-18 01:01:17 +08:00
</style>
2025-06-23 19:51:17 +08:00