<!--
 * @Author: 纪泽龙 jizelong@qq.com
 * @Date: 2022-06-21 09:24:11
 * @LastEditors: 纪泽龙 jizelong@qq.com
 * @LastEditTime: 2022-06-25 09:42:28
 * @FilePath: /danger-manage-web/src/components/bigWindow/Danger.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
        

-->
  
<template>
  <div class="danger-wrapper">
    <div class="close" @click="close">
      <img src="@/assets/images/closeBtn.png" alt="" />
    </div>
    <div class="up pb10" :class="{ noBroder: deviceData.colorNum > 2 }">
      <div class="one flex fz16">
        <div class="flex-item">
          <span class="left">危险源名称:</span
          ><span v-unValue class="right">{{ deviceData.wxymc }}</span>
        </div>
        <div class="flex-item">
          <span class="left">罐体容量:</span
          ><span v-unValue class="right">{{ deviceData.gtrl }}</span>
        </div>
        <div class="flex-item">
          <span class="left">存储量:</span
          ><span v-unValue class="right">{{ deviceData.ccl }}</span>
        </div>
        <div class="flex-item">
          <span class="left">临界量:</span
          ><span v-unValue class="right">{{ deviceData.ljl }}</span>
        </div>
        <div class="flex-item">
          <span class="left">风险级别:</span
          ><span v-unValue class="right">{{ deviceData.fxjb }}</span>
        </div>
        <div class="flex-item">
          <span class="left">有害物成分:</span
          ><span v-unValue class="right">{{ deviceData.yhwcf }}</span>
        </div>
        <div class="flex-item">
          <span class="left">浓度:</span
          ><span v-unValue class="right">{{ deviceData.nd }}</span>
        </div>

        <div class="flex-item">
          <span class="left"> 危险性类别:</span
          ><span v-unValue class="right">{{ deviceData.wxxlb }}</span>
        </div>
        <div class="flex-item">
          <span class="left">侵入途径:</span
          ><span v-unValue class="right">{{ deviceData.qrtj }}</span>
        </div>
      </div>

      <div class="one flex fz16">
        <div class="flex-item">
          <span class="left">可能引发的风险:</span
          ><span v-unValue class="right">{{ deviceData.knyfdfx }}</span>
        </div>
        <div class="flex-item">
          <span class="left">燃爆危险:</span
          ><span v-unValue class="right">{{ deviceData.rbwx }}</span>
        </div>
      </div>
      <div class="item">
        <span class="left">危险特性:</span
        ><span v-unValue class="right">{{ deviceData.wxtx }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {};
  },
  mounted() {
    console.log(this.deviceData);
  },
  methods: {
    close() {
      //this.handleClose();
      this.mapClass.clearInfoWindow();
    },
  },
};
</script>
<style lang="scss" scoped>
.danger-wrapper {
  background-color: rgba(9, 18, 32, 0.6);
  position: absolute;
  padding: 30px;
  padding-bottom: 0;
  box-sizing: border-box;
  width: 600px;
  // height: 510px;
  .up {
    // border-bottom: 1px solid #cccccc;
    margin-bottom: 15px;
    &.noBroder {
      // border-bottom: 0px solid #cccccc;
      margin-bottom: 10px;
    }
  }
  .tit {
    line-height: 14px;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    margin-left: 12px;
    &:before {
      content: "";
      position: absolute;
      width: 5px;
      height: 15px;
      left: -12px;
      top: 0;
      background: #fff;
    }
  }
  .close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
  }
  .one {
    width: 100%;
    flex-wrap: wrap;
    .flex-item {
      width: 50%;
      margin-bottom: 5px;
      .left {
        color: #cccccc;
      }
      .right {
        color: #fff;
        margin-left: 5px;
      }
    }
  }
  .item {
    margin-bottom: 5px;
    .left {
      color: #cccccc;
    }
    .right {
      color: #fff;
      margin-left: 5px;
    }
    .img {
      width: 300px;
      height: 120px;
      display: inline-block;
      vertical-align: top;
      margin-left: 5px;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>
