<template>
  <div class="home-right">
    <msg-card title="无人机">
      <div style="height: 100%; width: 100%; display: flex;flex-direction: column;justify-content: space-between">
        <local-camera :border="true" :video-data="item" ref="videoItem" class="videoItem" :key="index" v-for="(item,index) of videos"/>
      </div>
    </msg-card>
  </div>
</template>

<script>
import CesiumMap from "../../../components/Standard/mapCesium.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; 
import CameraVideo from "../../../components/Standard/cameraVideo.vue";
import CrossControl from "../../../components/CrossControl/crossControl.vue";
import LocalCamera from "../../../components/Standard/localCamera.vue";

let topViewer, bottomViewer;
 
export default {
  name: "homeRight",
  components: {LocalCamera, CrossControl, CameraVideo, MsgCard, CesiumMap},
  computed: {
    videos() {
      return situation_drones.videos.slice(2, 4);
    },
  },
  data() {
    return {};
  },
  mounted() {
  },
  methods: {
    startVideo(time) {
      for (let item of this.$refs.videoItem) {
        item.setTime(time)
      }
    },
  },

  beforeDestroy() {
  },
};
</script>

<style lang='less' scoped>
.videoItem {
  width: 100%;
  height: 49%;
}

.full-h {
  height: 100%;
}

::v-deep .content {
  margin: 0
}

.top-left {
  position: absolute;
  left: -1px;
  top: -1px;
  padding: 10px;
  border-style: solid;
  border-color: rgba(24, 144, 255, 1);
  border-width: 3px 0 0 3px;
}

.top-right {
  position: absolute;
  right: -1px;
  top: -1px;
  padding: 10px;
  border-style: solid;
  border-color: rgba(24, 144, 255, 1);
  border-width: 3px 3px 0 0;
}

.bottom-left {
  position: absolute;
  right: -1px;
  bottom: -1px;
  padding: 10px;
  border-style: solid;
  border-color: rgba(24, 144, 255, 1);
  border-width: 0 3px 3px 0;
}

.bottom-right {
  position: absolute;
  left: -1px;
  bottom: -1px;
  padding: 10px;
  border-style: solid;
  border-color: rgba(24, 144, 255, 1);
  border-width: 0 0 3px 3px;
}

.home-right {
  position: absolute;
  right: 0;
  top: 0;
  padding: 15px 25px;
  height: 100%;
  width: 668px;

  background-color: rgba(3, 11, 25, 0.45);
  // background-image: linear-gradient(90deg, rgba(8, 20, 31, 0) 0%, rgba(6, 16, 26, 1) 100%);

  .cardInner {
    .comp {
      height: 15%;
      padding: 10px 0;
    }

    ::v-deep .el-table {
      height: 85%;
      overflow-y: auto;
    }

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;

    ::v-deep .el-table--small td, .el-table--small th {
      padding: 4px 0;
    }

    ::v-deep .el-table th {
      padding: 4px 0;
    }

    ::v-deep .el-table {
      width: 440px;
      color: rgba(217, 229, 255, 1);
      font-size: 16px;
    }

    ::v-deep .el-table tr {
      background-color: unset;
    }

    ::v-deep .el-table .warning-row {
      background-color: transparent;
    }

    ::v-deep .el-table tbody tr:hover > td {
      background-color: transparent;
    }

    ::v-deep .el-table__body tr.current-row > td {
      background: transparent !important;
    }

    ::v-deep .el-table .pager-row {
      background-color: transparent;
    }

    ::v-deep .el-table .cell .el-table th div {
      padding-right: 0;
    }

    ::v-deep .el-table--border td {
      border-right: 1px solid rgba(62, 108, 150, 1);
      border-bottom: 1px solid rgba(62, 108, 150, 1);
      border-left: 1px solid rgba(62, 108, 150, 1);
    }

    ::v-deep .el-table--border th {
      border: 1px solid rgba(62, 108, 150, 1);
    }

    ::v-deep .el-table--border {
      border: none;
    }

    ::v-deep .el-table--border::after {
      width: 0;
    }

    ::v-deep .el-table--border::before {
      height: 0;
    }
  }
}
</style>