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

62 lines
1.4 KiB
Vue
Raw Normal View History

2025-06-18 01:01:17 +08:00
<template>
<div class="ems-dashboard-editor-container ems-third-menu-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"
>
2025-08-20 17:53:26 +08:00
<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 }}
2025-06-24 22:48:33 +08:00
</router-link>
</el-menu-item>
</el-menu>
2025-08-20 17:53:26 +08:00
<div
class="ems-content-container ems-content-container-padding tjbb-ems-content-container"
>
2025-06-23 19:51:17 +08:00
<keep-alive>
<router-view></router-view>
</keep-alive>
</div>
2025-06-18 01:01:17 +08:00
</div>
</template>
2025-06-23 19:51:17 +08:00
<script>
2025-08-20 17:53:26 +08:00
import { dzjk } from "@/router/ems";
const childrenRoute = dzjk[0].children.find(
(item) => item.name === "DzjkTjbb"
).children; //获取到统计报表下面的字路由
console.log("设备监控子路由", childrenRoute);
2025-06-23 19:51:17 +08:00
export default {
2025-08-20 17:53:26 +08:00
name: "DzjkTjbb",
data() {
2025-06-23 19:51:17 +08:00
return {
childrenRoute,
2025-08-20 17:53:26 +08:00
activeMenu: "",
};
2025-06-23 19:51:17 +08:00
},
mounted() {
2025-08-20 17:53:26 +08:00
console.log("当前统计报表页面路由", this.$route);
},
};
2025-06-23 19:51:17 +08:00
</script>
<style scoped lang="scss">
2025-08-20 17:53:26 +08:00
.tjbb-ems-content-container {
margin-top: 0;
padding-top: 0;
2025-06-23 19:51:17 +08:00
padding-right: 0;
flex: 1;
}
2025-06-18 01:01:17 +08:00
</style>