<template>
  <div class="container">
    <el-tabs type="border-card">
      <el-tab-pane label="同步设备">
        <div class="top-box">
          <div class="nav-title">同步设备</div>
          <el-button type="primary" @click="handleClick">开始同步</el-button>
        </div>
        <div class="table">
          <el-table
            :data="tableData"
            style="width: 100%"
            border
            :header-cell-style="{ background: '#f5f7fa', color: '#909399' }"
          >
            <el-table-column
              prop="name"
              label="设备IP"
              width=""
            ></el-table-column>
            <el-table-column
              prop="name"
              label="设备编号"
              width=""
            ></el-table-column>
            <el-table-column
              prop="name"
              label="站点名称"
              width=""
            ></el-table-column>
          </el-table>
        </div>
      </el-tab-pane>
      <el-tab-pane label="同步记录">
        <div class="top-box">
          <div class="nav-title">时间同步记录</div>
          <!-- <el-button type="primary" @click="handleClick">开始同步</el-button> -->
        </div>
        <div class="table">
          <el-table
            :data="tableData"
            style="width: 100%"
            border
            :header-cell-style="{ background: '#f5f7fa', color: '#909399' }"
          >
            <el-table-column
              prop="name"
              label="同步设备"
              width=""
            ></el-table-column>
            <el-table-column
              prop="name"
              label="状态"
              width=""
            ></el-table-column>
            <el-table-column
              prop="name"
              label="同步时间"
              width=""
            ></el-table-column>
          </el-table>
        </div>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [],
    };
  },
  methods: {
    handleClick() {
      this.$message.success("开始备份");
    },
  },
};
</script>

<style lang="scss" scoped>
.top-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  .nav-title {
    color: #02a7f0;
    font-size: 20px;
    position: relative;
    padding-left: 16px;
    font-weight: bold;
    line-height: 28px;
  }
  .nav-title::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 1px;
    width: 5px;
    height: 100%;
    background-color: #02a7f0;
    border-radius: 4px;
  }
}
</style>