wvp-GB28181-pro/web_src/src/components/operations.vue

72 lines
2.1 KiB
Vue
Raw Normal View History

2024-11-01 17:45:58 +08:00
<template>
2024-11-04 15:46:03 +08:00
<div id="operations" >
<el-container class="container-box">
<el-aside width="200px" style="text-align: left" >
2024-11-01 17:45:58 +08:00
<el-menu :default-active="activeIndex" :height="winHeight" @select="handleSelect">
<el-menu-item index="systemInfo">
2024-11-04 15:46:03 +08:00
<template slot="title"><i class="el-icon-s-home"></i>平台信息</template>
2024-11-01 17:45:58 +08:00
</el-menu-item>
<el-submenu index="log">
2024-11-04 15:46:03 +08:00
<template slot="title"><i class="el-icon-document"></i>日志信息</template>
<el-menu-item index="historyLog">历史日志</el-menu-item>
2024-11-01 17:45:58 +08:00
<el-menu-item index="realTimeLog">实时日志</el-menu-item>
</el-submenu>
<el-submenu index="senior">
<template slot="title"><i class="el-icon-setting"></i>高级维护</template>
2024-11-04 15:46:03 +08:00
<el-menu-item index="tcpdump">网络抓包</el-menu-item>
2024-11-01 17:45:58 +08:00
</el-submenu>
</el-menu>
</el-aside>
2024-11-04 15:46:03 +08:00
<el-main style="background-color: #FFFFFF; margin: 0 20px 20px 20px">
2024-11-01 17:45:58 +08:00
<operationsForRealLog v-if="activeIndex==='realTimeLog'"></operationsForRealLog>
<operationsForHistoryLog v-if="activeIndex==='historyLog'"></operationsForHistoryLog>
2024-11-04 15:46:03 +08:00
<operationsForSystemInfo v-if="activeIndex==='systemInfo'"></operationsForSystemInfo>
2024-11-01 17:45:58 +08:00
</el-main>
</el-container>
</div>
</template>
<script>
import operationsForRealLog from './operationsForRealLog'
import operationsForHistoryLog from './operationsForHistoryLog.vue'
2024-11-04 15:46:03 +08:00
import operationsForSystemInfo from './operationsForSystemInfo.vue'
2024-11-01 17:45:58 +08:00
export default {
name: 'log',
components: {
2024-11-04 15:46:03 +08:00
operationsForRealLog, operationsForHistoryLog, operationsForSystemInfo
2024-11-01 17:45:58 +08:00
},
data() {
return {
loading: false,
winHeight: (window.innerHeight - 170) + "px",
2024-11-01 17:45:58 +08:00
data: [],
filter: "",
2024-11-04 15:46:03 +08:00
activeIndex: "systemInfo"
2024-11-01 17:45:58 +08:00
};
},
created() {
console.log('created');
},
destroyed() {
},
methods: {
handleSelect: function (index) {
this.activeIndex = index;
},
}
};
</script>
<style>
2024-11-04 15:46:03 +08:00
.container-box {
2024-11-01 17:45:58 +08:00
position: absolute;
2024-11-04 15:46:03 +08:00
top: 80px;
width: calc(100% - 20px);
height: calc(100% - 80px);
2024-11-01 17:45:58 +08:00
}
</style>