index.vue
1.67 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<template>
<div class="app-container">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane :label="$t('logManage.InterfaceLog')" name="interface">
<Interface ref="Interface" />
</el-tab-pane>
<el-tab-pane :label="$t('logManage.ContentLog')" name="content">
<Content ref="Content" />
</el-tab-pane>
<el-tab-pane :label="$t('logManage.systemLog')" name="system">
<System ref="System" />
</el-tab-pane>
<el-tab-pane :label="$t('logManage.DeviceExecutionLog')" name="device">
<Device ref="Device" />
</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>
.line {
text-align: center;
}
/* 修改复选框大小 */
.el-table .el-checkbox {
transform: scale(1.8) !important; /* 调整大小 */
margin-top: 5px;
}
.custom-table .el-table__body .cell {
white-space: nowrap !important; /* 不换行 */
overflow: hidden !important; /* 隐藏超出部分 */
text-overflow: ellipsis !important; /* 用省略号表示超出部分 */
}
/* 文本域 */
.TextField {
width: 50%; /* 小 div 宽度为 50% */
height: 150px; /* 小 div 高度 */
margin: 5px 0; /* 上下外边距 */
display: flex; /* 嵌套使用 Flexbox */
}
</style>