index.vue 1.28 KB
<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>