index.vue
1.28 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
<template>
<div>
<div><el-card shadow="always"> 从不显示 </el-card></div>
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="设备监控" name="first">
<DeviceMonitor />
</el-tab-pane>
<el-tab-pane label="设备数据" name="second">
<DeviceData />
</el-tab-pane>
<el-tab-pane label="站台数据" name="third">
<StationData />
</el-tab-pane>
<el-tab-pane label="定时任务补偿" name="fourth">
<TaskCompensation />
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import { mapGetters } from "vuex";
import DeviceMonitor from "./components/DeviceMonitor.vue"; // 设备监控组件
import DeviceData from "./components/DeviceData.vue"; // 设备数据组件
import StationData from "./components/StationData.vue"; // 站台数据组件
import TaskCompensation from "./components/TaskCompensation.vue"; // 定时任务补偿组件
export default {
name: "main",
components: {
DeviceMonitor,
DeviceData,
StationData,
TaskCompensation,
},
computed: {
...mapGetters(["name"]),
},
};
</script>
<style lang="scss" scoped>
.main {
&-container {
margin: 30px;
}
&-text {
font-size: 30px;
line-height: 46px;
}
}
</style>