<template>
  <div class="wrapper rightPic">
    <div class="math">
      <div><span>2012</span>报警设备</div>
      <div><span>2022</span>在线设备</div>
      <div><span>2052</span>离线设备</div>
    </div>
    
    <div class="left">
      <div class="bottom right-bottom-data-left">
        <el-table
          size="mini"
          :data="tableData"
          style="width: 100%"
          :height="tableHeight"
          class="el-bottom"
        >
          <el-table-column prop="deviceCode" label="编号" width="80">
          </el-table-column>
          <el-table-column prop="deviceName" label="名称" width="">
          </el-table-column>
          <el-table-column prop="province" label="报警类型" width="">
          </el-table-column>
          <el-table-column prop="city" label="报警开始时间" width="180">
          </el-table-column>
          <el-table-column prop="address" label="报警内容" width="">
          </el-table-column>
        </el-table>
      </div>
    </div>
  </div>
</template>

<script>
import { listDeviceAlarm } from "@/api/dataMonitoring/deviceAlarm";

export default {
  props: {},
  data() {
    return {
      timer: null,
      repeatFinshed: false,
      tableHeight: 202,
      tableData: [
        {
          deviceCode: "ZhC-11",
          deviceName: "流量计",
          province: "压力异常",
          city: "2021-02-02 16-00-00",
          address: "上海市普陀区金沙江路",
        },
        {
          deviceCode: "ZhC-11",
          deviceName: "流量计",
          province: "压力异常",
          city: "2021-02-02 16-00-00",
          address: "上海市普陀区金沙江路",
        },
        {
          deviceCode: "ZhC-11",
          deviceName: "流量计",
          province: "压力异常",
          city: "2021-02-02 16-00-00",
          address: "上海市普陀区金沙江路",
        },
        {
          deviceCode: "ZhC-11",
          deviceName: "流量计",
          province: "压力异常",
          city: "2021-02-02 16-00-00",
          address: "上海市普陀区金沙江路",
        },
        {
          deviceCode: "ZhC-11",
          deviceName: "流量计",
          province: "压力异常",
          city: "2021-02-02 16-00-00",
          address: "上海市普陀区金沙江路",
        },
        {
          deviceCode: "ZhC-11",
          deviceName: "流量计",
          province: "压力异常",
          city: "2021-02-02 16-00-00",
          address: "上海市普陀区金沙江路",
        },
        {
          deviceCode: "ZhC-11",
          deviceName: "流量计",
          province: "压力异常",
          city: "2021-02-02 16-00-00",
          address: "上海市普陀区金沙江路",
        },
        {
          deviceCode: "ZhC-11",
          deviceName: "流量计",
          province: "压力异常",
          city: "2021-02-02 16-00-00",
          address: "上海市普陀区金沙江路",
        },
        {
          deviceCode: "ZhC-11",
          deviceName: "流量计",
          province: "压力异常",
          city: "2021-02-02 16-00-00",
          address: "上海市普陀区金沙江路",
        },
      ],
    };
  },
  created() {},

  methods: {},
};
</script>

<style lang="scss"  scoped>
.wrapper {
  width: 520px;
  max-height: 258px;
  box-sizing: border-box;
  padding: 10px;
  padding-top: 15px;
  padding-right: 0px;
  position: fixed;
  right: 20px;
  top: 150px;
  // background-color: #fff;
  display: flex;
  justify-content: space-between;
  background-image: url(../../../../assets/images/bg/newPicBg.png);
  background-size: 100% 100%;
  .math {
    width: 520px;
    position: absolute;
    top:-40px;
    left:0px;
    display: flex;
    justify-content: space-between;
    &>div{
      >span{
        color:aqua;
      }
      font-size: 14px;
      color:#fff;
      text-align: center;
      line-height: 30px;
      width: 108px;
      height:30px;
      background-image: url(../../../../assets/images/bg/bg.png);
    }
  }
  & > div {
  }
  .left {
    width: 500px;
    max-height: 256px;
    margin-right: 12px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.16);
    // background-color: #fff;
    // color: #fff;
    font-size: 14px;
    font-weight: 400;

    .el-table__body-wrappe {
      max-height: 140px !important;
    }
    .top {
      height: 19px;
      // background-color: #053b6a;
      color: #fff;
      // line-height: 32px;
      // padding-left: 12px;
      position: relative;

      .title {
        position: absolute;
        left: 50%;
        margin-left: -92px;
        top: -5px;
      }
      .repeat {
        position: absolute;
        top: -5px;
        right: 160px;
        color: #fff;
        cursor: pointer;
        &:hover {
          color: #2788ea;
        }
      }
      .repeat2 {
        position: absolute;
        right: 206px;
        color: #67c23a;
      }
      .more {
        position: absolute;
        right: 38px;
        top: -5px;
        color: #fff;
        float: right;
        margin-right: 20px;
        cursor: pointer;
        &:hover {
          color: #2788ea;
        }
      }
    }
    .bottom {
      // width: 680px;
      margin: 0 auto;
    }
  }
  .right {
    width: 740px;
    display: flex;
    flex-wrap: wrap;
    // justify-content: space-between;
    align-content: flex-start;
    // margin-top: 7px;
    & > .right-content {
      background-color: #fff;
      width: 238px;
      height: 82px;
      margin-bottom: 29px;
      box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.16);
      margin-right: 10px;
      display: flex;
      &.three {
        margin-right: 0px;
      }
      // align-items: center;
      .text-icon {
        line-height: 82px;
        padding-left: 22px;
        margin-right: 22px;
        i {
          color: #053b6a;
          font-size: 60px;
        }
      }
      .text {
        font-size: 14px;
        padding-top: 16px;
        .top {
          color: #000;
          margin-bottom: 10px;
          font-weight: 600;
        }
        .bottom {
          color: #2788ea;
        }
      }
    }
  }
  // 单独调整下最后一个icon的大小
  .iconFontSize {
    font-size: 50px !important;
  }
  .fade-enter-to,
  .fade-leave {
    opacity: 1;
  }
  .fade-leave-active {
    transition: opacity 0.5s;
  }
  .fade-enter-active {
    transition: opacity 0s;
  }
  .fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
    opacity: 0;
  }
}
</style>