<template>
    <el-dialog title="GIS查询" top="10px" :visible.sync="visible" width="98%" v-dialogDrag :close-on-click-modal="false"
      :before-close="cancel">
      <div class="dia-box">
        <!-- <iframe style="text-align:center" noresize align=center width="100%" :height="height" :src="`./gis.html?jd=${gisCoord.jd}&wd=${gisCoord.wd}`" frameborder="0"
          scrolling="no"></iframe> -->
          <iframe style="text-align:center" noresize align=center width="100%" :height="height" :src="`./gis.html`" frameborder="0"
          scrolling="no"></iframe>
        <div style="text-align:right;margin:15px 0 20px;">
          <el-button size="mini" @click="cancel">关闭</el-button>
        </div>
      </div>
    </el-dialog>
  </template>
  <script>
    import {message} from "@/utils/common";
    export default {
      props: {
        visible: {
          type: Boolean,
          default: () => false
        },
        gisCoord:{
            type:Object,
            default:()=>{}
        }
      },
      data() {
        return {
            iframeUrl:'',
            height: window.innerHeight - 20,
        };
      },
      methods: {
        cancel() {
          this.$emit("cancel");
        },
      },
      mounted() {
      },
    };
  
  </script>
  