<template>
  <div class="home-right">
    <msg-card style="height:auto;margin-bottom:20px" title="当前方案">
      <div class="cardInner">
        <div class="comp">
          <cross-control :crossId="schemalCross"/>
        </div>
      </div>
    </msg-card>
    <msg-card style="height:auto" title="指标详情">
      <div class="cardInner">
        <el-table
          :header-cell-style="{backgroundColor:'rgba(1, 43, 83, 1)',color:'rgba(217, 237, 255, 1)'}"
          :row-class-name="userTab"
          :data="tableData"
          style="background-color: transparent; width: 100%;">
          <el-table-column
            align="center"
            prop="type"
            label="指标"
            width="200">
          </el-table-column>
          <el-table-column
            prop="A"
            align="center"
            label="A">
          </el-table-column>
          <el-table-column
            prop="B"
            align="center"
            label="B">
          </el-table-column>
          <el-table-column
            prop="C"
            align="center"
            label="C">
          </el-table-column>
          <el-table-column
            prop="D"
            align="center"
            label="D">
          </el-table-column>
        </el-table>
      </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";

let topViewer, bottomViewer;

export default {
  name: "homeRight",
  components: {CrossControl, CameraVideo, MsgCard, CesiumMap},
  computed: {
    schemalCross(){
      return situation_straightLeftConflict.currentSchemalCross
    }
  },
  data() {
    return {
      tableData: [
        
      ]
    };
  },
  mounted() {
    this.tableData = situation_straightLeftConflict.indexDetail
  },
  methods: {
    userTab({row, rowIndex}) {
      if (rowIndex % 2 === 0) {
        return 'warning-row'
      } else if (rowIndex % 2 !== 0) {
        return 'pager-row'
      }
    },
  },

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

<style lang='less' scoped>
.full-h {
  height: 100%;
}

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

.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;
    }

    display: flex;
    flex-direction: column;

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

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

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

    ::v-deep .el-table td, .el-table th.is-leaf {
      border-bottom: none;
    }

    ::v-deep .el-table th.is-leaf {
      border-bottom: none;
    }

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

    ::v-deep .el-table .warning-row {
      background-color: #050f19;
    }

    ::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: #091627;
    }

    ::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>