<template>
  <div class="home-left">
    <msg-card title="可移动智慧基站">
      <div
        style="height: 100%; width: 100%; display: flex; flex-direction: column"
      >
        <local-camera
          :border="true"
          ref="videoItemL"
          class="videoItem"
          v-for="(item, key) of videos"
          :key="key"
          :video-data="item"
        />
      </div>
    </msg-card>
  </div>
</template>

<script>
import CameraVideo from "../../../components/Standard/cameraVideo.vue";
import MsgCard from "../../../components/Standard/msg-card.vue";
import { getCameraListByType } from "../../../dao/api";
import WMap from "../../../components/Standard/mapboxMap.vue";
import dict from "../../../config/holo/dictionary";
import LocalCamera from "../../../components/Standard/localCamera.vue";

let map;
export default {
  name: "homeLeft",
  components: { LocalCamera, WMap, MsgCard, CameraVideo },
  computed: {
    videos() {
      return situation_mobileBaseStation.videos.slice(0, 2);
    },
  },
  data() {
    return {
      timer: null,
      angle: 0,
    };
  },
  mounted() {},
  methods: {
    startVideo(time) {
      console.log(this.$refs.videoItemL);
      for (let item of this.$refs.videoItemL) {
        item.setTime(time);
      }
    },
  },

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

<style lang="less" scoped>
.video-mobile {
  aspect-ratio: 4/3;
}

.cTable {
  font-size: 16px;
  border-top: 1px solid rgba(62, 108, 150, 1);
  border-left: 1px solid rgba(62, 108, 150, 1);
  margin-bottom: 7px;

  .row1 {
    height: 30px;
    width: 100%;

    .col {
      display: flex;
      align-items: center;
      height: 100%;
      border-bottom: 1px solid rgba(62, 108, 150, 1);
      border-right: 1px solid rgba(62, 108, 150, 1);

      span {
        display: inline-block;
        height: 20px;
        padding: 0 3px;
        line-height: 20px;
        font-size: 14px;
        margin-left: 3px;
        border: 1px solid rgba(5, 122, 255, 0);
        border-radius: 8px;
      }

      .span-check {
        border: 1px solid rgba(5, 122, 255, 1);
      }
    }

    .deep {
      justify-content: center;
      background-color: rgba(46, 119, 255, 0.15);
    }
  }
}

.customTable {
  color: white;
  width: 100%;
  font-size: 16px;
  border-top: 1px solid rgba(62, 108, 150, 1);
  border-left: 1px solid rgba(62, 108, 150, 1);

  .row {
    display: flex;
    width: 100%;

    .col {
      border-bottom: 1px solid rgba(62, 108, 150, 1);
      border-right: 1px solid rgba(62, 108, 150, 1);
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .longT {
      height: 45px;
    }

    .col-label {
      width: 20%;
      background-color: rgba(46, 119, 255, 0.15);
    }

    .col-value {
      width: 80%;
      padding: 0 20px;
      justify-content: flex-start;
      background-color: transparent;
    }
  }
}

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

.top-right {
  position: absolute;
  right: -1px;
  top: -1px;
  padding: 10px;
  border-style: solid;
  border-color: rgba(24, 144, 255, 1);
  border-width: 2px 2px 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 2px 2px 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 2px 2px;
}

.msgTitle {
  font-size: 18px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  margin-bottom: 5px;

  span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 3px solid #0d7fd7;
    rotate: 45deg;
    margin-right: 8px;
  }
}

.home-left {
  position: absolute;
  left: 0;
  top: 0;
  color: white;
  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%
  // );
  padding: 15px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .videoItem {
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: 20px;
    position: relative;
  }

  .topI {
    height: 385px;
    margin-bottom: 15px;

    .videos {
      display: flex;
      justify-content: space-between;
      align-content: space-between;
      align-items: stretch;
      position: relative;
      flex-flow: row wrap;
      height: 100%;
    }
  }

  .bottomI {
    flex: 1;

    .messages {
      font-size: 18px;
      display: flex;
      height: 100%;
      flex-direction: column;
      padding: 15px;
      justify-content: space-around;

      .message-title {
        display: flex;
        justify-content: space-between;

        span {
          width: 40%;
        }

        span:first-child {
          display: inline-block;
          width: 60%;
          text-align: left;
        }
      }

      .message-describe {
        display: flex;

        .label {
          width: 100px;
        }

        .value-image {
          width: 491px;
          height: 373px;
          background-image: url("../../../assets/images/xwPic.png");
          background-size: 100% 100%;
          border: 1px solid #0d7fd7;
        }
      }
    }
  }
}

.m-b-10 {
  margin-bottom: 10px;
}
</style>
