ydqt.vue 4.23 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
<!--
 * @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>