index.vue
1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<template>
<div class="app-container">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="接口日志" name="interface">
<Interface ref="Interface" :start-deal="startDeal" />
</el-tab-pane>
<el-tab-pane label="内容日志" name="content">
<Content ref="Content" :start-deal="startDeal" />
</el-tab-pane>
<el-tab-pane label="系统日志" name="system">
<System ref="System" :start-deal="startDeal" />
</el-tab-pane>
<el-tab-pane label="设备执行日志" name="device">
<Device ref="Device" :start-deal="startDeal" />
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import Interface from "./components/interfaceLog.vue";
import Content from "./components/contentLog.vue";
import System from "./components/systemLog.vue";
import Device from "./components/deviceLog.vue";
export default {
components: {
Interface,
Content,
System,
Device,
},
data() {
return {
activeName: "interface",
};
},
methods: {
handleClick(tab, event) {
console.log(tab, event);
},
},
};
</script>
<style scoped>
.line {
text-align: center;
}
</style>