陈嘉新
authored
|
1
2
3
4
|
<template>
<div class="app-container">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="接口日志" name="interface">
|
陈嘉新
authored
|
5
|
<Interface ref="Interface" />
|
陈嘉新
authored
|
6
7
|
</el-tab-pane>
<el-tab-pane label="内容日志" name="content">
|
陈嘉新
authored
|
8
|
<Content ref="Content" />
|
陈嘉新
authored
|
9
10
|
</el-tab-pane>
<el-tab-pane label="系统日志" name="system">
|
陈嘉新
authored
|
11
|
<System ref="System" />
|
陈嘉新
authored
|
12
13
|
</el-tab-pane>
<el-tab-pane label="设备执行日志" name="device">
|
陈嘉新
authored
|
14
|
<Device ref="Device" />
|
陈嘉新
authored
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
</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 {
|
陈嘉新
authored
|
34
|
activeName: "interface",
|
陈嘉新
authored
|
35
36
37
38
39
40
41
42
43
44
|
};
},
methods: {
handleClick(tab, event) {
console.log(tab, event);
},
},
};
</script>
|
陈嘉新
authored
|
45
|
<style>
|
陈嘉新
authored
|
46
47
48
|
.line {
text-align: center;
}
|
陈嘉新
authored
|
49
50
51
52
53
|
/* 修改复选框大小 */
.el-table .el-checkbox {
transform: scale(1.8) !important; /* 调整大小 */
margin-top: 5px;
}
|
陈嘉新
authored
|
54
|
</style>
|