<template>
    <div class='main'>
        <div class='view-box'>
           <!--<div class='left'>
                <div class='str'>{{sceneName}}</div>
                <div class='address'>{{sensingName}}</div>
                <div class='btn cursor' @click='edit()'>立即处理</div>
            </div>
            <i class="el-icon-close close cursor" @click="close"></i>-->
          <div class="infoWindowStyle" @click="edit">
            <i class="el-icon-location-outline" ></i>
            <b>{{sceneName}}</b>
          </div>
        </div>
    </div>
</template>
<script>
export default {
  props: {
      infoWindow: {
          type: Object,
          default: () => {}
      },
      sceneName: {
          type: String,
          default: () => {}
      },
    },
    watch: {
      infoWindow() {
        if(this.infoWindow) {
        }
      }
    },
    methods: {
    // 关闭
        close() {
            // 高德地图信息窗关闭的api
            this.infoWindow.close()
        },
        edit() {
            this.$router.push('/elev/elevMonitor')
            this.$emit('clickHandle')
        },
        del() {
            console.log('删除按钮测试')
        }
    }
}
</script>

<style lang="scss" scoped>

.main {
  width: 392px;
  height: 212px;
  position: relative;
  .view-img {
    width: 392px;
    height: 212px;
  }
  .view-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    .left {
      margin-left: 158px;
      text-align: left;
    }
    .str {
      margin-top: 56px;
      color: #FF0000;
      font-size: 18px;
      font-weight: bold;
    }
    .address {
      color: #66FFFF;
      font-size: 14px;
      margin-top: 12px;
    }
    .btn {
      width: 86px;
      height: 36px;
      line-height: 36px;
      font-size: 12px;
      text-align: center;
      color: #fff;
      background: #0066CC;
      margin-left: 126px;
      margin-top: 19px;
    }
  }
  .close {
    position: absolute;
    top: 34px;
    right: 4px;
    font-size: 20px;
  }
}
</style>
