<template>
  <!-- <ele-modal
    :visible.sync="showEditFlag"
    :close-on-click-modal="false"
    custom-class="ele-dialog-form"
    append-to-body
    :fullscreen="true"
  >

  </ele-modal> -->
  <div>
    <iframe
      :src="fileUrl"
      width="100%"
      v-if="showEditFlag"
      style="height: calc(100vh - 220px)"
      frameborder="0"
      allowfullscreen="true"
    ></iframe>
  </div>
</template>

<script>
  import { getJmPrintViewUrl } from '@/components/jimureport/api';
  //   import jimureportBrowse from '@/components/jimureport/browseModal.vue';
  export default {
    // components: { jimureportBrowse },
    data() {
      return {
        // eomstatisticalreportprint
        showEditFlag: true,
        fileUrl: ''
      };
    },
    created() {
      this.init();
    },
    methods: {
      async init() {
        let url = await getJmPrintViewUrl('eomstatisticalreportprint');
        this.fileUrl = `${url}?token=${getToken()}`;
      }
    }
  };
</script>
