<template>
  <div class="container">
    <div class="mask" @click="handleClose"></div>
    <!-- 弹窗内容区域 -->
    <div class="fire">
      <!-- 标题区域 -->
      <div class="fire_title"></div>
      <!-- 关闭按钮区域 -->
      <div class="fire_close" @click="handleClose"></div>

      <!-- 副标题区域 -->
      <div class="fire_subT">基本信息</div>

      <!-- 发生时间区域 -->
      <div class="fire_box time">发生时间：{{ showObj.publishTime }}</div>

      <!-- 发生地点区域 -->
      <div class="fire_box address">发生地点：{{ showObj.place }}</div>

      <!-- 图片区域 -->
      <div class="fire_img">
        图片
        <el-image
          class="img"
          fit="cover"
          :src="showObj.images"
          :preview-src-list="[showObj.images]"
          hide-on-click-modal
        >
        </el-image>
      </div>

      <!-- 副标题区域 -->
      <div class="fire_subT">处置情况</div>
      <!-- 处置结果区域 -->
      <div class="fire_res">
        处置结果：{{ showObj.handleStatus == 1 ? "处置中" : "已处置" }}
      </div>
      <!-- 处置内容区域 -->
      <div class="fire_info">
        <div>处置内容</div>
        <div class="info_msg">
          {{ showObj.handleDesc }}
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
defineProps(["showObj"]);
const $emit = defineEmits(["close"]);

const handleClose = () => {
  $emit("close", false);
};
</script>

<style lang="scss" scoped>
.container {
  z-index: 9999;
  position: absolute;
  top: -151px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7072px;
  height: 1872px;
  background-color: rgba($color: #000000, $alpha: 0.4);

  .mask {
    position: absolute;
    top: 0;
    width: 7072px;
    height: 1872px;
  }

  .fire {
    position: relative;
    width: 1293px;
    height: 1053px;
    background-image: url(@/assets/images/9.png);
    background-size: 100% 100%;

    .fire_title {
      margin-top: 51px;
      margin-left: 47px;
      width: 1068px;
      height: 96px;
      background-image: url(@/assets/images/81.png);
      background-size: 100% 100%;
    }

    .fire_close {
      position: absolute;
      top: 59px;
      right: 57px;
      width: 82px;
      height: 82px;
      cursor: pointer;
      background-image: url(@/assets/images/12.png);
      background-size: 100% 100%;
    }

    .fire_subT {
      padding-left: 45px;
      margin-top: 40px;
      margin-left: 51px;
      width: 1175px;
      height: 48px;
      font-size: 28px;
      font-family: "庞门正道标题体";
      background-image: url(@/assets/images/82.png);
      background-size: 100% 100%;
    }

    .fire_box {
      padding-left: 24px;
      width: 1175px;
      height: 47px;
      line-height: 47px;
      font-size: 23px;
      border-left: 2px solid #90cffc;
      border-top: 1px dashed rgba(0, 186, 186, 0.3);
      border-bottom: 1px dashed rgba(0, 186, 186, 0.3);
      border-right: 1px dashed rgba(0, 186, 186, 0.3);
      background-color: rgba(109, 161, 189, 0.21);
    }

    .time {
      margin: 25px 0 25px 51px;
    }

    .address {
      margin-left: 51px;
      margin-bottom: 25px;
    }

    .fire_img {
      display: flex;
      padding-top: 12px;
      padding-left: 22px;
      margin-left: 51px;
      margin-bottom: 37px;
      width: 1175px;
      height: 186px;
      font-size: 23px;
      border-left: 2px solid #90cffc;
      border-top: 1px dashed rgba(0, 186, 186, 0.3);
      border-bottom: 1px dashed rgba(0, 186, 186, 0.3);
      border-right: 1px dashed rgba(0, 186, 186, 0.3);
      background-color: rgba(109, 161, 189, 0.21);

      .img {
        margin-left: 26px;
        width: 235px;
        height: 160px;
      }
    }

    .fire_res {
      margin: 25px 0 25px 51px;
      padding-left: 24px;
      width: 1175px;
      height: 47px;
      line-height: 47px;
      font-size: 23px;
      border-left: 2px solid #90cffc;
      border-top: 1px dashed rgba(0, 186, 186, 0.3);
      border-bottom: 1px dashed rgba(0, 186, 186, 0.3);
      border-right: 1px dashed rgba(0, 186, 186, 0.3);
      background-color: rgba(109, 161, 189, 0.21);
    }

    .fire_info {
      padding-top: 12px;
      padding-left: 24px;
      margin-left: 51px;
      width: 1175px;
      height: 224px;
      font-size: 23px;
      border-left: 2px solid #90cffc;
      border-top: 1px dashed rgba(0, 186, 186, 0.3);
      border-bottom: 1px dashed rgba(0, 186, 186, 0.3);
      border-right: 1px dashed rgba(0, 186, 186, 0.3);
      background-color: rgba(109, 161, 189, 0.21);

      .info_msg {
        margin-top: 20px;
        padding-right: 24px;
        height: 150px;
        line-height: 36px;
        color: #b3b3b3;
        overflow-y: auto;
      }
    }
  }
}
</style>
